/* ══════════════════════════════════════════════════════════
   Luma Landing — Global Styles (dark + magenta glow)
   ══════════════════════════════════════════════════════════ */

:root {
    --bg:       #050505;
    --bg1:      #0a0a0a;
    --bg2:      #0e0e0e;
    --bg3:      #141414;
    --bg-card:  rgba(20,20,22,.7);
    --bg-pill:  rgba(255,255,255,.04);
    --bd:       rgba(255,255,255,.08);
    --bd2:      rgba(255,255,255,.12);
    --bd3:      rgba(255,255,255,.18);
    --tx:       #f5f5f7;
    --tx2:      #a0a0a8;
    --tx3:      #6b6b74;
    --tx4:      #3a3a3f;
    --primary:  #e879f9;      /* magenta/fuchsia */
    --primary2: #d946ef;
    --accent:   #ec4899;      /* pink */
    --accent2:  #a855f7;      /* purple */
    --green:    #22c55e;
    --green2:   #16a34a;
    --blue:     #3b82f6;
    --orange:   #f59e0b;
    --red:      #ef4444;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w:     1200px;
    --max-w-narrow: 860px;
    --transition: .22s cubic-bezier(.4,0,.2,1);
    --glow: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,121,249,.22), rgba(168,85,247,.08) 40%, transparent 70%);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    min-height: 100vh;
    font-feature-settings: 'ss01', 'cv11';
    letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
svg { display: block; }

::selection { background: rgba(232,121,249,.25); color: #fff; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ──────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 1160px;
    background: rgba(10,10,12,.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--bd);
    border-radius: var(--radius-pill);
    padding: 0 8px 0 24px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 12px rgba(232,121,249,.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tx2);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--tx); background: var(--bg-pill); }
.nav-links a.active { color: var(--tx); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > button {
    background: transparent;
    border: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tx2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: all var(--transition);
}
.nav-drop > button:hover { color: var(--tx); background: var(--bg-pill); }
.nav-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(12,12,14,.97);
    border: 1px solid var(--bd);
    border-radius: var(--radius-lg);
    padding: 10px;
    min-width: 240px;
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
    z-index: 100;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.nav-drop-menu a {
    display: block;
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--tx2);
    border-radius: 10px;
    white-space: nowrap;
}
.nav-drop-menu a:hover { color: var(--tx); background: var(--bg-pill); }
.nav-drop-menu .nav-drop-label {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tx3);
    padding: 6px 12px 4px;
}

@media (max-width: 900px) {
    .nav-drop { width: 100%; }
    .nav-drop > button { width: 100%; justify-content: space-between; }
    .nav-drop-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 14px;
        min-width: 0;
    }
}

.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--bd2);
    color: var(--tx);
    width: 40px; height: 40px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .navbar { top: 8px; padding: 0 6px 0 16px; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(10,10,12,.95);
        border: 1px solid var(--bd);
        border-radius: var(--radius-lg);
        padding: 14px;
        backdrop-filter: blur(20px);
    }
    .nav-links.open a { width: 100%; }
}

/* ── BOTONES ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 4px 24px rgba(255,255,255,.1);
}
.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(255,255,255,.18);
}

.btn-ghost {
    background: var(--bg-pill);
    color: var(--tx);
    border-color: var(--bd2);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--bd3); }

.btn-outline {
    background: transparent;
    color: var(--tx);
    border-color: var(--bd2);
}
.btn-outline:hover { background: var(--bg-pill); border-color: var(--bd3); }

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 32px rgba(232,121,249,.4);
}
.btn-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 40px rgba(232,121,249,.55);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; font-weight: 600; }
.btn-xl { padding: 18px 36px; font-size: 16px; font-weight: 600; }

.w-full { width: 100%; }

/* ── PILLS / BADGES ─────────────────────────────────────── */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-pill);
    border: 1px solid var(--bd2);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    color: var(--tx2);
    letter-spacing: 0;
}
.pill-accent { color: var(--primary); border-color: rgba(232,121,249,.3); background: rgba(232,121,249,.08); }
.pill-dot::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ── CARDS ──────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
}
.card-lg { padding: 32px; border-radius: var(--radius-lg); }
.card-xl { padding: 40px; border-radius: var(--radius-xl); }
.card:hover { border-color: var(--bd2); }

