/* ===============================
   HOME / INDEX
================================ */

.home {
    width: 100%;
}

/* ===============================
   BANNER HOME
================================ */
.home .banner {
    position: relative;
    height: 90vh;
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
}

.home .banner-texto {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
}

.home .banner-texto h4 {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.home .banner-texto h2 {
    font-size: 44px;
    margin-bottom: 15px;
}

.home .banner-texto p {
    font-size: 20px;
    margin-bottom: 30px;
}

.home .btn-banner {
    background: #ffcc00;
    color: #000;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .5;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots .dot.active {
    opacity: 1;
}

/* ===============================
   BENEFICIOS
================================ */
.beneficios {
    padding: 60px 20px;
    background: #fff;
}

.beneficios-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
    text-align: center;
}

.beneficio i {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform .25s ease;
}

.beneficio:hover i {
    transform: translateY(-10px);
}

/* ===============================
   PRODUCTOS
================================ */
.mas-vendidos {
    padding: 60px 20px;
    text-align: center;
}

.mas-vendidos .subtitulo {
    font-size: 14px;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.mas-vendidos h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.productos-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 35px;
}

.producto {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.producto img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 10px;
}

.producto h3 {
    font-size: 17px;
    margin: 10px 0;
    padding: 0 15px;
}

.precio {
    font-weight: bold;
    padding: 0 15px 15px;
    display: block;
}

/* ===============================
   CALIDAD GARANTIZADA
================================ */
.calidad {
    padding: 60px 20px;
    background: #fff;
}

.calidad-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calidad-texto h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.calidad-texto p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.calidad-imagen img {
    width: 100%;
    border-radius: 8px;
}

/* ===============================
   POR QUÉ ELEGIRNOS
================================ */
.elegirnos {
    padding: 60px 20px;
    background: #faf4f2;
}

.elegirnos-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.elegirnos-texto h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.elegirnos-texto p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.elegirnos-imagen img {
    width: 100%;
    border-radius: 8px;
}

/* ===============================
   SUCURSALES - MEJORA VISUAL PRO
================================ */

.home-sucursales {
    padding: 90px 20px 70px;
    background: #f9f9f9; /* 🔥 fondo suave elegante */
    text-align: center;
}

.sucursal-home-card {
    transition: all .3s ease;
}

.sucursal-home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Subtítulo */
.home-sucursales .subtitulo {
    display: block;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Título */
.home-sucursales h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #222;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.sucursales-home-grid {
    max-width: 1300px;
    margin-top: 20px; /* 🔥 aire extra */
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.sucursal-home-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all .3s ease;
    position: relative;
}

/* Imagen */
.sucursal-home-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

/* Contenido */
.sucursal-home-card h3 {
    font-size: 18px;
    padding: 15px 15px 8px;
    color: #111;
}

.sucursal-home-card p {
    font-size: 14px;
    padding: 0 15px 10px;
    color: #666;
}

/* Botón */
.sucursal-home-card a {
    display: inline-block;
    margin: 10px 15px 20px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #b30000;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all .3s ease;
}



@media (max-width: 768px) {

    .home-sucursales {
        padding: 50px 15px 40px;
    }

    .home-sucursales h2 {
        margin-bottom: 25px;
        font-size: 24px;
    }

    .sucursales-home-grid {
        gap: 20px;
    }
}

/* ===============================
   TESTIMONIOS
================================ */
.testimonios {
    background: #f7efec;
    padding: 90px 0;
    text-align: center;
    overflow: hidden;
}

.testimonios-viewport {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
}

.testimonios-track {
    display: flex;
    gap: 40px;
    transition: transform .6s ease;
    will-change: transform;
}

.testimonio-card {
    flex: 0 0 calc((100% - 40px) / 2);
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow:
        0 12px 30px rgba(0,0,0,.08),
        0 0 0 1px rgba(0,0,0,.04);
    transition: transform .3s ease, box-shadow .3s ease;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    z-index: 10; /* 🔥 PARA QUE NO SE CORTE */
    box-shadow:
        0 18px 40px rgba(0,0,0,.12),
        0 0 0 1px rgba(0,0,0,.06);
}

.testimonio-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.testimonio-card span {
    display: block;
    margin-top: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    color: #000;
}

