/* ===============================
   HOME / INDEX
================================ */

.home {
    width: 100%;
}

/* ===============================
   BANNER HOME
================================ */
.home .banner {
    position: relative;
    height: 90vh;
    background-size: cover;
    background-position: 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 img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.producto h3 {
    font-size: 17px;
    margin: 10px 0;
}

.precio {
    font-weight: bold;
}

/* ===============================
   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 HOME
================================ */
.home-sucursales {
    padding: 60px 20px;
    text-align: center;
}

.sucursales-home-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.sucursal-home-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

/* ===============================
   TESTIMONIOS
================================ */
.testimonios {
    background: #f7efec;
    padding: 90px 0;
    text-align: center;
    overflow: hidden;
}

/* Ventana visible */
.testimonios-viewport {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;          /* evita blanco */
    padding: 40px 20px;        /* margen lateral seguro */
    box-sizing: border-box;
}

/* Carril */
.testimonios-track {
    display: flex;
    gap: 40px;                 /* separación SOLO en medio */
    transition: transform .6s ease;
    will-change: transform;
}

/* Tarjeta */
.testimonio-card {
    flex: 0 0 calc((100% - 40px) / 2); /* 🔑 cálculo exacto */
    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;
}

/* Hover */
.testimonio-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0,0,0,.12),
        0 0 0 1px rgba(0,0,0,.06);
}

/* Texto */
.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;
}

/* Dots */
.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-track {
        gap: 0;
    }

    .testimonio-card {
        flex: 0 0 100%;
        padding: 30px;
    }
}

/* ===============================
   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
================================ */

/* Evita que se junten secciones sin cambiar diseño */
.home section {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* ===============================
   MUEBLES – RESPETAR ESTILO
================================ */
.home .productos-grid {
    gap: 35px; /* como ya lo tenías */
}

.home .producto img {
    height: 320px; /* NO CAMBIAR */
    object-fit: cover;
}

.home .producto h3 {
    font-size: 17px;
    margin: 8px 0;
}

.home .precio {
    font-weight: bold;
    margin-bottom: 10px;
}




/* ===============================
   RESPONSIVE TESTIMONIOS
================================ */
@media (max-width: 768px) {
    .testimonio-card {
        flex: 0 0 100%;
        padding: 30px;
    }
}

