/* =========================================
   ESTILOS GENERALES DE SECCIONES
   ========================================= */
.home-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-color, #000);
    line-height: 1.2;
}

.section-title.center {
    text-align: center;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.home-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end; 
    padding-bottom: 80px; 
    
    color: #fff;
    background-image: url('../img/hero-bg.jpg'); 
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); 
    z-index: 1;
}

.hero-bottom-layout {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    gap: 40px;
    width: 100%;
}

.hero-col-left {
    flex: 1; 
    max-width: 500px; 
}

.hero-col-left h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem; 
    font-weight: 400;  
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0; 
}

.hero-col-right {
    flex: 1.5;
    max-width: 500px; 
    display: flex;
    justify-content: flex-end; 
}

.hero-right-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

@media (min-width: 993px) {
    .hero-right-content {
        align-items: flex-start; 
        max-width: 100%; 
    }
}

.hero-desc {
    font-size: 0.95rem; 
    line-height: 1.5;
    color: #FFFFFF;
    font-weight: 300; 
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    margin: 0;
    max-width: 100%;
}

.btn-hero-white {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 30px;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.btn-hero-white::after {
    content: ' \2192'; 
    font-weight: 400;
    margin-left: 10px; 
    transition: transform 0.3s ease;
}

.btn-hero-white:hover {
    background-color: #f2f2f2 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-hero-white:hover::after {
    transform: translateX(5px); 
}


/* =========================================
   2. IDENTITY SECTION
   ========================================= */
.section-identity {
    background-color: #fff;
    padding-bottom: 120px; 
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end; 
}

.big-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    color: #2D2418;
    text-transform: uppercase;
    letter-spacing: -1px;
    padding-left: 80px;
    margin-bottom: 0;
}

.identity-right p {
    font-family: 'Inter Tight', sans-serif; 
    font-size: 0.9rem; 
    line-height: 1.5;
    color: #2D2418; 
    border-left: none;
    padding-left: 0;
    margin-bottom: 0;
    padding-bottom: 5px; 
}

.identity-right p strong {
    font-weight: 700;
    color: #000;
}

/* =========================================
   3. GAP SECTION (Texto manda la altura)
   ========================================= */
.section-gap {
    background-color: #FDFBFA; 
    padding: 120px 0;
}

.gap-layout {
    display: flex;
    gap: 60px; 
    align-items: stretch; /* Alturas iguales */
}

/* --- IMAGEN ESCLAVA --- */
.gap-col-image {
    flex: 2; /* 2/3 del ancho */
    position: relative; 
    min-height: 100%; 
}

.gap-image-container {
    position: absolute; /* Fuera del flujo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
}

.ramon-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* --- TEXTO MAESTRO --- */
.gap-col-content {
    flex: 0.8; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 30px;
}

.gap-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: #2D2418;
    line-height: 1.1;
    margin: 0;
    text-align: left;
    margin-bottom: 10px;
}

.gap-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gap-text-block p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; 
    line-height: 1.6;
    color: #2D2418;
    margin: 0;
}

.gap-text-block p strong {
    font-weight: 700;
    color: #000;
}

.gap-final-bold {
    font-weight: 700 !important;
    margin-top: 15px;
    display: block;
}


/* =========================================
   4. ECOSYSTEM SECTION (Dark Mode)
   ========================================= */
.section-ecosystem {
    background-image: url('../img/fondo-digital.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 120px 0;
}

.eco-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 40px;
}

.eco-main-title {
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    max-width: 600px;
}

.eco-header-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    max-width: 300px;
    text-align: left; 
    margin: 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.eco-item {
    display: flex;
    flex-direction: column;
}

.eco-img-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
}

.eco-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eco-divider {
    width: 100%;
    height: 1px;
    background-color: #fff; 
    margin: 20px 0;
}

.eco-title {
    font-family: 'Inter', sans-serif; 
    font-size: 1.2rem;
    font-weight: 600; 
    color: #fff; 
    margin: 0 0 10px 0;
}

.eco-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400; 
    color: #8A8989; 
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   5. RESULTS SECTION (SIN ESPACIO INFERIOR)
   ========================================= */
.section-results {
    background-color: #FDFBFA;
    padding: 140px 0 20px 0; 
}

.results-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    gap: 40px;
}

/* Columna Izquierda */
.results-left {
    flex: 0 0 350px; 
    max-width: 400px;
}

.results-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    color: #2D2418;
    line-height: 1;
    margin: 0;
}

/* Columna Derecha */
.results-right {
    flex: 0 0 500px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: flex-start;
    margin-top: 230px; 
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #2D2418;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative; 
    border-bottom: none; 
}

