/* ─── Vibrafy Landing Page CSS — Ultra Premium $10k Experience ─────────────────────────────── */

:root,
[data-theme="dark"] {
    --bg-dark: #06060c;
    --bg-surface: #0e0e1a;
    --bg-surface-elevated: #151628;
    --bg-surface-glass: rgba(14, 14, 26, 0.72);
    --bg-card-host: linear-gradient(180deg, rgba(22, 19, 44, 0.85) 0%, rgba(13, 12, 26, 0.95) 100%);
    --bg-card-guest: linear-gradient(180deg, rgba(12, 28, 38, 0.85) 0%, rgba(8, 18, 26, 0.95) 100%);

    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-glow: #ec4899;
    --cyan-accent: #06b6d4;
    --cyan-light: #38bdf8;
    --cyan-glow: #10b981;
    --emerald-accent: #10b981;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-heading: #ffffff;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --border-host: rgba(168, 85, 247, 0.4);
    --border-guest: rgba(6, 182, 212, 0.4);

    --gradient-brand: linear-gradient(135deg, #f472b6 0%, #c084fc 45%, #38bdf8 100%);
    --gradient-brand-glow: linear-gradient(135deg, rgba(244, 114, 182, 0.5) 0%, rgba(192, 132, 252, 0.5) 50%, rgba(56, 189, 248, 0.5) 100%);
    --gradient-host: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --gradient-guest: linear-gradient(135deg, #06b6d4 0%, #0d9488 100%);
    --gradient-card-border-host: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(236, 72, 153, 0.3) 50%, transparent 100%);
    --gradient-card-border-guest: linear-gradient(135deg, rgba(6, 182, 212, 0.6) 0%, rgba(16, 185, 129, 0.3) 50%, transparent 100%);

    --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow-purple: 0 0 45px rgba(168, 85, 247, 0.25);
    --shadow-glow-cyan: 0 0 45px rgba(6, 182, 212, 0.25);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --bg-card-host: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    --bg-card-guest: linear-gradient(180deg, #ffffff 0%, #f3fcfe 100%);

    --primary: #7c3aed;
    --primary-light: #9333ea;
    --primary-glow: #db2777;
    --cyan-accent: #0891b2;
    --cyan-light: #0284c7;
    --cyan-glow: #059669;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --text-heading: #090d16;

    --border-color: rgba(15, 23, 42, 0.08);
    --border-highlight: rgba(15, 23, 42, 0.14);
    --border-host: rgba(124, 58, 237, 0.35);
    --border-guest: rgba(8, 145, 178, 0.35);

    --gradient-brand: linear-gradient(135deg, #db2777 0%, #7c3aed 50%, #0284c7 100%);
    --shadow-glass: 0 15px 40px rgba(15, 23, 42, 0.08);
    --shadow-glow-purple: 0 8px 30px rgba(124, 58, 237, 0.12);
    --shadow-glow-cyan: 0 8px 30px rgba(8, 145, 178, 0.12);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(rgba(168, 85, 247, 0.12) 1.2px, transparent 1.2px),
        radial-gradient(rgba(6, 182, 212, 0.08) 1.2px, transparent 1.2px);
    background-size: 36px 36px, 72px 72px;
    background-position: 0 0, 18px 18px;
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Film Grain Noise Texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── Scroll Animation Engine (Progressive Enhancement) ─── */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

.js-loaded [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-loaded [data-reveal="zoom-in"] {
    transform: scale(0.92) translateY(24px);
}

.js-loaded [data-reveal="slide-left"] {
    transform: translateX(45px);
}

.js-loaded [data-reveal="slide-right"] {
    transform: translateX(-45px);
}

.js-loaded [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered Delays for Children */
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .ambient-glow,
    .hero-floating-pill,
    .eq-bar,
    .pulse-dot {
        animation: none !important;
    }
}

/* ─── Ambient Glow Mesh Spheres ──────────────────────────── */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: meshDrift 18s ease-in-out infinite alternate;
}

.glow-top-left {
    top: -120px;
    left: -120px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(139, 92, 246, 0.5) 60%, transparent 100%);
}

.glow-top-right {
    top: 30px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(6, 182, 212, 0.4) 65%, transparent 100%);
    animation-duration: 22s;
    animation-delay: -5s;
}

.glow-center {
    top: 850px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0.2) 60%, transparent 100%);
    opacity: 0.16;
    animation-duration: 26s;
    animation-delay: -10s;
}

