/* ================================================
   VARIABLES Y ESTILOS BASE
   ================================================ */
:root {
    --mockup-green: #1b5e20;
    --mockup-star: #fbc02d;
    --text-dark: #111;
    --text-grey: #444;
    --light-bg: #e8e8e6;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 64px;
    line-height: 95%;
    text-align: center;
    color: #000000;
    margin-bottom: 80px;
    /* Ajuste visual */
}

.text-highlight {
    color: var(--mockup-green);
}


/* ================================================
   HERO SECTION (Quiénes Somos) - VERSIÓN IMAGEN
   ================================================ */
/* ================================================
   HERO SECTION (Quiénes Somos)
   ================================================ */
.hero-quienes {
    padding: 0;
    /* Sin padding vertical para ajustar a imagen */
    background-color: white;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Permitir ancho completo ignorando el container global solo aquí */
.hero-quienes .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* La caja contenedora principal */
.hero-banner-box {
    position: relative;
    width: 100%;
    max-width: 1820px;
    height: auto;
    min-height: 400px;
    margin: 0 auto;
    background-color: #f0f0f0;
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

/* Capa de la imagen de fondo */
.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
    /* Match container */
}

/* Deshacer estilos de contenedor previo para permitir absoluto */
.hero-content {
    position: static;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    z-index: 5;
    order: 1;
}

/* TÍTULO: Ajustado a la izquierda */
.hero-content h1 {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    left: 0;
    top: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2;
    display: block;
    color: #000000;
    margin: 0;
    padding: 30px 20px 20px;
    z-index: 10;
    text-align: center;
    word-wrap: break-word;
}

.hero-content h1 .text-highlight-big {
    font-weight: 600;
    color: var(--mockup-green);
    font-size: 1.2em;
    display: inline;
    margin-top: 0;
}

/* PÁRRAFO: Ajustado a la izquierda alineado con el título */
.hero-content p {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    left: 0;
    top: 0;
    bottom: auto;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
    padding: 0 20px 30px;
    z-index: 10;
    text-align: center;
    word-wrap: break-word;
}


@media (min-width: 1025px) {
    .hero-banner-box {
        height: 829px;
        display: block;
    }

    .hero-background-layer {
        position: absolute;
    }

    .hero-content {
        order: unset;
    }

    .hero-content h1 {
        position: absolute;
        width: 660px;
        left: 102px;
        top: 113px;
        font-size: 70px;
        line-height: 95%;
        padding: 0;
        text-align: left;
        margin-bottom: 0;
    }

    .hero-content h1 .text-highlight-big {
        font-size: 90px;
    }

    .hero-content p {
        position: absolute;
        width: 350px;
        height: auto;
        max-height: 420px;
        left: 103px;
        top: 380px;
        bottom: auto;
        font-size: 25px;
        line-height: 34px;
        letter-spacing: -0.05em;
        padding: 0;
        text-align: left;
        margin: 0;
    }
}

@media (max-width: 767px) {
    /* En móvil: texto arriba, imagen abajo */
    .hero-banner-box {
        display: flex;
        flex-direction: column;
        min-height: auto;
        background-color: white;
    }

    .hero-background-layer {
        position: relative;
        order: 2;
        width: 100%;
        height: auto;
        min-height: 300px;
        z-index: 1;
    }

    .hero-img {
        width: 100%;
        height: auto;
        min-height: 300px;
        object-fit: cover;
        border-radius: 0 0 20px 20px;
    }

    .hero-content {
        order: 1;
        position: relative;
        z-index: 2;
        background: white;
        padding-bottom: 0;
    }

    .hero-content h1 {
        background: white;
        padding-bottom: 20px;
    }

    .hero-content p {
        background: white;
        padding-bottom: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-banner-box {
        min-height: 500px;
        display: block;
    }

    .hero-background-layer {
        position: absolute;
    }

    .hero-content {
        order: unset;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        padding: 40px 40px 20px;
    }

    .hero-content p {
        font-size: 18px;
        padding: 0 40px 40px;
    }
}

/* ================================================
   SECCIÓN CARACTERÍSTICAS (LO QUE NOS MUEVE) - Estilo Home
   ================================================ */
.valores-section {
    padding: 80px 0;
    background: white;
    /* Changed from gradient to white */
    overflow-x: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.feature-card {
    background-color: #F8FEFB;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 250px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Icon circle background - Ellipse 11 */
.feature-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(33, 120, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #006045;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
    stroke: #006045;
    stroke-width: 1px;
    transform: none;
}

.feature-title {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #21784D;
    margin: 0 0 16px 0;
    text-align: left;
    word-wrap: break-word;
}

/* Separator line */
.feature-card::before {
    content: '';
    position: relative;
    width: 100%;
    height: 1px;
    left: 0;
    top: 0;
    border: 1px solid #000000;
    margin: 0 0 16px 0;
}

.feature-description {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    text-align: left;
    word-wrap: break-word;
}

/* Third card specific styles (Garantizar la máxima seguridad) */
.feature-card:nth-child(3) .feature-title {
    width: 100%;
    left: 0;
}


@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }

    .feature-card {
        padding: 28px;
        min-height: 280px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon svg {
        width: 70px;
        height: 70px;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature-description {
        font-size: 18px;
    }
}

@media (min-width: 1025px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0 60px;
    }

    .feature-card {
        width: 584px;
        height: 390px;
        padding: 0;
        display: block;
    }

    .feature-icon {
        position: absolute;
        left: 5.65%;
        right: 79.79%;
        top: 10%;
        bottom: 68.21%;
        width: 85px;
        height: 85px;
        margin-bottom: 0;
    }

    .feature-icon svg {
        width: 128px;
        height: 128px;
        transform: translate(16px, -16px);
    }

    .feature-title {
        position: absolute;
        width: 391px;
        height: 98px;
        left: 166px;
        top: 15px;
        font-size: 40px;
        line-height: 49px;
        margin: 0;
    }

    .feature-card::before {
        position: absolute;
        width: 529px;
        height: 0px;
        left: 28px;
        top: 130px;
        margin: 0;
    }

    .feature-description {
        position: absolute;
        width: 524px;
        height: 204px;
        left: calc(50% - 524px/2 + 3px);
        top: 147px;
        font-size: 25px;
        line-height: 34px;
    }

    .feature-card:nth-child(3) .feature-title {
        width: 392px;
        left: 165px;
    }
}


/* ================================================
   CARRUSELES DE TESTIMONIOS (DOS PARALELOS)
   ================================================ */
.testimonios-section {
    padding: 80px 0;
    background-color: white;
    /* Changed from var(--light-bg) to white */
    position: relative;
    overflow: hidden;
}

.testimonios-section .section-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    color: #000000;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
    padding: 0 20px;
}

.testimonios-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    transform: translateX(0);
    overflow: hidden;
    padding: 30px 0;
    margin-bottom: 20px;
}

.carousel-track {
    width: 100%;
    display: flex;
    gap: 30px;
}

.testimonios-carousel:last-child {
    margin-bottom: 0;
}

/* Primer carrusel - se mueve hacia la izquierda */
.carrusel-izquierda .carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-izquierda 40s linear infinite;
    width: max-content;
}