.testimonios-dots {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot-testimonio {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot-testimonio.active {
    background: #a40000;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {

    .testimonios-viewport {
        padding: 0 25px; /* 🔥 MÁS ESPACIO LATERAL */
        overflow: hidden;
        padding: 0;
    }

    .testimonios-track {
        gap: 20px; /* 🔥 separación entre tarjetas */
        display: flex;
    }

    .testimonio-card {
        max-width: calc(100% - 20px);
        margin: 0 auto;
    }
    
    .testimonios {
        padding: 50px 0;
        overflow: hidden;
    }


    .testimonio-card {
        flex: 0 0 100%; /* 🔥 ocupa todo */
        max-width: 100%;
        margin: 0;
        padding: 25px 18px;
        box-sizing: border-box;
    }

    /* 🔥 evita desbordamiento interno */
    .testimonio-card p {
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1000px) {
    .beneficios-container,
    .productos-grid,
    .sucursales-home-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .calidad-container,
    .elegirnos-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .beneficios-container,
    .productos-grid,
    .sucursales-home-grid {
        grid-template-columns: 1fr;
    }

    .banner-texto h2 {
        font-size: 32px;
    }
}


/* ===============================
   FIX FINAL – NO ROMPE DISEÑO
================================ */

.home section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.home .productos-grid {
    gap: 35px;
}

.home .producto img {
    height: 280px;
    object-fit: contain;
}

.home .producto h3 {
    font-size: 17px;
    margin: 8px 0;
}

.home .precio {
    font-weight: bold;
    margin-bottom: 10px;
}

/* ===============================
   TESTIMONIOS MÓVIL - FIX DEFINITIVO
================================ */
@media (max-width: 768px) {
    
    .testimonios {
        padding: 50px 0;
        overflow: hidden;
    }
    
    .testimonios h2 {
        font-size: 26px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    /* VIEWPORT */
    .testimonios-viewport {
        overflow: hidden;
        padding: 0;
    }
    
     .testimonios-track {
        display: flex;
        gap: 0 !important; /* 🔥 SIN ESPACIOS */
    }

    .testimonio-card {
        flex: 0 0 100%; /* 🔥 ocupa TODO el ancho */
        max-width: 100%;
        padding: 25px 20px;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    
    /* 🔥 CLAVE: eliminar bordes que sobresalen */
    .testimonio-card {
        border-radius: 12px;
    }

    /* TEXTO */
    .testimonio-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .testimonio-card span {
        font-size: 12px;
    }
    
    /* DOTS */
    .testimonios-dots {
        margin-top: 20px;
    }
}

/* ===============================
   MÓVIL PEQUEÑO
================================ */
@media (max-width: 480px) {
    
    .testimonio-card {
        padding: 20px 12px;
    }
    
    .testimonio-card p {
        font-size: 13px;
    }
}

/* ===============================
   MÓVIL MUY PEQUEÑO
================================ */
@media (max-width: 375px) {
    
    .testimonio-card {
        padding: 18px 10px;
    }
}
/* ===============================
   RESPONSIVE MÓVIL - BANNER CORREGIDO
================================ */
@media (max-width: 768px) {
    
    /* Banner más bajo en móvil pero sin cortar imagen */
    .home .banner {
        height: auto;
        min-height: 450px;
        padding: 100px 20px 60px;
        background-position: center center !important;
    }
    
    .home .banner-texto h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .home .banner-texto h2 {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .home .banner-texto p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .home .btn-banner {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    /* Reducir padding de secciones */
    .beneficios,
    .mas-vendidos,
    .calidad,
    .elegirnos,
    .home-sucursales {
        padding: 40px 15px;
    }
    
    .testimonios {
        padding: 50px 0;
    }
    
    /* Títulos más pequeños */
    .mas-vendidos h2,
    .calidad-texto h2,
    .elegirnos-texto h2 {
        font-size: 28px;
    }
    
    .mas-vendidos .subtitulo {
        font-size: 12px;
    }
    
    /* Iconos más pequeños */
    .beneficio i {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    /* Productos - imágenes completas */
    .producto img {
        height: 250px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    
    .home .banner {
        min-height: 400px;
        padding: 90px 15px 50px;
    }
    
    .home .banner-texto h2 {
        font-size: 24px;
    }
    
    .home .banner-texto p {
        font-size: 14px;
    }
    
    .home .btn-banner {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .beneficio i {
        font-size: 36px;
    }
    
    .mas-vendidos h2,
    .calidad-texto h2,
    .elegirnos-texto h2 {
        font-size: 24px;
    }
    
    /* Productos más pequeños */
    .producto img {
        height: 220px;
    }
}

/* Móvil muy pequeño (iPhone SE, etc) */
@media (max-width: 375px) {
    
    .home .banner {
        min-height: 380px;
        padding: 80px 12px 40px;
    }
    
    .home .banner-texto h2 {
        font-size: 22px;
    }
    
    .home .banner-texto p {
        font-size: 13px;
    }
    
    .home .btn-banner {
        padding: 10px 22px;
        font-size: 13px;
    }
    
    .testimonio-card {
        padding: 18px 15px;
    }
    
    .testimonio-card p {
        font-size: 13px;
    }
    
    .beneficio i {
        font-size: 32px;
    }
    
    /* Productos muy pequeños */
    .producto img {
        height: 200px;
    }
}