@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-void: #030508;
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1; /* Gris mucho más claro e iluminado para legibilidad total */
    --accent-gold: #D4AF37;
    --accent-hover: #e8c454;
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(20px);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-menu: cubic-bezier(0.8, 0, 0.2, 1);
}

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

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

/* ═══════════════════════════════════════
   TEXT LEGIBILITY (CONTOURS & SHADOWS)
═══════════════════════════════════════ */
h1, h2, h3, h4, .brand-text, .step-number {
    text-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,1);
    -webkit-text-stroke: 0.3px rgba(0,0,0,0.5); /* Subtle contour */
}

p, li, .comp-header {
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,1); /* Sombras dobles más intensas para letras grises */
}

/* ═══════════════════════════════════════
   CINEMATIC VIDEO BACKGROUND
═══════════════════════════════════════ */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-void);
}

.video-bg-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: saturate(1.2) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 8, 0.85);
    z-index: -1;
}

/* ═══════════════════════════════════════
   HEADER & ANCHORED GLOBE (REDESIGNED)
═══════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    pointer-events: none;
}

/* The Anchored Globe Button */
.anchored-globe-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    z-index: 5000;
    transition: transform 0.4s var(--ease-out);
    padding: 10px;
    border-radius: 40px;
}

.anchored-globe-btn:hover { transform: scale(1.05); }

.globe-canvas-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent-gold);
    background: #000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    transition: box-shadow 0.4s;
    animation: pulseGlobe 3s infinite alternate;
}

@keyframes pulseGlobe {
    0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); }
    100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

.brand-group { display: flex; flex-direction: column; }
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.cta-text {
    color: var(--accent-gold);
    font-size: 0.65rem;
    font-weight: 700; /* Más peso para que destaque */
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.75); /* Glóbulo de opacidad para proteger el dorado */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15); /* Borde sutil dorado */
    animation: blinkCTA 2s infinite;
}

@keyframes blinkCTA { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Menu Trigger (Hamburger) */
.menu-trigger {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 40px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: all 0.3s var(--ease-out);
}

.menu-trigger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-menu);
    box-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.menu-trigger:hover { 
    border-color: var(--accent-gold); 
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}
.menu-trigger:hover span { background: var(--accent-gold); }
.menu-trigger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-trigger.open span:nth-child(2) { opacity: 0; }
.menu-trigger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Full Screen Overlay */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 5, 8, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.7s var(--ease-menu);
}

.overlay-menu.active { transform: translateY(0); }
.overlay-nav { list-style: none; text-align: center; }
.overlay-nav li { margin: 2.5rem 0; transform: translateY(30px); opacity: 0; transition: all 0.5s var(--ease-out); }
.overlay-menu.active .overlay-nav li { transform: translateY(0); opacity: 1; }
.overlay-menu.active .overlay-nav li:nth-child(1) { transition-delay: 0.2s; }
.overlay-menu.active .overlay-nav li:nth-child(2) { transition-delay: 0.3s; }
.overlay-menu.active .overlay-nav li:nth-child(3) { transition-delay: 0.4s; }

.overlay-nav a {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
.overlay-nav a:hover, .overlay-nav a.highlight { color: var(--accent-gold); }

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS (CINEMATIC)
═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   LAYOUT & TYPOGRAPHY
═══════════════════════════════════════ */
.container { position: relative; z-index: 10; max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
section { padding: 12rem 0; }

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 5rem;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    text-shadow: none; /* No black shadow on gold buttons for clean look */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Strong box shadow instead */
}

.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after { left: 100%; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(212, 175, 55, 0.05); }

/* ── HERO ── */
.hero { text-align: center; padding-top: 20rem; padding-bottom: 10rem; }
.hero-tag { 
    color: var(--accent-gold); 
    font-size: 0.85rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 0.4em; 
    margin-bottom: 2.5rem; 
    display: inline-block; /* Inline block for pill background */
    background: rgba(0, 0, 0, 0.65); /* Glóbulo de opacidad para separar del video */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.hero h1 { font-family: var(--font-heading); font-size: 5.5rem; font-weight: 400; line-height: 1.05; margin-bottom: 2.5rem; letter-spacing: -0.02em; }
.hero p { 
    color: var(--text-primary); 
    font-size: 1.25rem; 
    max-width: 750px; 
    margin: 0 auto 4rem auto; 
    font-weight: 500; 
    background: rgba(0, 0, 0, 0.65); /* Glóbulo de opacidad para el párrafo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-actions { display: flex; gap: 2rem; justify-content: center; }

/* ── THE PROCESS FUNNEL ── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 6rem; }
.step-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 2px;
    transition: transform 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Drop shadow behind glass cards */
}
.step-card:hover { transform: translateX(10px); border-color: rgba(212, 175, 55, 0.4); box-shadow: -10px 10px 40px rgba(0,0,0,0.6); }
.step-number { font-family: var(--font-heading); font-size: 4rem; color: var(--accent-gold); opacity: 0.9; min-width: 100px; }
.step-content h4 { font-size: 1.8rem; margin-bottom: 1rem; font-family: var(--font-heading); font-weight: 600; color: var(--text-primary); }
.step-content p { font-size: 1.15rem; color: var(--text-primary); font-weight: 500; line-height: 1.8; }

/* ── SECURITY & COMPARISON ── */
.comparison-wrapper {
    display: flex;
    margin-top: 6rem;
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.comp-column { flex: 1; padding: 5rem 4rem; background: rgba(0,0,0,0.4); backdrop-filter: var(--glass-blur); }
.comp-column:first-child { border-right: 1px solid var(--glass-border); }
.comp-column.highlight { background: rgba(212, 175, 55, 0.05); }
.comp-header { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 3rem; color: var(--text-secondary); }
.comp-column.highlight .comp-header { color: var(--accent-gold); }
.comp-list { list-style: none; }
.comp-list li { margin-bottom: 2rem; font-size: 1.1rem; display: flex; align-items: flex-start; gap: 1.5rem; color: var(--text-secondary); font-weight: 300; }
.comp-column.highlight .comp-list li { color: var(--text-primary); }
.comp-list li::before { content: "✕"; color: #ef4444; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.comp-column.highlight .comp-list li::before { content: "✓"; color: var(--accent-gold); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--glass-border); padding: 6rem 0; text-align: center; position: relative; z-index: 10; background: rgba(0,0,0,0.4); }
.footer-logo { font-family: var(--font-heading); color: var(--text-primary); margin-bottom: 2rem; letter-spacing: 0.3em; font-size: 1.2rem; }
.footer-text { color: var(--text-primary); font-size: 0.85rem; max-width: 600px; margin: 0 auto; opacity: 0.8; font-weight: 500; }