@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.06); }
    100% { transform: translate(-25px, 25px) scale(0.95); }
}

/* ─── Header & Navigation ────────────────────────────────── */
.landing-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(6, 6, 12, 0.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.landing-header.scrolled {
    background: rgba(6, 6, 12, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .landing-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .landing-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-container {
    max-width: 1260px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.header-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.65rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: radarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes radarPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.btn-login {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    background: var(--gradient-host);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.55);
    filter: brightness(1.12);
}

.btn-join-header {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.35rem;
    border-radius: 10px;
    background: var(--gradient-guest);
    border: 1px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-join-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.55);
    filter: brightness(1.12);
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4.5rem 1.75rem 6rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
    align-items: center;
    min-height: calc(100vh - 72px);
}

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

.hero-title {
    font-size: clamp(2.9rem, 6.4vw, 5.1rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.hero-title .highlight-dj {
    display: block;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(236, 72, 153, 0.3));
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    color: #ede9fe;
    letter-spacing: -0.015em;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

[data-theme="light"] .hero-tagline {
    color: #4338ca;
}

.hero-description {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    padding: 1rem 0.9rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.badge-item:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.06);
}

.badge-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 0.3rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.badge-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-heading);
}

.badge-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.3;
}

/* ─── Hero Visual & Interactive Devices Stage ────────────── */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    perspective: 1200px;
}

.hero-devices-row {
    --devices-height: clamp(250px, 25vw, 310px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: var(--devices-height);
    position: relative;
}

/* Smart TV Frame (Host 16:9) */
.tv-frame {
    position: relative;
    height: var(--devices-height);
    aspect-ratio: 16 / 9;
    width: calc(var(--devices-height) * 16 / 9);
    max-width: 100%;
    background: #020205;
    border: 3px solid #232338;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85),
                0 0 50px rgba(168, 85, 247, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.tv-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.9),
                0 0 65px rgba(168, 85, 247, 0.4);
}

.tv-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #06060c;
    overflow: hidden;
    display: flex;
}

.tv-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Mobile Phone Mockup (Guest 18:9) */
.phone-mockup {
    position: relative;
    flex-shrink: 0;
    height: var(--devices-height);
    width: calc(var(--devices-height) * 9 / 18);
    aspect-ratio: 9 / 18;
    min-width: 0;
    max-width: calc(var(--devices-height) * 9 / 18);
    background: #090914;
    border: 3px solid #282844;
    border-radius: 26px;
    padding: 0.35rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9),
                0 0 35px rgba(6, 182, 212, 0.3);
    z-index: 3;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.phone-mockup:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.95),
                0 0 50px rgba(6, 182, 212, 0.45);
}

.phone-notch {
    width: 36px;
    height: 3.5px;
    background: #1e1e32;
    border-radius: 999px;
    margin: 0.05rem auto 0.25rem auto;
    flex-shrink: 0;
}

.phone-screen {
    background: #06060c;
    border-radius: 20px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* ─── Floating Reaction Micro-Pills ──────────────────────── */
.hero-floating-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(14, 14, 26, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.2);
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    animation: floatPill 6s ease-in-out infinite alternate;
}

.pill-tv-live {
    top: -18px;
    left: -15px;
    border-color: rgba(236, 72, 153, 0.4);
    animation-delay: 0s;
}

.pill-top-track {
    bottom: -22px;
    left: 20%;
    border-color: rgba(168, 85, 247, 0.4);
    animation-delay: -2s;
}

.pill-guest-action {
    top: 25%;
    right: -25px;
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.25);
    animation-delay: -4s;
}

@keyframes floatPill {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
    100% { transform: translateY(6px) scale(0.98); }
}

/* Soundwave Equalizer Mini SVG */
.mini-equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.eq-bar {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ec4899 0%, #a855f7 100%);
    animation: soundwaveBounce 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.4s; }
.eq-bar:nth-child(3) { height: 75%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 90%; animation-delay: 0.6s; }