/* LÍNEA COMPACTA */
.results-list li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #C4C4C4;
    width: 100%;       
    max-width: 380px;  
}

/* Checkmark SVG */
.results-list li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6L5.5 10.5L15 1' stroke='%232D2418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0; 
}

.results-footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #2D2418;
    line-height: 1.5;
    max-width: 380px; 
    margin-top: -10px;
}

.results-footer-text strong {
    font-weight: 700;
}

/* =========================================
   6. METHODOLOGY SECTION (SIN ESPACIO SUPERIOR)
   ========================================= */
.section-methodology {
    background-color: #fff; 
    padding: 0 0 100px 0;
}

.methodology-full-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}


/* =========================================
   7. NUEVAS SECCIONES (TRUST & CTA)
   ========================================= */

/* --- SECCIÓN TRUST (Clara) --- */
.section-trust {
    background-color: #FAF8F5; /* Tono crema suave */
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.watermark-title {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03); /* Casi transparente */
    text-align: center;
    line-height: 0.9;
    pointer-events: none;
    z-index: 1;
}

.trust-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px; 
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-list li {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #2D2418;
    margin-bottom: 30px;
    line-height: 1.5;
}

.trust-col-visual {
    display: flex;
    align-items: center;
    gap: 30px;
}

.trust-img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.trust-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #000;
    line-height: 1.1;
    margin: 0;
}

/* --- SECCIÓN CTA FINAL (Oscura) --- */
.section-digital-cta {
    background-image: url('../img/fondo-digital.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 140px 0; /* Un poco más de aire vertical */
    color: #fff;
    display: flex;
    align-items: center; 
}

.cta-container {
    display: flex;
    justify-content: center; /* Centra el bloque .cta-box en la pantalla */
    width: 100%;
}

.cta-box {
    display: inline-flex; /* Se ajusta al ancho del contenido */
    flex-direction: column;
    align-items: flex-start; /* Alinea texto y botón a la izquierda */
    text-align: left;
    /* Evitamos que el bloque se pegue a los bordes en pantallas medianas */
    padding: 0 20px; 
}

.cta-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    white-space: nowrap; /* Mantiene una sola línea */
    margin: 0; /* Pegado al subtítulo */
    color: #fff;
}

.cta-subheading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 10px 0; /* Espacio mínimo antes del botón */
}

.cta-action {
    margin-top: 30px;
}

.btn-white-expert {
    display: inline-flex;
    align-items: center;
    background-color: #FFFFFF;
    color: #000000;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-white-expert::after {
    content: '\2192';
    margin-left: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-white-expert:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

.btn-white-expert:hover::after {
    transform: translateX(5px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    /* Hero */
    .hero-bottom-layout {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 40px;
        gap: 30px;
    }
    .hero-col-left, .hero-col-right {
        max-width: 100%;
        flex: auto;
    }
    .home-hero { background-position: center; }
    .hero-col-left h1 { font-size: 1.6rem; }
    
    /* Identity */
    .identity-grid { align-items: start; }
    .big-title { 
        font-size: 3rem; 
        padding-left: 0; 
    }
    
    /* Gap Section */
    .gap-layout {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start; 
    }
    .gap-col-image, .gap-col-content {
        flex: auto;
        width: 100%;
    }
    .gap-image-container {
        position: relative; 
        height: auto;
    }
    .ramon-img { height: auto; }

    /* Ecosystem */
    .eco-header {
        flex-direction: column;
        gap: 20px;
    }
    .eco-header-desc { max-width: 100%; }
    .eco-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Results */
    .results-layout {
        flex-direction: column;
        gap: 60px;
    }
    .results-left, .results-right {
        max-width: 100%;
        flex: auto;
    }
    .results-right {
        margin-top: 0; 
    }
    .results-main-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    .results-list li::after {
        max-width: 100%; 
    }
    .results-footer-text {
        max-width: 100%;
    }

    /* Trust Section */
    .watermark-title { font-size: 4rem; top: 20px; }
    .trust-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 20px; }
    .trust-col-visual { flex-direction: column; align-items: flex-start; }
    .trust-img { width: 100%; height: auto; max-height: 300px; }

    /* CTA Section - Responsive adjustments */
    .cta-box {
        align-items: flex-start; /* Aseguramos alineación izq en tablet */
    }
    .cta-heading { 
        font-size: 2rem; 
        /* En móvil permitimos salto de línea si no cabe */
        white-space: normal; 
    }
    .cta-subheading { font-size: 2rem; }
}

@media (max-width: 768px) {
    .home-section { padding: 60px 0; }
    
    .identity-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .identity-right p { border-left: none; padding-left: 0; }
    .eco-grid { grid-template-columns: 1fr; }
}