/* Estilos específicos para el Home / Index */
.hero-home {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-home-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-home-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-home-content {
    max-width: 800px;
    text-align: left;
}

.hero-home-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #a31621;
    margin-bottom: 5px;
}

.hero-home-content h1 {
    font-size: 54px;
    font-weight: 800;
    color: #a31621;
    line-height: 1.1;
    margin-bottom: 0;
}

.hero-home-content h1 span.resaltado-amarillo {
    background-color: #ffb703;
    color: #fff;
    padding: 2px 15px;
    border-radius: 12px;
    display: inline-block;
}

/* Clases de animación Fade Up Controladas con JS observer */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Tarjetas superpuestas del Home con 60px de margen inferior y zoom suave en hover */
.home-cards-overlap {
    position: relative;
    z-index: 20;
    max-width: 1300px;
    margin: -70px auto 60px auto;
    padding: 0 5px;
}

.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.home-card-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover asegurado una vez que ya apareció en pantalla */
.home-card-item.in-view:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.home-card-icon {
    width: 60px;
    height: 60px;
    background-color: #fff1f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-card-icon img {
    width: 28px;
    height: 28px;
}

.home-card-text h4 {
    font-size: 16px;
    font-weight: 800;
    color: #a31621;
    margin-bottom: 6px;
}

.home-card-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Sección Informativa Home (Sin fondos añadidos y con separación de 30px) */
.home-info-section {
    padding: 30px 0;
}

.home-info-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.home-info-text h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a31621;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-info-text h2 {
    font-size: 40px;
    font-weight: 800;
    color: #a31621;
    line-height: 1.1;
    margin-bottom: 20px;
}

.home-info-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.btn-home-amarillo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffb703;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.btn-home-amarillo:hover {
    background-color: #e5a302;
}

/* ---------------------------------------------------- */
/* SECCIÓN: Soluciones Completas (Separación de 30px)   */
/* ---------------------------------------------------- */
.home-soluciones-section {
    padding: 30px 0;
}

.soluciones-grid-layout {
    display: block; 
}

.soluciones-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.solucion-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solucion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.solucion-card img {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
}

.solucion-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.solucion-card .conoce-mas {
    font-size: 13px;
    color: #888888;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.solucion-card:hover .conoce-mas {
    color: #a31621;
}

/* Banner Tienda Online con separación de 30px y animación de zoom */
.home-banner-tienda {
    padding: 30px 0;
}

.banner-tienda-link {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
}

.banner-tienda-link:hover {
    transform: scale(1.01);
}

/* ---------------------------------------------------- */
/* SECCIÓN: Razones para elegirnos (Cero espacio inferior al borde) */
/* ---------------------------------------------------- */
.home-razones-section {
    padding: 30px 0 0 0;
    position: relative;
}

.razones-grid-3cols {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 30px;
    align-items: center;
}

.razones-col-izq, .razones-col-der {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-bottom: 0;
}

.razones-item-izq {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: right;
    justify-content: flex-end;
}

.razones-item-der {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    justify-content: flex-start;
}

.razones-text-izq, .razones-text-der {
    width: 100%;
}

.razones-item-izq img, .razones-item-der img {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.razones-text-izq h4, .razones-text-der h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.razones-text-izq p, .razones-text-der p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.color-naranja {
    color: #e59210;
}

.color-oscuro {
    color: #333333;
}

.razones-col-centro {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: end;
    height: 100%;
}

.razones-col-centro img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0; 
}

.linea-amarilla-full {
    width: 100%;
    height: 6px;
    background-color: #ffb703;
    display: block;
    margin-top: 0;
}

/* ---------------------------------------------------- */
/* ESTILOS: Noticias / Blog (Separación de 30px)        */
/* ---------------------------------------------------- */
.home-noticias-section {
    padding: 30px 0;
}

.noticia-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.noticia-img-top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.noticia-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.noticia-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.noticia-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.btn-ver-mas {
    display: inline-block;
    border: 1px solid #a31621;
    color: #a31621;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    align-self: flex-start;
    transition: all 0.3s;
}

.btn-ver-mas:hover {
    background-color: #a31621;
    color: #fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    font-size: 16px;
    color: #333;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: #a31621;
    color: #fff;
    border-color: #a31621;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.full-width-separator-gris {
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    margin: 30px 0;
}

