/* ===================================
   VSL ESPANHOL — PREMIUM DARK SYSTEM
   =================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --color-bg-primary: #050508;
    --color-bg-secondary: #0a0a0f;
    --color-bg-card: #12121a;
    --color-border: rgba(255, 255, 255, 0.06);

    /* Accent Gradient (Indigo → Violet) */
    --color-accent-start: #6366f1;
    --color-accent-mid: #8b5cf6;
    --color-accent-end: #a855f7;
    --color-accent-glow: rgba(139, 92, 246, 0.3);

    /* CTA Green */
    --color-cta-start: #10b981;
    --color-cta-mid: #34d399;
    --color-cta-end: #6ee7b7;
    --color-cta-glow: rgba(16, 185, 129, 0.4);

    /* Text */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-subdued: #52525b;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-smooth: 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader-circle {
    animation: preloader-spin 1.2s linear infinite;
    transform-origin: center;
}

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

/* --- Scroll Progress --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-mid), var(--color-accent-end));
    z-index: 9998;
    transition: width 50ms linear;
    box-shadow: 0 0 10px var(--color-accent-glow);
}

/* --- Urgency Strip (Fixed Top) --- */
.urgency-strip {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 9997;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 25%, #dc2626 50%, #ef4444 75%, #dc2626 100%);
    background-size: 200% 100%;
    animation: urgency-shimmer 4s ease-in-out infinite;
    padding: 10px 16px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(220, 38, 38, 0.3);
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.urgency-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    animation: urgency-bounce 2s ease-in-out infinite;
}

.urgency-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.urgency-text strong {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#urgencyDate {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@keyframes urgency-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* Offset body content for the fixed strip */
body {
    padding-top: 42px;
}

/* --- Particle Background --- */
.hero-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent);
    border-radius: 50%;
    animation: particle-float linear infinite;
    opacity: 0;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1.2);
    }
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   STAGGERED ENTRANCE ANIMATIONS
   =================================== */
.anim-fade-up,
.anim-fade-down,
.anim-scale-in {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
    animation-delay: var(--anim-delay, 0s);
}

.anim-fade-up {
    transform: translateY(40px);
    animation-name: fadeUp;
    animation-duration: 1s;
}

.anim-fade-down {
    transform: translateY(-30px);
    animation-name: fadeDown;
    animation-duration: 0.8s;
}

.anim-scale-in {
    transform: scaleX(0);
    animation-name: scaleIn;
    animation-duration: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) 0;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Scroll Animation (legacy) --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-start);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
    }
    50% { 
        transform: scale(1.3);
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.8);
    }
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-mid);
}

/* ===================================
   PRE-HEADLINE — Small, with subtle accent color
   =================================== */
.hero-pre-headline {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.pre-accent {
    color: var(--color-accent-mid);
    font-weight: 700;
}

/* ===================================
   HEADLINE H1 — Prominent, large
   =================================== */
.hero-title-main {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
}

/* Gradient accent for key words */
.gradient-accent {
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-mid), var(--color-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
}

/* Subtle glow behind gradient text */
.gradient-accent::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(12px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* Floating shimmer on accent text */
@keyframes text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-accent {
    background-size: 200% 200%;
    animation: text-shimmer 4s ease-in-out infinite;
}

/* --- Hero Divider --- */
.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent-mid), transparent);
    margin: 0 auto var(--spacing-xl);
    border-radius: 2px;
    transform-origin: center;
}

/* --- Video Container --- */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.08),
        0 20px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 80px -20px var(--color-accent-glow);
    transition: box-shadow var(--transition-smooth);
}

.video-container:hover {
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.12),
        0 25px 70px -12px rgba(0, 0, 0, 0.6),
        0 0 120px -20px var(--color-accent-glow);
}

.video-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
    filter: blur(20px);
    animation: video-glow-pulse 4s ease-in-out infinite;
}

@keyframes video-glow-pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Sound Hint --- */
.sound-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    animation: sound-pulse 3s ease-in-out infinite;
}

.sound-hint svg {
    color: var(--color-accent-mid);
    flex-shrink: 0;
}

@keyframes sound-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===================================
   CTA BUTTON — HIDDEN BY DEFAULT
   =================================== */
.cta-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto var(--spacing-xl);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    visibility: hidden;
    transition: none;
    pointer-events: none;
}

.cta-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: all;
    animation: ctaReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes ctaReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- CTA Button --- */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--color-cta-start), var(--color-cta-mid));
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(16, 185, 129, 0.3),
        0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: cta-pulse 2.5s ease-in-out infinite;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.2);
}

.btn-cta:active {
    transform: translateY(-1px) scale(0.99);
}

/* Shimmer effect */
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(16, 185, 129, 0.3),
            0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(16, 185, 129, 0.4),
            0 0 30px rgba(16, 185, 129, 0.15);
    }
}

