/* ===============================
   HOME / INDEX
   SOLO CONTENIDO DEL INICIO
================================ */

/* ===== CONTENEDOR HOME ===== */
.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,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 BANNER
================================ */
.home .slider-dots {
    position: absolute;
    bottom: 25px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.home .slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
}

.home .slider-dots .dot.active {
    opacity: 1;
}

/* ===============================
   BENEFICIOS
================================ */
.home .beneficios {
    background: #fff;
    padding: 70px 20px;
}

.home .beneficios-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.home .beneficio i {
    font-size: 48px;
    color: #000;
    margin-bottom: 20px;
    transition: transform .25s ease;
}

.home .beneficio:hover i {
    transform: translateY(-10px);
}

/* ===============================
   MÁS VENDIDOS / NUEVOS
================================ */
.home .mas-vendidos {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.home .mas-vendidos .subtitulo {
    font-size: 14px;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.home .mas-vendidos h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.home .productos-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.home .producto {
    text-align: left;
}

.home .producto img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.home .categoria-prod {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}

.home .producto h3 {
    font-size: 17px;
    margin: 8px 0;
}

.home .precio {
    font-weight: bold;
    margin-bottom: 10px;
}

.home .btn-comprar {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* ===============================
   CALIDAD GARANTIZADA
   SOMOS FABRICANTES
================================ */
.home .calidad {
    background: #fff;
    padding: 90px 20px;
}

.home .calidad-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home .calidad-texto small {
    font-size: 14px;
    letter-spacing: 1px;
    color: #777;
    display: block;
    margin-bottom: 10px;
}

.home .calidad-texto h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #111;
}

.home .calidad-texto p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}

.home .calidad-imagen img {
    width: 100%;
    border-radius: 6px;
}

/* ===============================
   POR QUÉ ELEGIRNOS
================================ */
.home .elegirnos {
    background: #faf4f2;
    padding: 90px 20px;
}

.home .elegirnos-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home .elegirnos-texto h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.home .elegirnos-texto p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}

.home .elegirnos-imagen img {
    width: 100%;
    border-radius: 6px;
}


/* ===============================
   RESPONSIVE HOME
================================ */
@media (max-width: 1000px) {
    .home .beneficios-container,
    .home .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home .calidad-container,
    .home .elegirnos-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .home .beneficios-container,
    .home .productos-grid {
        grid-template-columns: 1fr;
    }

    .home .banner-texto h2 {
        font-size: 32px;
    }
}

/* ===============================
   CALIDAD / FABRICANTES
================================ */
.home .calidad {
    background: #fff;
    padding: 80px 20px;
}

.home .calidad-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home .calidad-sub {
    font-size: 14px;
    letter-spacing: 1px;
    color: #777;
}

.home .calidad-texto h2 {
    font-size: 42px;
    margin: 10px 0 20px;
}

.home .calidad-texto p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.home .calidad-imagen img {
    width: 100%;
    border-radius: 8px;
}

/* ===============================
   ELEGIRNOS
================================ */
.home .elegirnos {
    background: #fff;
    padding: 80px 20px;
}

.home .elegirnos-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home .elegirnos-texto h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.home .elegirnos-texto p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.home .elegirnos-imagen img {
    width: 100%;
    border-radius: 8px;
}


/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .home .calidad-container,
    .home .elegirnos-container {
        grid-template-columns: 1fr;
    }

    .home .testimonio {
        min-width: 100%;
    }
}

/* ===============================
   AJUSTE ESPACIADO SECCIONES
================================ */

/* Quita espacios excesivos entre bloques */
.home section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Contenedor calidad / elegirnos más compacto */
.calidad-fabrica-container {
    gap: 40px; /* antes estaba muy separado */
    margin-bottom: 40px;
}

/* Texto más pegado */
.calidad-info p {
    margin-bottom: 12px;
}

/* Imagen alineada mejor */
.calidad-img img {
    width: 100%;
    display: block;
}



/* ===============================
   FIX REAL ESPACIADO CALIDAD
================================ */

.calidad-fabrica {
    padding-top: 40px;
    padding-bottom: 40px;
}

.calidad-fabrica-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; /* MÁS JUNTO */
    align-items: center;
    margin-bottom: 20px; /* quita separación */
}

.calidad-fabrica-container.reverse {
    margin-top: -80px;
}


.calidad-info {
    padding-right: 10px;
}

.calidad-info p {
    margin-bottom: 10px;
}
.calidad-img img {
    width: 100%;
    display: block;
    border-radius: 8px;
}


/* ===============================
   AJUSTE ESTILO GRAN FABRICA
================================ */

/* Contenedor principal */
.calidad-fabrica {
    padding: 30px 20px;
}

/* Bloques más juntos */
.calidad-fabrica-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;              /* MÁS JUNTO */
    align-items: center;
    margin-bottom: 10px;    /* QUITA ESPACIO */
}

/* Segundo bloque sube */
.calidad-fabrica-container.reverse {
    margin-top: -60px;      /* CLAVE */
}

/* Texto compacto */
.calidad-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Imagen MÁS CHICA */
.calidad-img img {
    width: 90%;             /* REDUCE TAMAÑO */
    margin-left: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .calidad-fabrica-container {
        grid-template-columns: 1fr;
    }

    .calidad-fabrica-container.reverse {
        margin-top: 0;
    }

    .calidad-img img {
        width: 100%;
    }
}

/* ===============================
   TESTIMONIOS – SLIDER FINAL
   LIMPIO Y SIN CORTES
================================ */

.testimonios {
    background: #f7efec;
    padding: 90px 0;
    text-align: center;
}

/* Viewport */
.testimonios-viewport {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 30px 20px; /* espacio para que NO se corte el contorno */
    box-sizing: border-box;
}

/* Track */
.testimonios-track {
    display: flex;
    gap: 40px;
    transition: transform .6s ease;
}

/* Tarjetas */
.testimonio-card {
    flex: 0 0 calc(50% - 20px); /* SOLO 2 visibles */
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow:
        0 12px 30px rgba(0,0,0,.08),
        0 0 0 1px rgba(0,0,0,.04);
    text-align: left;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Hover elegante */
.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);
}

.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-viewport {
        padding: 20px;
    }

    .testimonio-card {
        flex: 0 0 100%;
        padding: 30px;
    }
}
