/* ============================================================
   IndedLabs Chat — Landing page
   Marca: oscura, violeta #6C63FF + mint #00D4AA (como indedlabs.com)
   Autónomo: no depende del build de la app (Vite/Tailwind).
   ============================================================ */

:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #4A42D4;
    --accent: #00D4AA;
    --bg-dark: #0A0A0F;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A25;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #6B6B80;
    --border: #2A2A3A;
    --border-light: #3A3A4A;
    --gradient-1: linear-gradient(135deg, #6C63FF, #00D4AA);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

img, svg { max-width: 100%; vertical-align: middle; }

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 200;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.logo-text strong { color: var(--primary-light); font-weight: 800; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 2px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-mobile-only { display: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.lang-btn {
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.lang-btn.active { background: var(--primary); color: #fff; }
.lang-btn:not(.active):hover { color: var(--text-primary); }

.btn-ghost {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card-hover); }

.btn-nav-cta {
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BACKGROUND GLOWS ============ */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}
.bg-glow-1 { width: 480px; height: 480px; background: var(--primary); top: -120px; left: -140px; }
.bg-glow-2 { width: 420px; height: 420px; background: var(--accent); opacity: 0.18; top: 140px; right: -160px; }
.bg-glow-3 { width: 500px; height: 500px; background: var(--primary); opacity: 0.15; top: 30%; left: 50%; transform: translateX(-50%); }
.bg-glow-cta { width: 400px; height: 400px; background: var(--primary); opacity: 0.25; top: -150px; left: 50%; transform: translateX(-50%); }

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 150px 0 70px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.35);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(0, 212, 170, 0); }
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 540px;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-buttons.center { justify-content: center; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.45);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); }
.hero-note {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* --- Hero chat mockup --- */
.hero-visual { position: relative; }
.chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(108, 99, 255, 0.08);
    border-bottom: 1px solid var(--border);
}
.chat-avatar-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.chat-headinfo { display: flex; flex-direction: column; line-height: 1.3; }
.chat-headinfo strong { font-size: 0.92rem; }
.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.76rem;
}
.dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.chat-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--text-secondary);
}
.chat-msg.user .chat-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-product {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 14px;
    padding: 12px;
    max-width: 90%;
}
.product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6C63FF, #E040FB);
    flex-shrink: 0;
}
.product-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}
.product-info strong { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.product-btn {
    margin-left: auto;
    background: var(--accent);
    color: #06281f;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.chat-typing {
    display: inline-flex;
    gap: 5px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    padding: 13px 16px;
}
.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.3s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}
.chat-inputbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-top: 1px solid var(--border);
}
.chat-input-placeholder {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary);
    flex-shrink: 0;
}

/* mensajes que van apareciendo */
.anim-1, .anim-2, .anim-3, .anim-4, .anim-5 {
    opacity: 0;
    transform: translateY(10px);
    animation: msg-in 0.5s ease forwards;
}
.anim-1 { animation-delay: 0.4s; }
.anim-2 { animation-delay: 1.1s; }
.anim-3 { animation-delay: 1.9s; }
.anim-4 { animation-delay: 2.6s; }
.anim-5 { animation-delay: 3.4s; }
@keyframes msg-in {
    to { opacity: 1; transform: translateY(0); }
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    animation: float 5s ease-in-out infinite;
}
.badge-1 { top: 8%; right: -6px; }
.badge-2 { bottom: 10%; left: -14px; animation-delay: 2.2s; }
.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
.badge-icon.green { background: rgba(0, 212, 170, 0.15); }
.badge-icon.purple { background: rgba(139, 131, 255, 0.15); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* --- Stats strip --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 70px;
    padding: 26px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat { text-align: center; }
.stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.stat span { color: var(--text-muted); font-size: 0.83rem; }

/* ============ SECTIONS ============ */
.section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}
.section-alt { background: #0D0D14; }
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 58px;
}
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.6px;
}
.section-subtitle {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 1rem;
}

/* ============ CARDS ============ */
.cards-grid { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    margin-bottom: 18px;
}
.card-icon.purple { background: rgba(139, 131, 255, 0.13); }
.card-icon.green { background: rgba(0, 212, 170, 0.13); }
.card-icon.blue { background: rgba(59, 130, 246, 0.13); }
.card-icon.orange { background: rgba(255, 107, 107, 0.13); }
.card-icon.pink { background: rgba(224, 64, 251, 0.13); }
.card-icon.wa { background: rgba(37, 211, 102, 0.13); }
.card-icon.ig { background: rgba(214, 36, 159, 0.13); }
.card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.9rem; }

.channel-card { text-align: left; }
.widget-snippet {
    display: block;
    margin-top: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.76rem;
    color: var(--accent);
    overflow-x: auto;
    white-space: nowrap;
}

