/* ====================================================
   CORPORATIVO GB — PREMIUM CSS SYSTEM
   Apple Glass · Parallax · Animation-First Design
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
    --blue:       #0066ff;
    --blue-lt:    #4da6ff;
    --blue-glow:  rgba(0, 102, 255, 0.35);
    --black:      #000000;
    --black-sm:   #080808;
    --glass-bg:   rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-blue: rgba(0, 102, 255, 0.4);
    --text:       #f0f0f0;
    --muted:      rgba(255,255,255,0.45);
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: default;
}

a { text-decoration: none; color: inherit; }
p { text-align: justify; }

/* ── NOISE OVERLAY ───────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ── CONTAINER ───────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ──────────────────────────────────────── */
#mainHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.5s var(--ease);
}

#mainHeader.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
}

.nav-wrap { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-primary-glow {
    background: var(--blue);
    color: #fff;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 30px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 50px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-outline-glass:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.85) 100%),
                url('../img/varias/i (3).jpeg');
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(1.12);
    animation: heroZoom 25s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroZoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1.0); }
}

.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,102,255,0.15);
    border: 1px solid var(--glass-border-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-lt);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 9vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.35) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
    text-align: left;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    animation: bounce 2.5s infinite;
}
.hero-scroll-hint span { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-scroll-hint i { font-size: 18px; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTION GLOBAL ──────────────────────────────── */
section { position: relative; overflow: hidden; }

.s-pad { padding: 120px 0; }

.section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-lt);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 680px;
    line-height: 1.7;
}

/* ── GLASS CARD ──────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s var(--ease);
    overflow: hidden;
}
.glass-card:hover {
    border-color: var(--glass-border-blue);
    box-shadow: 0 0 40px rgba(0,102,255,0.12), 0 30px 60px rgba(0,0,0,0.5);
    transform: translateY(-8px);
}

/* ── IDENTITY / ESSENCE ──────────────────────────── */
.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.val-pill {
    background: rgba(0,102,255,0.07);
    border: 1px solid rgba(0,102,255,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease);
}
.val-pill:hover {
    background: rgba(0,102,255,0.14);
    border-color: rgba(0,102,255,0.5);
}
.val-pill i { color: var(--blue-lt); font-size: 18px; width: 22px; }
.val-pill span { font-size: 14px; font-weight: 600; }

/* ── PARALLAX DIVIDER ────────────────────────────── */
.parallax-section {
    height: 75vh;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}
.parallax-section .container { position: relative; z-index: 2; }

/* ── UNITS / FORMATS ─────────────────────────────── */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.format-card {
    background: var(--black);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.format-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.format-card:hover::before { opacity: 1; }
.format-card.featured {
    border-color: var(--glass-border-blue);
    background: linear-gradient(180deg, rgba(0,102,255,0.05) 0%, var(--black) 100%);
}
.format-card.featured::before { opacity: 1; background: linear-gradient(90deg, var(--blue-lt), var(--blue), var(--blue-lt)); }

.format-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-lt);
    margin-bottom: 10px;
}
.format-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.format-area { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.feature-list li i { color: var(--blue-lt); font-size: 13px; margin-top: 3px; flex-shrink: 0; }

/* ── INVESTMENT ──────────────────────────────────── */
.invest-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}

.pillar-list { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.pillar-item {
    display: flex;
    align-items: start;
    gap: 18px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: all 0.3s var(--ease);
}
.pillar-item:hover { border-color: var(--glass-border-blue); background: rgba(0,102,255,0.06); }
.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,102,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-lt);
    font-size: 16px;
    flex-shrink: 0;
}
.pillar-item h5 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.pillar-item p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── QUOTE ───────────────────────────────────────── */
.quote-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    position: sticky;
    top: 120px;
}
.quote-mark { font-size: 80px; line-height: 0.6; color: var(--blue); font-family: Georgia; opacity: 0.4; margin-bottom: 20px; }
.quote-text {
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.85);
}
.quote-author { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-lt); }

