/* =============================================
   estilos_carrusel.css
   Estilos exclusivos para carrusel_home.php
   No afecta ningún otro archivo del proyecto.
   ============================================= */

.carrusel-home-section {
    padding: 1.5rem 0 2rem;
}

.carrusel-home-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.carrusel-home-wrapper {
    position: relative;
}

.carrusel-home-outer {
    overflow: hidden;
    margin: 0 0.25rem;
}

.carrusel-home-track {
    display: flex;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 5 slides visibles — igual que el grid original */
.carrusel-home-slide {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* La tarjeta existente (.producto-card) se usa sin modificaciones */
.carrusel-home-slide .producto-card {
    height: 100%;
}

/* Botones de navegación */
.carrusel-home-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
    color: #555;
}
.carrusel-home-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 14px rgba(0,123,255,0.28);
}
.carrusel-home-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}
.carrusel-home-btn-prev { left: -18px; }
.carrusel-home-btn-next { right: -18px; }
.carrusel-home-btn svg  { width: 17px; height: 17px; }

/* Puntos indicadores */
.carrusel-home-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}
.carrusel-home-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.2s;
}
.carrusel-home-dot.active {
    background: #007bff;
    transform: scale(1.35);
}

/* Responsive */
@media (max-width: 1199px) {
    .carrusel-home-slide { flex: 0 0 25%;     max-width: 25%; }
}
@media (max-width: 899px) {
    .carrusel-home-slide { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (max-width: 599px) {
    .carrusel-home-slide { flex: 0 0 50%;     max-width: 50%; }
}
@media (max-width: 399px) {
    .carrusel-home-slide { flex: 0 0 100%;    max-width: 100%; }
}