/* ============ SPLITS ============ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 85px;
}
.split:last-of-type { margin-bottom: 0; }
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }
.kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.green-text { color: var(--accent); }
.purple-text { color: var(--primary-light); }
.orange-text { color: #FF6B6B; }
.split-text h3 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.split-text > p { color: var(--text-secondary); margin-bottom: 22px; }
.checks { list-style: none; }
.checks li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.93rem;
}
.checks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

/* --- visual panels --- */
.visual-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 26px;
    max-width: 420px;
    margin: 0 auto;
}
.sync-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
.mini-product {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.mini-product:last-child { margin-bottom: 0; }
.mini-product-img { width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0; }
.purple-grad { background: linear-gradient(135deg, #6C63FF, #E040FB); }
.teal-grad { background: linear-gradient(135deg, #00D4AA, #3B82F6); }
.pink-grad { background: linear-gradient(135deg, #FF6B6B, #FFE66D); }
.mini-product-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.line {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: var(--border-light);
}
.green-line { background: rgba(0, 212, 170, 0.4); }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; }
.mini-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.kb-panel { text-align: center; }
.kb-doc {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 10px;
}
.kb-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.kb-doc-icon.doc2 { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.kb-doc-icon.doc3 { background: rgba(0, 212, 170, 0.15); color: var(--accent); }
.kb-arrow { color: var(--text-muted); font-size: 1.3rem; margin: 8px 0; }
.kb-brain {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(139, 131, 255, 0.1);
    border: 1px solid rgba(139, 131, 255, 0.35);
    border-radius: 14px;
    padding: 15px 24px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary-light);
}

.wf-panel { text-align: center; }
.wf-node {
    display: inline-block;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-light);
    border-radius: 11px;
    padding: 11px 19px;
    font-size: 0.84rem;
    font-weight: 600;
}
.wf-trigger { border-color: rgba(139, 131, 255, 0.5); color: var(--primary-light); }
.wf-action1 { border-color: rgba(59, 130, 246, 0.5); color: #3B82F6; }
.wf-action2 { border-color: rgba(0, 212, 170, 0.5); color: var(--accent); }
.wf-end { border-color: rgba(255, 107, 107, 0.5); color: #FF6B6B; }
.wf-line {
    width: 2px;
    height: 26px;
    margin: 0 auto;
    background: linear-gradient(var(--border-light), var(--primary));
}
.wf-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.feature-extra { margin-top: 70px; }

/* ============ STEPS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 26px 28px;
    text-align: center;
    transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }
.center-cta { text-align: center; margin-top: 52px; }

/* ============ PRICING ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.price-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 15px;
    border-radius: 999px;
    white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.price-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    min-height: 40px;
    margin-bottom: 16px;
}
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.price strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; }
.price-period { color: var(--text-muted); font-size: 0.85rem; }
.price-features {
    list-style: none;
    margin-bottom: 26px;
    flex: 1;
}
.price-features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.price-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}
.price-features li.feature-off {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(107, 107, 128, 0.5);
}
.price-features li.feature-off::before {
    content: '\2715';
    color: var(--text-muted);
}
.price-features li.feature-soon {
    color: var(--text-secondary);
}
.price-features li.feature-soon::before {
    content: '\25CB';
    color: #F5A524;
    font-weight: 800;
}
.feature-soon-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(245, 165, 36, 0.14);
    color: #F5A524;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    vertical-align: 1px;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }
.price-cta { width: 100%; }
.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.83rem;
    margin-top: 32px;
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--border-light); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    text-align: left;
    padding: 19px 22px;
    cursor: pointer;
    min-height: 44px;
}
.faq-q:hover { color: var(--primary-light); }
.faq-chevron {
    display: flex;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--primary-light); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--text-secondary); font-size: 0.92rem; }

/* ============ CTA BOX ============ */
.cta-box {
    position: relative;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 68px 32px;
    overflow: hidden;
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box > p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 30px;
    position: relative;
}
.cta-box .hero-buttons { position: relative; }

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    padding: 52px 0 0;
    background: #08080C;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
    flex-wrap: wrap;
    padding-bottom: 36px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.87rem;
    margin-top: 13px;
    max-width: 300px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
    padding: 4px 0;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-primary); }

/* ============ ANIMATIONS ON SCROLL ============ */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1.visible { transition-delay: 0.1s; }
.delay-2.visible { transition-delay: 0.2s; }
.delay-3.visible { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .anim-1, .anim-2, .anim-3, .anim-4, .anim-5 { opacity: 1; transform: none; }
    .fade-in { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 10px 24px 20px;
        display: none;
    }
    .menu-open .nav-links { display: flex; }
    .nav-links a {
        display: block;
        padding: 13px 4px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-mobile-only { display: block; }
    .mobile-cta { color: var(--primary-light) !important; font-weight: 700 !important; }
    .nav-actions .btn-ghost, .nav-actions .btn-nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-actions { margin-left: auto; }

    .hero { padding: 120px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .badge-1 { right: 0; }
    .badge-2 { left: 0; }

    .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }

    .section { padding: 62px 0; }

    .cards-2, .cards-3 { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 34px; margin-bottom: 60px; }
    .split-reverse .split-text { order: 1; }
    .split-reverse .split-visual { order: 2; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
    .cards-4, .pricing-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 20px; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; }
    .cta-box { padding: 48px 20px; }
    .lang-switch { display: none; }
}

/* ============ LEGAL PAGES (privacidad / términos) ============ */
.navbar.solid {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.legal-main {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 130px 24px 80px;
}
.legal-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 46px;
}
.legal-card h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    margin-bottom: 8px;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 34px;
}
.legal-card section { margin-bottom: 28px; }
.legal-card section:last-child { margin-bottom: 0; }
.legal-card h2 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 9px;
}
.legal-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 8px;
}
.legal-card ul {
    padding-left: 22px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.93rem;
}
.legal-card li { margin-bottom: 6px; }
.legal-card li::marker { color: var(--accent); }
.legal-card a { color: var(--primary-light); }

@media (max-width: 900px) {
    .legal-main { padding: 105px 20px 56px; }
    .legal-card { padding: 32px 22px; }
}

/* ============================================================
   Modal de login/registro (partials/landing-auth-modal.blade.php)
   ============================================================ */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.auth-modal[hidden] { display: none; }

body.auth-modal-open { overflow: hidden; }

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 10, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    padding: 40px 32px 28px;
    animation: auth-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes auth-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: none; }
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.auth-close:hover { color: var(--text-primary); border-color: var(--border-light); }

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.auth-tab.active { background: var(--bg-card-hover); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-light); }
.auth-tab:disabled { opacity: 0.4; cursor: not-allowed; }

.auth-status {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.35);
    color: var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden] { display: none; }