.card-glow {
    position: relative;
    overflow: hidden;
}
.card-glow::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(232,121,249,.1), transparent 40%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* ── FORMS ──────────────────────────────────────────────── */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--tx2);
    margin-bottom: 8px;
    letter-spacing: 0;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg2);
    border: 1px solid var(--bd2);
    border-radius: var(--radius-sm);
    color: var(--tx);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition);
}
.form-input::placeholder { color: var(--tx3); }
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg3);
    box-shadow: 0 0 0 3px rgba(232,121,249,.15);
}

.form-error {
    padding: 10px 14px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 14px;
}

.form-success {
    padding: 10px 14px;
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.25);
    border-radius: var(--radius-sm);
    color: #86efac;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ── TABS ───────────────────────────────────────────────── */

.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-pill);
    border: 1px solid var(--bd);
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}
.tabs .tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--tx2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}
.tabs .tab.active { background: #fff; color: #000; }
.tabs .tab:hover:not(.active) { color: var(--tx); }

/* ── SECCIONES ──────────────────────────────────────────── */

.section {
    padding: 100px 0;
    position: relative;
}
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 17px;
    color: var(--tx2);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── TEXTO UTILIDADES ──────────────────────────────────── */

.text-center { text-align: center; }
.text-muted { color: var(--tx2); }
.text-muted-2 { color: var(--tx3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── HIDDEN + MARGIN UTILS ─────────────────────────────── */

.hidden { display: none !important; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── GRID ──────────────────────────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── LOGOS BAR ─────────────────────────────────────────── */

.logos-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos-bar::-webkit-scrollbar { display: none; }
.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--bg-pill);
    border: 1px solid var(--bd);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    color: var(--tx2);
    white-space: nowrap;
    transition: all var(--transition);
}
.logo-pill:hover { color: var(--tx); border-color: var(--bd2); background: rgba(255,255,255,.06); }

/* SVG de marca dentro de la píldora */
.logo-pill img, .logo-pill svg {
    width: 20px; height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* fuerza logos a blanco para tema oscuro */
    opacity: .9;
    transition: opacity .2s;
}
.logo-pill:hover img, .logo-pill:hover svg { opacity: 1; }

/* Logos de marca coloridos (cuando queramos el color oficial) */
.brand-logo {
    width: 48px; height: 48px;
    object-fit: contain;
    display: inline-block;
}
.brand-logo-lg { width: 80px; height: 80px; }
.brand-logo-sm { width: 24px; height: 24px; }

.logo-pill-ic {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tx3), var(--tx4));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--bg);
}

/* ── FOOTER ────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--bd);
    background: var(--bg);
    padding: 60px 0 40px;
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx2);
    margin-bottom: 16px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.footer-col a {
    display: block;
    color: var(--tx2);
    font-size: 14px;
    padding: 6px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--tx); }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}
.footer-desc {
    color: var(--tx2);
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid var(--bd);
    padding-top: 24px;
    color: var(--tx3);
    font-size: 13px;
    text-align: center;
}

/* ── TOAST ─────────────────────────────────────────────── */

.toast-container {
    position: fixed;
    top: 24px; right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 14px 20px;
    background: rgba(20,20,22,.95);
    border: 1px solid var(--bd2);
    border-radius: var(--radius);
    color: var(--tx);
    font-size: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    animation: toastIn .3s ease;
}
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.error { border-color: rgba(239,68,68,.3); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── ANIMACIONES ────────────────────────────────────────── */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.fade-in-up { animation: fadeInUp .6s ease backwards; }
