/* ==========================================================================
   VARIABLES & FUNDACIÓN EDITORIAL (REALISMO FREELANCE Y ANALÍTICO)
   ========================================================================== */
:root {
    /* Paleta Editorial Elegante y Seria */
    --bg: #f7f6f2;             
    --text: #1a1a1a;           
    --text-sec: #5e5e5e;       
    --accent: #1e3a8a; /* Azul más profundo, corporativo e institucional */
    --surface: #ffffff;
    --border: #e5e5e5;

    /* Tema Oscuro (Confiable, analítico) */
    --bg-dark: #0a0a0b;
    --text-dark: #f0f0f0;
    --text-sec-dark: #a1a1aa;
    --surface-dark: #18181b;
    --border-dark: #27272a;

    /* Tipografía */
    --font-sans: 'Manrope', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* UX */
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    --current-bg: var(--bg-dark);
    --current-text: var(--text-dark);
    --current-text-sec: var(--text-sec-dark);
    --current-surface: var(--surface-dark);
    --current-border: var(--border-dark);
}

.editorial-theme.light-mode {
    background-color: var(--bg);
    color: var(--text);
    --current-bg: var(--bg);
    --current-text: var(--text);
    --current-text-sec: var(--text-sec);
    --current-surface: var(--surface);
    --current-border: var(--border);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Utilidades Tipográficas */
.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.highlight {
    color: var(--accent);
    font-weight: 800;
}

/* ==========================================================================
   SISTEMA DE NAVEGACIÓN
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 3px;
    background: var(--accent);
    z-index: 9999;
}

.floating-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    mix-blend-mode: difference; 
    color: #fff; 
}

.logo-mark {
    font-size: 1.15rem; /* Serio y discreto */
    font-weight: 800;
    letter-spacing: -0.02em;
}
.logo-mark span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1rem; }

.icon-btn {
    background: none; border: none; color: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition);
}

.btn-contact {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    border: 1px solid currentColor;
    border-radius: 6px; /* Más moderno, menos botón web anticuado */
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-contact:hover {
    background-color: #fff;
    color: #000;
}

/* ==========================================================================
   BLOQUE 1: INTRODUCCIÓN (COMPACTA Y CLARA)
   ========================================================================== */
.block-intro {
    position: relative;
    min-height: 80vh; /* No necesita ser colosal, queremos practicidad */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding-bottom: 3rem;
    overflow: hidden;
}

.immersive-photo-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.editorial-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.02);
    filter: brightness(0.4); /* Asegura contraste perfecto para leer */
}

.photo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--current-bg) 0%, transparent 80%);
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 800;
}

.headline {
    font-size: 2.5rem; /* Escala lógica en móvil */
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--current-text);
}

.headline .italic-serif {
    font-size: 2.75rem;
    color: var(--current-text-sec);
    display: block;
}

/* ==========================================================================
   BLOQUE 2: MENSAJE PRINCIPAL
   ========================================================================== */
.block-manifesto {
    padding: 5rem 1.5rem;
    background-color: var(--current-bg);
}

.manifesto-wrapper { max-width: 95%; margin: 0 auto; }

.manifesto-text {
    font-size: 1.35rem; /* Cómodo para el ojo, confiable */
    font-weight: 400;
    line-height: 1.5;
    color: var(--current-text);
}

/* ==========================================================================
   BLOQUE 3: CÓMO PIENSO (BACKGROUND POLICIAL/ANALÍTICO)
   ========================================================================== */
.block-mindset {
    padding: 5rem 1.5rem;
    background-color: var(--current-surface);
}

.mindset-title h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.75rem;
    color: var(--current-text-sec);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--current-border);
    padding-bottom: 1rem;
}

.mindset-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mindset-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--current-border);
    transition: border-color 0.3s;
}

.mindset-item:hover { border-left-color: var(--accent); }

.mindset-item .number {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.mindset-item h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--current-text);
}

.mindset-item p {
    font-size: 1.05rem;
    color: var(--current-text-sec);
    line-height: 1.6;
}

/* ==========================================================================
   BLOQUE 4: QUÉ PUEDO HACER POR TI (SERVICIOS REALES)
   ========================================================================== */
