/* ==========================================================================
   VELTORA ADVISORY - HOJA DE ESTILOS PRINCIPAL (/css/site.css)
   Paleta Botánica: #2D6A4F, #40916C, #52B788, #74C69D, #B7E4C7
   ========================================================================== */

:root {
    --c-dark-base: #13221b;
    --c-dark-sec: #1b3329;
    --c-deep-green: #2D6A4F;
    --c-forest-green: #40916C;
    --c-sage-green: #52B788;
    --c-mint-light: #74C69D;
    --c-mint-pale: #B7E4C7;
    
    --bg-primary: #0f1c16;
    --bg-secondary: #14241d;
    --bg-card: rgba(27, 51, 41, 0.75);
    
    --text-main: #f0fdf4;
    --text-muted: #bbf7d0;
    --accent-color: #74C69D;
    
    --border-glass: rgba(116, 198, 157, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --warning-banner-bg: #1c2e25;
    --warning-banner-border: #52B788;
    
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Preloader */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: hidePreloader 0.5s ease 0.5s forwards;
    pointer-events: none;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(116, 198, 157, 0.2);
    border-top-color: var(--c-mint-light);
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes hidePreloader {
    to { opacity: 0; visibility: hidden; }
}

/* Aviso Legal Superior Ads */
.ads-disclaimer-banner {
    background-color: var(--warning-banner-bg);
    border-bottom: 2px solid var(--warning-banner-border);
    padding: 10px 20px;
    font-size: 0.82rem;
    color: #e2f8ec;
    text-align: center;
}

.disclaimer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.disclaimer-badge {
    background-color: var(--c-deep-green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Cabecera y Navegación */
.site-header {
    background-color: rgba(15, 28, 22, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-identity {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.brand-tag {
    font-size: 0.7rem;
    color: var(--c-mint-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-navigation .nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-navigation .nav-list li {
    animation: fadeInStaggered 0.5s ease backwards;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes fadeInStaggered {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-navigation .nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition-smooth);
}

.nav-navigation .nav-list a:hover,
.nav-navigation .nav-list a.active {
    color: var(--c-mint-light);
    transform: translateY(-4px) scale(1.05);
}

/* Botones Interactivos */
.btn-primary-toggle {
    background: linear-gradient(135deg, var(--c-forest-green), var(--c-deep-green));
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-block;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary-toggle:hover {
    background: linear-gradient(135deg, var(--c-sage-green), var(--c-forest-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 183, 136, 0.4);
}

.btn-primary-toggle:active {
    transform: scale(0.96) translateY(0);
}

.btn-text-link {
    color: var(--c-mint-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-text-link:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Contenedores y Secciones */
.container-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--c-mint-light);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header-modern {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px auto;
}

.section-header-modern h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.section-header-modern p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Glassmorphism Cards (Corrección de visibilidad y estructura flex) */
.glass-card-interactive {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.glass-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(183, 228, 199, 0.15), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.glass-card-interactive:hover::before {
    left: 100%;
}

.glass-card-interactive:hover {
    border-color: var(--c-mint-light);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 28, 22, 0.6);
}

/* Hero Edge-to-Edge */
.hero-edge-editorial {
    padding: 100px 0 140px 0;
}

.hero-edge-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

.hero-animated-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-animated-title .title-line {
    display: block;
}

.hero-animated-title .accent-text {
    color: var(--c-mint-light);
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.edge-offset {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
}

.glass-card-floating {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.glass-card-floating img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.floating-badge-glass {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(19, 34, 27, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-mint-light);
}

.metric-txt {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Secciones Dinámicas Asimétricas (Corrección de renderizado y altura) */
.section-dynamic-asymmetric {
    padding: 110px 0;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.asymmetric-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.card-img-holder {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.card-content {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-mint-light);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Zigzag Edge */
.section-edge-zigzag {
    padding: 130px 0;
}

.edge-split-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.edge-image-pane img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.edge-content-pane h2 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.edge-content-pane p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.check-list-editorial {
    list-style: none;
    margin-top: 20px;
}

.check-list-editorial li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.check-list-editorial li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-mint-light);
    font-weight: 700;
}

.action-wrap {
    margin-top: 24px;
}

/* Estadísticas Monumentales */
.section-monumental-stats {
    padding: 110px 0;
    background-color: var(--bg-secondary);
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.stat-box {
    padding: 36px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--c-mint-light);
    display: block;
    margin-bottom: 10px;
}

.stat-box h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-mini-img {
    margin-top: 24px;
    border-radius: 10px;
    overflow: hidden;
    height: 140px;
    border: 1px solid var(--border-glass);
}

.stat-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline Edge Grid */
.section-audit-timeline {
    padding: 110px 0;
}

.timeline-edge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.timeline-node {
    padding: 30px 24px;
}

.node-img-top {
    height: 120px;
    overflow: hidden;
    margin: -30px -24px 20px -24px;
    border-bottom: 1px solid var(--border-glass);
}

.node-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-mint-light);
    display: block;
    margin-bottom: 14px;
}

.timeline-node h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-node p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Transparencia Regulatoria */
.section-regulatory-focus {
    padding: 110px 0;
    background-color: var(--bg-secondary);
}

.regulatory-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.regulatory-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.regulatory-content p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.regulatory-bullets {
    list-style: none;
    margin-top: 20px;
}

.regulatory-bullets li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
}

.regulatory-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-mint-light);
    font-weight: 700;
}

.regulatory-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
}

/* Movilidad Corporativa */
.section-corporate-mobility {
    padding: 110px 0;
}

.corporate-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* Galería Editorial */
.section-editorial-gallery {
    padding: 110px 0;
    background-color: var(--bg-secondary);
}

.gallery-edge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 340px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(15, 28, 22, 0.9));
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
}

/* CTA Edge Box */
.section-cta-edge {
    padding: 100px 0 140px 0;
}

.cta-edge-box {
    padding: 80px 60px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(27, 51, 41, 0.85), rgba(45, 106, 79, 0.45));
}

.cta-edge-box h2 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-edge-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 34px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

/* Footer Institucional */
.site-footer {
    background-color: var(--c-dark-base);
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-brand .brand-name {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-disclaimer-mini {
    font-size: 0.8rem;
    color: var(--c-mint-light);
    font-weight: 500;
}

.footer-col-links h4,
.footer-col-legal h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col-links ul,
.footer-col-legal ul {
    list-style: none;
}

.footer-col-links li,
.footer-col-legal li {
    margin-bottom: 10px;
}

.footer-col-links a,
.footer-col-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-col-links a:hover,
.footer-col-legal a:hover {
    color: var(--c-mint-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .hero-edge-grid, .edge-split-container, .asymmetric-flow-grid, .stats-grid-modern, .timeline-edge-grid, .gallery-edge-grid, .regulatory-split, .corporate-cards-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-animated-title {
        font-size: 2.3rem;
    }
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA DE OPACIDAD CERO (ANULAR SCRIPTS DE ENTRADA)
   ========================================================================== */
.section-dynamic-asymmetric,
.section-dynamic-asymmetric *,
.glass-card-interactive,
.asymmetric-flow-grid * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}