@keyframes soundwaveBounce {
    0% { height: 30%; }
    100% { height: 100%; }
}

/* Informative Caption below TV and Mobile Mockups */
.hero-visual-caption {
    margin-top: 2.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ede9fe;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.32);
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 4;
}

/* ─── "Elegí cómo empezar" Section (Glowing Border Beams) ── */
.start-section {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.75rem;
    z-index: 2;
}

.section-heading {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 3.2rem;
    color: var(--text-heading);
}

.start-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Card Container with Rotating Border Beam */
.auth-card,
.guest-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    padding: 2.6rem 2.2rem;
    box-shadow: var(--shadow-glass);
    position: relative;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.auth-card:hover,
.guest-card:hover {
    transform: translateY(-6px);
}

.auth-card {
    background: var(--bg-card-host);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), var(--shadow-glow-purple);
}

.guest-card {
    background: var(--bg-card-guest);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

/* Border Beam Effect */
.auth-card::before,
.guest-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-card::before {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, transparent 100%);
    opacity: 0.8;
}

.guest-card::before {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 50%, transparent 100%);
    opacity: 0.8;
}

.brand {
    text-align: center;
    margin-bottom: 1.6rem;
}

.brand h1 {
    font-size: 1.95rem;
    font-weight: 900;
    color: var(--text-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.brand-icon-lg {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.auth-tabs {
    display: flex;
    background: rgba(6, 6, 12, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 1.6rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 0.5rem;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.tab-btn.active {
    background: var(--gradient-host);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.45);
}

.auth-form,
.guest-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-muted);
}

.form-group input {
    background: rgba(6, 6, 12, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-size: 0.98rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: rgba(10, 10, 20, 0.95);
}

.guest-card .form-group input:focus {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

.input-code {
    text-align: center;
    font-size: 1.45rem !important;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan-accent) !important;
}

.input-code::placeholder {
    letter-spacing: normal;
    text-transform: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.join-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.join-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
}

.join-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.35rem;
    line-height: 1.45;
}

.btn {
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: inherit;
}

.btn--primary {
    background: var(--gradient-host);
    color: white;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

.btn--primary:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.55);
}

.guest-card .btn--primary {
    background: var(--gradient-guest);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
}

.guest-card .btn--primary:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.55);
}

.btn--block {
    width: 100%;
}

.error-msg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.86rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ─── "Así de fácil funciona" Section ─────────────────────── */
.steps-section {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 5.5rem 1.75rem;
    z-index: 2;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
    position: relative;
}

/* Continuous Illuminated Timeline Rail behind cards */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(168, 85, 247, 0.2) 0%,
        rgba(168, 85, 247, 0.8) 35%,
        rgba(6, 182, 212, 0.8) 65%,
        rgba(6, 182, 212, 0.2) 100%);
    z-index: 1;
}

.step-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
}

.step-badge {
    position: absolute;
    top: -16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-host);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
    border: 2px solid var(--bg-dark);
}

.step-card:nth-child(3) .step-badge,
.step-card:nth-child(4) .step-badge {
    background: var(--gradient-guest);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.5);
}

.step-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin: 0.8rem 0 1.3rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.step-card:hover .step-icon-box {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(168, 85, 247, 0.15);
}

.step-card:nth-child(3):hover .step-icon-box,
.step-card:nth-child(4):hover .step-icon-box {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan-accent);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Pricing Value Proposition Banner ────────────────────── */
.pricing-section {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.5rem 1.75rem 7rem 1.75rem;
    z-index: 2;
}

.pricing-banner {
    background: linear-gradient(135deg, rgba(22, 20, 48, 0.92) 0%, rgba(13, 12, 30, 0.98) 100%);
    border: 1px solid var(--border-host);
    border-radius: var(--radius-xl);
    padding: 2.6rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
    gap: 2.2rem;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.pricing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
}