.auth-field { display: flex; flex-direction: column; gap: 5px; }

.auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.auth-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}
.auth-field input::placeholder { color: var(--text-muted); }

.auth-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.05em; }

.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .auth-grid2 { grid-template-columns: 1fr; } }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.auth-check input { accent-color: var(--primary); width: 15px; height: 15px; }

.auth-link { font-size: 0.85rem; color: var(--primary-light); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-submit { width: 100%; border: 0; cursor: pointer; font-family: inherit; }

.auth-error { color: #FF7B7B; font-size: 0.82rem; margin: 0; }

.auth-note {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFD466;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.84rem;
    margin: 0;
}

/* El distintivo flotante de reCAPTCHA v3 se oculta: en su lugar va el aviso de
   .auth-recaptcha dentro del modal, que es lo que exigen los terminos de Google. */
.grecaptcha-badge { visibility: hidden; }
.auth-recaptcha { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin: 0; line-height: 1.5; }
.auth-recaptcha a { color: var(--text-secondary); }

/* ============================================================
   Rendimiento en móvil: fuera filter/backdrop-filter (coste GPU
   alto en gamas medias/bajas). Los glows pasan a radial-gradient,
   visualmente casi idéntico pero trivial de pintar.
   ============================================================ */
@media (max-width: 900px) {
    .bg-glow { filter: none; opacity: 1; }
    .bg-glow-1 { background: radial-gradient(circle closest-side, rgba(108, 99, 255, 0.4), transparent); }
    .bg-glow-2 { background: radial-gradient(circle closest-side, rgba(0, 212, 170, 0.22), transparent); }
    .bg-glow-3 { background: radial-gradient(circle closest-side, rgba(108, 99, 255, 0.18), transparent); }
    .bg-glow-cta { background: radial-gradient(circle closest-side, rgba(108, 99, 255, 0.3), transparent); }

    .navbar.scrolled,
    .navbar.solid {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 15, 0.96);
    }
    .nav-links,
    .auth-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* --- Login con passkey (modal auth) --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.auth-passkey-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(139, 131, 255, 0.10);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 131, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
}
.auth-passkey-btn:hover {
    background: rgba(139, 131, 255, 0.18);
    border-color: var(--primary-light);
}
.auth-passkey-btn:disabled { opacity: 0.6; cursor: wait; }
.auth-passkey-btn svg { flex-shrink: 0; }


/* --- Tablas de la politica de cookies --- */
.legal-card .table-wrap {
    overflow-x: auto;
    margin: 18px 0 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
}
.legal-card table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 620px; }
.legal-card thead th {
    text-align: left; padding: 11px 14px; font-weight: 600; white-space: nowrap;
    background: rgba(148, 163, 184, 0.10);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.legal-card tbody td {
    padding: 11px 14px; vertical-align: top; line-height: 1.5;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.legal-card tbody tr:last-child td { border-bottom: none; }
.legal-card td code { font-size: 0.9em; white-space: nowrap; }