/* Segundo carrusel - se mueve hacia la derecha */
.carrusel-derecha .carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-izquierda 40s linear infinite reverse;
    width: max-content;
}

@keyframes scroll-izquierda {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-derecha {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.testimonio-card {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    height: auto;
    min-height: 300px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.testimonio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mockup-green);
}

.testimonio-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0 0 5px 0;
}

.testimonio-location {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonio-location svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.testimonio-texto {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.testimonio-estrellas {
    color: var(--mockup-star);
    font-size: 1rem;
    display: flex;
    gap: 3px;
    position: absolute;
    /* Position at bottom right */
    bottom: 30px;
    right: 30px;
}

.icon-star {
    fill: var(--mockup-star);
    stroke: var(--mockup-star);
    width: 25px;
    height: 25px;
}


/* ================================================
   SECCIÓN FAQs
   ================================================ */
.faqs-section {
    padding: 80px 0;
    background: white;
}

/* Override container restrictions for full-width FAQs */
.faqs-section .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}


.faqs-section .section-title {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    left: auto;
    top: auto;
    margin: 0 0 40px 0;
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2;
    color: #000000;
    text-align: center;
}

.faqs-list {
    max-width: 100%;
    width: 100%;
    margin: 0;
    margin-top: 0 !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.faq-item {
    width: 100%;
    height: 54px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    /* Allow content to expand */
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    /* Stack question and answer vertically */
    align-items: stretch;
}

.faq-item.active {
    border-color: #e0e0e0;
    box-shadow: none;
    height: auto;
}

.faq-question {
    width: 100%;
    min-height: 54px;
    /* Minimum height */
    padding: 0 22px 0 30px;
    /* 22px padding right for icon spacing */
    background: white;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    /* Space between text and icon */
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    color: #000000;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question svg {
    transition: transform 0.3s;
    color: #666;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 30px;
    /* Space from text */
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
    background-color: white;
    margin-top: 0;
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 8px;
}


/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }

    .testimonios-section .section-title {
        font-size: 2.5rem;
        text-align: left;
        margin-left: 30px;
        padding-left: 0;
    }

    .testimonio-card {
        flex: 0 0 320px;
        width: 320px;
        min-width: 320px;
        padding: 25px;
    }

    .faqs-section .section-title {
        font-size: 2.5rem;
        text-align: left;
        padding-left: 50px;
        padding-right: 50px;
    }

    .faqs-list {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 1025px) {
    .section-title {
        font-size: 64px;
        margin-bottom: 80px;
    }

    .testimonios-section .section-title {
        font-size: 60px;
        margin-left: 50px;
        max-width: 1382px;
        margin-bottom: 60px;
    }

    .testimonio-card {
        flex: 0 0 345px;
        width: 345px;
        height: 353px;
        padding: 30px;
    }

    .faqs-section .section-title {
        font-size: 70px;
        padding-left: 200px;
        padding-right: 200px;
    }

    .faqs-list {
        padding-left: 200px;
        padding-right: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .testimonios-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .testimonio-card {
        flex: 0 0 260px;
        width: 260px;
        min-width: 260px;
        padding: 18px;
    }

    .testimonio-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonio-info h4 {
        font-size: 1rem;
    }

    .testimonio-texto {
        font-size: 0.9rem;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .section-title {
        font-size: 1.4rem;
    }

    .testimonio-card {
        flex: 0 0 240px;
        width: 240px;
        min-width: 240px;
    }
}