.pricing-info h3 {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.pricing-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.plan-column {
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.plan-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.plan-price span {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 700;
}

.plan-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.35rem;
}

.plan-detail strong {
    color: #ede9fe;
    font-weight: 800;
}

.pricing-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-pricing {
    width: 100%;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    background: var(--gradient-host);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
    filter: brightness(1.12);
}

.pricing-learn-more {
    font-size: 0.82rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.pricing-learn-more:hover {
    color: #fff;
    text-decoration: underline;
}

/* ─── Footer ──────────────────────────────────────────────── */
.landing-footer {
    position: relative;
    border-top: 1px solid var(--border-color);
    background: #040408;
    padding: 4.5rem 1.75rem 2.5rem 1.75rem;
    z-index: 2;
}

.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    max-width: 280px;
    line-height: 1.5;
}

.footer-col-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.1rem;
    letter-spacing: 0.02em;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover {
    color: #fff;
    border-color: var(--primary-light);
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
}

/* ─── Settings Gear Button & Modal ───────────────────────── */
.btn-settings {
    background: transparent;
    border: none;
    color: var(--text-muted);
    opacity: 0.85;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    border-radius: 10px;
    flex-shrink: 0;
}

.btn-settings svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.4 !important;
}

.btn-settings:hover {
    opacity: 1;
    color: var(--text-main);
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.08);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.settings-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    padding: 2.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.2);
    position: relative;
    animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.modal-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.settings-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-pill-switch {
    display: flex;
    background: rgba(6, 6, 12, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.settings-pill-opt {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    font-family: inherit;
}

.settings-pill-opt:hover:not(.active) {
    color: var(--text-main);
}

.settings-pill-opt.active {
    background: var(--gradient-host);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.45);
}

.settings-actions {
    margin-top: 1.8rem;
}

/* ─── Legal Consent Notices on Forms ─────────────────────── */
.auth-legal-notice,
.guest-legal-notice {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 0.95rem;
    text-align: center;
}

.legal-notice-link {
    color: var(--cyan-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    transition: color 0.2s;
}

.legal-notice-link:hover {
    color: #ede9fe;
}

.footer-compliance-mini {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cfc8ef;
    margin-top: 0.7rem;
}

/* ─── Responsive Design & Media Queries ───────────────────── */

/* Desktop & Landscape Screens */
@media (min-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr 1.35fr;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-devices-row {
        flex-direction: row;
        gap: 1.5rem;
    }

    .start-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets & Small Desktops (<= 992px in portrait or compact) */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 3.5rem;
        padding-bottom: 4.5rem;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        max-width: 580px;
    }

    .hero-badges {
        width: 100%;
        max-width: 600px;
    }

    .badge-item {
        align-items: center;
        text-align: center;
    }

    .hero-devices-row {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .tv-frame {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .phone-mockup {
        width: min(270px, 75vw);
        height: auto;
        max-width: 270px;
        aspect-ratio: 9 / 18;
    }

    .hero-floating-pill {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0.4rem;
        display: inline-flex;
    }

    .start-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 2.2rem;
    }

    .pricing-banner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.2rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }

    .steps-grid::before {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Medium Mobile & Phones (<= 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .landing-header {
        height: 66px;
    }

    .brand-name {
        font-size: 1.38rem;
    }

    .hero-section {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
        gap: 3rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8.5vw, 3.8rem);
    }

    .pricing-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.6rem;
    }

    .plan-column {
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1.2rem;
    }
}

/* Small Mobile Phones (<= 540px) */
@media (max-width: 540px) {
    .header-container {
        padding: 0 1.1rem;
    }

    .btn-login {
        padding: 0.5rem 0.95rem;
        font-size: 0.84rem;
    }

    .btn-join-header {
        padding: 0.5rem 1rem;
        font-size: 0.84rem;
    }

    .hero-section {
        padding: 2rem 1.1rem 3.5rem 1.1rem;
        gap: 2.6rem;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-badges {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .badge-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.9rem;
    }

    .badge-icon-box {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .start-section {
        padding: 3.5rem 1.1rem;
    }

    .auth-card,
    .guest-card {
        padding: 1.8rem 1.3rem;
    }

    .steps-section {
        padding: 4rem 1.1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 380px;
        margin: 0 auto;
    }

    .pricing-section {
        padding: 2rem 1.1rem 4.5rem 1.1rem;
    }

    .landing-footer {
        padding: 3.5rem 1.1rem 2rem 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0.6rem auto 0 auto;
    }

    .footer-social-icons {
        justify-content: center;
    }
}