.block-services {
    padding: 5rem 1.5rem;
    background-color: var(--current-bg);
}

.services-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--current-text);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--current-surface);
    border: 1px solid var(--current-border);
    padding: 2rem;
    border-radius: 6px;
    transition: transform var(--transition);
}

.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--current-text);
}

.service-card p {
    font-size: 1rem;
    color: var(--current-text-sec);
    line-height: 1.5;
}

/* ==========================================================================
   BLOQUE 5: EL VALOR HUMANO
   ========================================================================== */
.block-value {
    padding: 5rem 1.5rem;
    background-color: var(--accent);
    color: #ffffff; 
}

.value-statement h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.big-p {
    font-size: 1.35rem; /* Muy conversacional */
    font-weight: 600;
    line-height: 1.4;
}
.big-p .italic-serif { color: #a5b4fc; }

/* ==========================================================================
   BLOQUE FINAL: CONTACTO
   ========================================================================== */
.block-contact {
    padding: 5rem 1.5rem 3rem;
    background-color: var(--current-surface);
}

.huge-text {
    font-size: 2.75rem; /* Tamaño adecuado y elegante */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--current-text);
}

.contact-copy p {
    font-size: 1.1rem;
    color: var(--current-text-sec);
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--current-border);
}

.link-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--current-border);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--current-text);
    transition: color 0.3s ease;
}

.link-arrow .material-icons { font-size: 1.5rem; transition: transform 0.3s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .material-icons { transform: translate(4px, -4px); }

.footer-mark {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--current-text-sec);
    text-align: center;
}

/* ==========================================================================
   ANIMACIONES (NATIVAS JS)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
    will-change: transform, opacity;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 150ms; }

/* ==========================================================================
   DESKTOP (DISTRIBUCIÓN REALISTA Y ORDENADA)
   ========================================================================== */
@media (min-width: 768px) {
    /* Tablet */
    html { font-size: 16px; } 
    
    .headline { font-size: 3rem; }
    .headline .italic-serif { font-size: 3.25rem; }
    
    .manifesto-wrapper { width: 85%; }
    .manifesto-text { font-size: 1.5rem; }
    
    .mindset-list { flex-direction: row; gap: 2rem; }
    .mindset-item { flex: 1; }
    
    .services-grid { flex-direction: row; flex-wrap: wrap; }
    .service-card { flex: 1 1 calc(50% - 1.5rem); }
}

@media (min-width: 1024px) {
    /* Desktop */
    .block-intro {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 5vw;
        min-height: 80vh; /* Se mantiene práctico, no full screen obligado */
    }
    
    .immersive-photo-container {
        position: relative;
        width: 35vw;
        height: 60vh;
        order: 2;
        border-radius: 8px; 
        overflow: hidden;
    }
    
    .photo-overlay { display: none; }
    .editorial-photo { filter: brightness(0.9); transform: scale(1); }
    
    .intro-content {
        order: 1;
        width: 50vw;
        z-index: 2;
        padding: 0;
    }
    
    /* Tipografía moderada en Desktop (Clara, ni gigante ni mínima) */
    .headline { font-size: 3.5rem; } 
    .headline .italic-serif { font-size: 4rem; }
    
    .manifesto-wrapper { margin: 0 auto; width: 65%; text-align: center; }
    .manifesto-text { font-size: 1.85rem; } /* Muy humanizado */
    
    .big-p { font-size: 1.85rem; width: 75%; } /* Conversacional */
    
    .services-grid { gap: 2.5rem; }
    /* Grid de servicios a 3 columnas */
    .service-card { flex: 1 1 calc(33.333% - 2.5rem); }
    
    .contact-box {
        display: flex;
        align-items: flex-start;
        gap: 5rem;
    }
    .contact-copy { flex: 1; }
    .contact-copy p { font-size: 1.15rem; line-height: 1.6; }
    
    .contact-links { flex: 1.5; border-top: none; }
    .link-arrow { border-top: 1px solid var(--current-border); padding: 1.5rem 0; font-size: 1.25rem; }
    .huge-text { font-size: 4rem; } /* Balanceado */
}

/* ==========================================================================
   PÁGINA 404
   ========================================================================== */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--current-bg);
    color: var(--current-text);
}