/* ── GOVERNANCE ──────────────────────────────────── */
.gov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.gov-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s var(--ease);
    position: relative;
}
.gov-card:hover { border-color: var(--glass-border-blue); transform: translateY(-8px); }

.gov-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(0,102,255,0.15);
    margin-bottom: 12px;
}
.gov-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.gov-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.gov-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-lt);
    background: rgba(0,102,255,0.1);
    border: 1px solid rgba(0,102,255,0.25);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 20px;
}

/* ── CONTACT STRIP ───────────────────────────────── */
.contact-strip {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 50px 0;
    overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: center; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: rgba(0,102,255,0.12);
    border: 1px solid rgba(0,102,255,0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue-lt); font-size: 18px; flex-shrink: 0;
}
.contact-item h5 { font-size: 12px; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.05em; }
.contact-item p { font-size: 15px; font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── PARALLAX FOOTER ─────────────────────────────── */
.parallax-footer {
    height: 100vh;
    background: url('../img/footer.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.parallax-footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

/* ── SCROLL ANIMATIONS ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── GLOW LINES ──────────────────────────────────── */
.glow-line-sep {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), transparent);
    margin: 20px 0;
}

/* ── ORG CHART — Vertical Indented Tree ────────── */
.org-chart { width: 100%; }

.org-tree { width: 100%; }

/* Root node */
.org-root {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,102,255,0.12);
    border: 1px solid var(--glass-border-blue);
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
}
.org-root i { color: var(--blue-lt); font-size: 16px; }

/* Branch list */
.org-branch {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Top-level branches from root */
.org-branch.level-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

/* Connector from root to first children */
.org-root-connector {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(0,102,255,0.6), rgba(0,102,255,0.2));
    margin: 0 auto;
}

/* Horizontal bar spanning all l1 children */
.org-h-bridge {
    height: 1px;
    background: rgba(0,102,255,0.25);
    width: calc(100% - 40px);
    margin: 0 auto;
    position: relative;
}

/* Each top-level column */
.org-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

/* Vertical stem from h-bridge down to each l1 node */
.org-stem {
    width: 1px;
    height: 36px;
    background: rgba(0,102,255,0.25);
}

/* Generic node box */
.org-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
    cursor: default;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.org-box:hover {
    border-color: var(--glass-border-blue);
    background: rgba(0,102,255,0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0,102,255,0.18);
}
.org-box i { color: var(--blue-lt); font-size: 13px; }

/* Advisory (Asesoría) — ice blue variant */
.org-box.advisory {
    background: rgba(100, 180, 255, 0.06);
    border-color: rgba(100, 180, 255, 0.25);
}
.org-box.advisory i { color: #89d4ff; }
.org-advisory-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(137, 212, 255, 0.55);
    margin-top: 5px;
    text-align: center;
}

/* Sede / Sub-gerencia */
.org-box.sede {
    background: rgba(0,102,255,0.09);
    border-color: rgba(0,102,255,0.3);
    font-weight: 700;
}

/* Operational level */
.org-box.ops {
    background: rgba(255,255,255,0.025);
    font-size: 12px;
    font-weight: 500;
}

/* Gerencia + its children as a self-contained vertical block */
.org-gerencia {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sub-children for SnackBar */
.org-snack-children {
    display: flex;
    gap: 0;
    position: relative;
    justify-content: center;
}
.org-snack-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background: rgba(0,102,255,0.2);
    width: calc(100% - 30px);
}
.org-snack-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

/* Ops list under sub-gerencia */
.org-ops-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
    .formats-grid { grid-template-columns: 1fr 1fr; }
    .gov-grid { grid-template-columns: 1fr 1fr; }
    .invest-grid { grid-template-columns: 1fr; }
    .identity-grid { grid-template-columns: 1fr; gap: 40px; }
    .parallax-footer { background-attachment: scroll; }
    .parallax-section { background-attachment: scroll; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .formats-grid { grid-template-columns: 1fr; }
    .gov-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .nav-links { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .s-pad { padding: 80px 0; }
}
