/* ═══════════════ RESET & VARIABLES ═══════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #060a13;
    --bg-base: #0a0e17;
    --bg-card: #0f1520;
    --bg-card-hover: #141c2b;
    --bg-elevated: #1a2332;
    --border: #1e293b;
    --border-glow: #10b98133;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --green: #10b981;
    --green-bright: #34d399;
    --green-glow: #10b98140;
    --gold: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-glow: #f59e0b30;
    --red: #ef4444;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-body: 'Outfit', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ═══════════════ TICKER TAPE ═══════════════ */
.ticker-tape {
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 6px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.ticker-track {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-track span {
    margin-right: 3rem;
}

.ticker-track .up { color: var(--green); }
.ticker-track .down { color: var(--red); }

.ticker-loading {
    color: var(--text-muted);
    animation: tickerPulse 1.5s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════ NAVIGATION ═══════════════ */
.navbar {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(6, 10, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--green), var(--green-bright));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-style: normal;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-cta {
    background: var(--green) !important;
    color: var(--bg-deep) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
}

.nav-cta:hover {
    background: var(--green-bright) !important;
    box-shadow: 0 0 20px var(--green-glow);
}

/* ═══════════════ DROPDOWN NAV ═══════════════ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > a::after {
    content: '';
    border: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 2px;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.25s ease;
    list-style: none;
    z-index: 1002;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.dropdown-menu .dropdown-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1rem 0.25rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0.5rem;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

/* ═══════════════ SECTIONS COMMON ═══════════════ */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    border-radius: 3px;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

/* ═══════════════ SECTION DIVIDER ═══════════════ */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
    box-shadow: 0 4px 20px var(--green-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--green-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

/* ═══════════════ WHATSAPP CTA ═══════════════ */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-inner p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.1rem 3rem;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-base);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
}

.disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 500px;
    text-align: right;
    line-height: 1.6;
}

.disclaimer strong { color: var(--gold); }

.footer-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.footer-contact a:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.03);
}

.footer-contact .whatsapp:hover {
    color: #25d366;
    border-color: #25d366;
}

.footer-contact .email:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════ SCROLL ANIMATIONS ═══════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════ PAGE HEADER (for policy pages) ═══════════════ */
.page-header {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.page-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.page-header nav a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 1.5rem;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(6, 10, 19, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }

    .nav-links > li > a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hamburger { display: block; }

    .nav-dropdown > a::after { display: none; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(15, 21, 32, 0.6);
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        margin-left: 1rem;
        padding: 0.25rem 0;
        min-width: auto;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.5rem 1rem;
        font-size: 0.88rem;
    }

    section { padding: 4rem 1.25rem; }

    .footer-inner { flex-direction: column; text-align: center; }
    .disclaimer { text-align: center; }
}