.btn-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-main-text {
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-sub-text {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* --- Trust Items --- */
.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.trust-item svg {
    color: var(--color-cta-start);
    flex-shrink: 0;
}

/* --- Viewers Counter --- */
.viewers-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.viewer-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot-red 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.viewers-counter strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ===================================
   RESPONSIVE — TABLET (768px)
   =================================== */
@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xl) 0;
        min-height: auto;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-pre-headline {
        font-size: 0.95rem;
    }

    .hero-title-main {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }

    .video-container {
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-sm);
    }

    .btn-cta {
        padding: 18px 24px;
        font-size: 0.95rem;
    }

    .btn-main-text {
        font-size: 0.9rem;
    }

    .cta-trust {
        gap: var(--spacing-md);
    }

    .sound-hint {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
    }
}

/* ===================================
   RESPONSIVE — PHONE LANDSCAPE (640px)
   =================================== */
@media (max-width: 640px) {
    .urgency-strip {
        padding: 8px 12px;
    }

    .urgency-text {
        font-size: 0.72rem;
    }

    .urgency-icon {
        font-size: 0.75rem;
    }

    .hero-badge {
        padding: 6px 16px;
    }

    .badge-text {
        font-size: 0.62rem;
        letter-spacing: 0.15em;
    }

    .hero-pre-headline {
        font-size: 0.88rem;
    }

    .hero-title-main {
        font-size: 1.15rem;
    }

    .hero-divider {
        width: 40px;
        margin-bottom: var(--spacing-lg);
    }

    .cta-trust {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ===================================
   RESPONSIVE — PHONE (480px)
   =================================== */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }

    body {
        padding-top: 38px;
    }

    .urgency-strip {
        padding: 7px 10px;
    }

    .urgency-text {
        font-size: 0.65rem;
    }

    .urgency-icon {
        font-size: 0.7rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
        align-items: flex-start;
        padding-top: max(var(--spacing-xl), env(safe-area-inset-top, 1.5rem));
    }

    .hero-badge {
        padding: 5px 12px;
        margin-bottom: var(--spacing-sm);
    }

    .badge-dot {
        width: 6px;
        height: 6px;
    }

    .badge-text {
        font-size: 0.58rem;
    }

    .hero-pre-headline {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    .hero-title-main {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
    }

    .hero-divider {
        width: 35px;
        margin-bottom: var(--spacing-md);
    }

    .video-container {
        border-radius: var(--radius-sm);
        margin-bottom: var(--spacing-sm);
    }

    .sound-hint {
        font-size: 0.68rem;
        padding: 7px 12px;
        gap: 6px;
        margin-bottom: var(--spacing-md);
    }

    .sound-hint svg {
        width: 14px;
        height: 14px;
    }

    .btn-cta {
        padding: 16px 18px;
        gap: 10px;
        border-radius: var(--radius-sm);
    }

    .btn-main-text {
        font-size: 0.78rem;
        letter-spacing: 0.02em;
    }

    .btn-sub-text {
        font-size: 0.62rem;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

    .viewers-counter {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .viewers-counter strong {
        font-size: 0.75rem;
    }
}

/* ===================================
   RESPONSIVE — SMALL PHONE (360px)
   =================================== */
@media (max-width: 360px) {
    .hero-pre-headline {
        font-size: 0.78rem;
    }

    .hero-title-main {
        font-size: 0.95rem;
    }

    .btn-cta {
        padding: 14px 14px;
        gap: 8px;
    }

    .btn-main-text {
        font-size: 0.72rem;
    }

    .btn-sub-text {
        font-size: 0.58rem;
    }

    .sound-hint {
        font-size: 0.62rem;
    }
}

/* ===================================
   iOS SAFE AREAS
   =================================== */
@supports (padding: env(safe-area-inset-bottom)) {
    .hero {
        padding-bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
    }

    .cta-wrapper {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===================================
   LANDSCAPE ORIENTATION (small height)
   =================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-sm) 0;
    }

    .hero-pre-headline {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-xs);
    }

    .hero-title-main {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .hero-badge {
        margin-bottom: var(--spacing-xs);
    }

    .hero-divider {
        margin-bottom: var(--spacing-sm);
    }

    .video-container {
        max-width: 500px;
    }
}

/* ===================================
   HIGH DPI SCREENS (Retina)
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .scroll-progress {
        height: 2px;
    }
}

/* ===================================
   REDUCED MOTION (Accessibility)
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .anim-fade-up,
    .anim-fade-down,
    .anim-scale-in {
        opacity: 1;
        transform: none;
    }
}

/* --- Selection --- */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */
@media (hover: none) and (pointer: coarse) {
    .btn-cta:hover {
        transform: none;
    }

    .btn-cta:active {
        transform: scale(0.98);
    }

    .video-container:hover {
        box-shadow:
            0 0 0 1px rgba(99, 102, 241, 0.08),
            0 20px 60px -12px rgba(0, 0, 0, 0.5),
            0 0 80px -20px var(--color-accent-glow);
    }
}