/* ---------------------------------------------------- */
/* ESTILOS: Voces de Confianza (Nuevo diseño de reseñas y 50px de padding) */
/* ---------------------------------------------------- */
.home-resenas-section {
    padding: 50px 0;
}

.resenas-orange-backdrop-container {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

/* Fondo naranja conservando posición exacta superior y aumentando 50px de grosor abajo */
.resenas-orange-backdrop-container::before {
    content: "";
    position: absolute;
    top: calc(50% - 78px);
    transform: none;
    left: 0;
    width: 100%;
    height: 310px; 
    background: #c86800;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.resenas-carousel-track-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 10px;
    position: relative;
    z-index: 2;
}

.resenas-carousel-track {
    display: flex;
    gap: 25px;
    will-change: transform;
}

/* Nuevo diseño de tarjeta estilo Google */
.resena-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 3;
}

.resena-card:hover {
    transform: translateY(-5px);
}

.resena-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.resena-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.resena-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resena-info .resena-autor {
    font-size: 15px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 2px 0;
}

.resena-info .resena-time {
    font-size: 13px;
    color: #70757a;
}

.resena-google-logo {
    flex-shrink: 0;
}

.resena-stars-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.resena-stars {
    color: #fbbc04;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.resena-verified {
    display: flex;
    align-items: center;
}

.resena-text {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resena-read-more {
    font-size: 14px;
    color: #4d5156;
    font-weight: 500;
    margin-top: auto;
    display: inline-block;
}

.resena-card:hover .resena-read-more {
    text-decoration: underline;
}

/* ---------------------------------------------------- */
/* ESTILOS: Preguntas Frecuentes y Contacto             */
/* ---------------------------------------------------- */
.home-faq-contact-section {
    padding: 30px 0 0 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    width: 100%;
}

.faq-contact-layout-grid {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    width: 100%;
    background: #fff;
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
}

.accordion-header.active {
    background-color: #a31621;
    color: #fff;
}

.accordion-icon {
    font-size: 20px;
    font-weight: bold;
}

.accordion-body {
    padding: 20px;
    background: #fafafa;
    display: none;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Generales */
@media (max-width: 1024px) {
    .home-cards-grid {
        grid-template-columns: 1fr;
    }
    .home-cards-overlap {
        margin-top: 30px;
    }
    .home-info-grid {
        grid-template-columns: 1fr;
    }
    .hero-home {
        height: 500px;
    }
    .soluciones-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .noticias-grid-3cols {
        grid-template-columns: 1fr !important;
    }
    .faq-contact-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .faq-vaca-col {
        display: none; 
    }
    .faq-tabs-container {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-home {
        height: 100vw;
        align-items: flex-start;
    }
    .hero-home-overlay {
        padding-top: 60px;
        justify-content: center;
    }
    .hero-home-content {
        text-align: center;
        padding: 0 5%;
    }
    .hero-home-content h1 {
        font-size: 32px;
    }
    .hero-home-content h2 {
        font-size: 20px;
    }
    .home-info-text h2 {
        font-size: 30px;
    }
    .servicios-galeria-grid {
        flex-direction: column;
    }
    .galeria-col-izq img {
        height: 250px;
    }
    .soluciones-cards-grid {
        grid-template-columns: 1fr !important; 
    }

    .razones-titulo-principal {
        font-size: 30px !important;
    }

    .razones-grid-3cols {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .razones-col-izq {
        order: 1;
        gap: 25px;
        padding-bottom: 0;
    }
    
    .razones-col-centro {
        order: 2;
        margin: 15px 0;
    }
    .razones-col-centro img {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .razones-col-der {
        order: 3;
        gap: 25px;
        padding-bottom: 0;
    }
    
    .razones-item-izq, .razones-item-der {
        flex-direction: row; 
        text-align: left;
        justify-content: flex-start;
        gap: 15px;
    }
    .razones-item-izq {
        direction: ltr; 
    }

    .linea-amarilla-full {
        display: none !important;
    }

    .noticias-header-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .noticias-subtitle-right {
        text-align: left !important;
    }
    
    .faq-tabs-container {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
}