/* ═══════════════════════════════════════
   DESIGN TOKENS: DevIA'm (Master Prototype Sync)
   ═══════════════════════════════════════ */

:root {
    /* ── MODO INGENIERÍA (DARK) ────────────────── */
    --bg:           #030303;
    --bg-2:         #0A0A0A;
    --bg-3:         #111111;
    --glass:        rgba(255,255,255,0.03);
    --glass-hover:  rgba(255,255,255,0.06);
    --text:         #F5F5F7;
    --text-2:       #8E8E93;
    --text-3:       #636366;
    --accent:       #00D4FF; /* NVIDIA Blue */
    --accent-2:     #FF6B4A; /* Sunset Coral */
    --grad:         linear-gradient(135deg, #00D4FF 0%, #007AFF 100%);
    --grad-warm:    linear-gradient(135deg, #FF6B4A 0%, #FF3B30 100%);
    --border:       rgba(255,255,255,0.08);
    --border-2:     rgba(255,255,255,0.16);
    
    /* TYPOGRAPHY */
    --font-d:       'Syne', sans-serif;
    --font-b:       'Inter', sans-serif;
    --font-m:       'JetBrains Mono', monospace;
    
    /* RADII */
    --r-sm:         8px;
    --r-md:         16px;
    --r-lg:         24px;
    --r-xl:         32px;
    
    /* SHADOWS */
    --shadow:       0 40px 80px rgba(0,0,0,0.5);
    
    /* EASING */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

}

[data-theme="light"] {
    /* ── MODO STUDIO (SUNSET) ──────────────────── */
    --bg:           #FFFFFF;
    --bg-2:         #F2F2F7;
    --bg-3:         #E5E5EA;
    --glass:        rgba(0,0,0,0.02);
    --glass-hover:  rgba(0,0,0,0.05);
    --text:         #1C1C1E;
    --text-2:       #636366;
    --text-3:       #8E8E93;
    --accent:       #FF6B4A; /* Coral Focus */
    --accent-2:     #00D4FF;
    --grad:         linear-gradient(135deg, #FF6B4A 0%, #FF3B30 100%);
    --grad-warm:    linear-gradient(135deg, #00D4FF 0%, #007AFF 100%);
    --border:       rgba(0,0,0,0.07);
    --border-2:     rgba(0,0,0,0.14);
    --shadow:       0 40px 80px rgba(0,0,0,0.08);

}

/* ═══════════════════════════════════════
   CORE STYLES: DevIA'm (Master Sync)
   ═══════════════════════════════════════ */

/* ── RESET & BASE ──────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.7s cubic-bezier(0.16,1,0.3,1), color 0.4s ease;
    position: relative;
}
/* Dot Grid Background */
body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -2;
}

h1, h2, h3, h4 {
    font-family: var(--font-d);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* ── CURSOR ───────────────────────────── */
#cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
}
/* Deshabilitar cursor en touch */
@media (hover: none) {
    #cursor { display: none !important; }
    *, *::before, *::after { cursor: auto !important; }
}
#cursor.hover {
    width: 32px; height: 32px;
    background: var(--accent);
    mix-blend-mode: normal;
    opacity: 0.4;
}

/* ── HEADER & NAV ─────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    padding: 0 5%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.7s var(--ease-spring), border-color 0.4s;
}

/* ── MOBILE MENU TOGGLE ──────────────── */
.nav-toggle {
    display: none;
    background: none; border: none;
    color: var(--text); padding: 10px;
    cursor: pointer; z-index: 9999;
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-right .btn-cta { display: none; } /* Ocultar CTA en header móvil para aire */
}

/* ── MOBILE OVERLAY ──────────────────── */
/* Siempre oculto en desktop — solo se activa en móvil con .open */
.mobile-nav {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg); z-index: 8500;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 32px;
    padding: 80px 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
@media (max-width: 900px) {
    .mobile-nav.open {
        display: flex;
        opacity: 1;
    }
}
.mobile-nav a {
    font-family: var(--font-d); font-size: 32px;
    text-decoration: none; color: var(--text);
    font-weight: 700;
    transition: color 0.2s ease;
}
.mobile-nav a:hover { color: var(--accent); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-orb { width: 32px; height: 32px; flex-shrink: 0; }
.logo-orb canvas { width: 32px; height: 32px; display: block; }

.logo-wordmark {
    font-family: var(--font-d);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 1px;
}
.logo-wordmark .apostrophe { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) {
    .nav-links { display: none; } /* Ocultar links en desktop style */
}
.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* ── THEME SWITCHER ──────────────────── */
.theme-switcher {
    display: flex; align-items: center; gap: 2px;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 4px; border-radius: 100px;
}
.t-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none; background: none;
    color: var(--text-2);
    transition: all 0.25s;
}
.t-btn svg { width: 14px; height: 14px; }
.t-btn.active { background: var(--text); color: var(--bg); }
.t-btn:hover:not(.active) { background: var(--glass-hover); color: var(--text); }

/* ── BUTTONS ─────────────────────────── */
.btn-cta, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center; justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-b);
    font-weight: 600;
    transition: all 0.3s var(--ease-spring);
}
.btn-cta {
    background: var(--text); color: var(--bg);
    padding: 10px 24px; border-radius: var(--r-sm);
    font-size: 13px;
}
.btn-primary {
    background: var(--text); color: var(--bg);
    padding: 18px 40px; border-radius: var(--r-md);
    font-size: 16px;
}
.btn-secondary {
    background: var(--glass); color: var(--text);
    border: 1px solid var(--border);
    padding: 18px 40px; border-radius: var(--r-md);
    font-size: 16px;
}
.btn-cta:hover, .btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-secondary:hover { background: var(--glass-hover); border-color: var(--border-2); }
/* ── FOCUS VISIBLE — accesibilidad teclado (WCAG 2.1 AA) ── */
.btn-cta:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    opacity: 1;
}
.t-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* ── SECTION CORE ────────────────────── */
section { padding: 120px 40px; position: relative; }
@media (max-width: 768px) { section { padding: 60px 20px; } }
.container,
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .section-wrap { padding: 0 20px; } }
/* Reveal system — definido en components.css (.reveal.visible) */

/* ── HERO ────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding-top: 64px; overflow: hidden;
}
.hero-blob {
    position: absolute;
    width: 60vw; height: 60vw;
    background: radial-gradient(ellipse, var(--accent), transparent 70%);
    opacity: 0.06; border-radius: 50%;
    top: 10%; left: 50%; transform: translateX(-50%);
    pointer-events: none; z-index: 0;
    animation: pulseBlob 8s ease-in-out infinite;
    will-change: transform, opacity;
}
.hero-blob-2 {
    position: absolute;
    width: 40vw; height: 40vw;
    background: radial-gradient(ellipse, var(--accent-2), transparent 70%);
    opacity: 0.05; border-radius: 50%;
    bottom: 0; right: 10%;
    pointer-events: none; z-index: 0;
    animation: pulseBlob2 10s 2s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes pulseBlob {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.06; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.10; }
}
@keyframes pulseBlob2 {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.15); opacity: 0.09; }
}
.hero h1 { font-size: clamp(34px, 9vw, 112px); margin-bottom: 28px; letter-spacing: -0.04em; line-height: 1.0; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(17px, 2.2vw, 22px); color: var(--text-2); max-width: 680px; margin: 0 auto 56px; line-height: 1.6; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* HERO CONTENT WRAPPER */
.hero-content {
    position: relative; z-index: 1;
    max-width: 1000px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* ORBE HERO */
.hero-orb {
    margin: 0 auto 16px;
    width: 160px; height: 160px;
    flex-shrink: 0;
    animation: orbAppear 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-orb canvas {
    width: 160px; height: 160px;
    display: block;
    filter: drop-shadow(0 0 36px var(--accent));
    transition: filter 0.8s ease;
}
@keyframes orbAppear {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* HERO BADGE (Prototype Style) */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 8px; border: 1px solid var(--border);
    border-radius: 100px; background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 32px;
}
.hero-badge-dot {
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; box-shadow: 0 0 10px var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
.hero-badge span { font-family: var(--font-m); font-size: 10px; letter-spacing: 1.5px; color: var(--text-2); text-transform: uppercase; }

/* ── SECCIONES CON FONDO ALTERNADO ──── */
.section-alt   { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-plain { border-top: 1px solid var(--border); }
.btn-full { width: 100%; }
.btn-primary-lg { padding: 20px 56px; font-size: 18px; margin-top: 16px; }

/* ── SOCIAL PROOF ────────────────────── */
.social-proof { background: var(--bg-2); padding: 48px 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-label { text-align: center; color: var(--text-3); font-family: var(--font-m); font-size: 10px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 28px; }
.proof-logos {
    display: flex; justify-content: center; align-items: center;
    gap: 48px; flex-wrap: wrap;
    opacity: 0.35; filter: grayscale(1);
}
.proof-logos span {
    font-family: var(--font-d);
    font-size: 16px; font-weight: 800;
    letter-spacing: -0.02em; white-space: nowrap;
    color: var(--text);
}

/* ── UTILS ───────────────────────────── */
.tag {
    display: inline-block; padding: 6px 14px; border-radius: var(--r-sm);
    background: var(--glass); border: 1px solid var(--border);
    color: var(--accent); font-family: var(--font-m); font-size: 11px;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px;
}
.mono-label { font-family: var(--font-m); font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; }
/* ═══════════════════════════════════════
   COMPONENTS: DevIA'm (Master Sync)
   ═══════════════════════════════════════ */

/* ── GRID SYSTEM ──────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
}
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Bento Grid Specifics */
.bento-card { grid-column: span 4; }
.bento-card.span-2 { grid-column: span 8; }
.bento-card.span-large { grid-row: span 2; }

@media (max-width: 968px) {
    .col-4, .col-6, .col-8, .col-12, .bento-card, .bento-card.span-2 { grid-column: span 12; }
}

/* ── PAIN ITEMS (Problem Section) ──────── */
.pain-list { display: flex; flex-direction: column; gap: 2px; }
.pain-item {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 24px; border-radius: var(--r-md);
    background: var(--glass); border: 1px solid var(--border);
    transition: background 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}
.pain-item:hover { background: var(--glass-hover); border-color: var(--border-2); transform: translateX(5px); }
.pain-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--grad-warm); border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: #FFF; font-size: 18px;
}
.pain-text h4 { font-family: var(--font-b); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pain-text p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }

/* ── FLOW DIAGRAM & TERMINAL ──────────── */
.flow-diagram { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.flow-node {
    padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--r-sm);
    font-family: var(--font-m); font-size: 11px; text-transform: uppercase;
    background: var(--glass); white-space: nowrap;
}
.flow-node.accent { border-color: var(--accent); color: var(--accent); }
.flow-line { flex: 1; height: 1px; background: var(--border); position: relative; }
.flow-line { overflow: hidden; }
.flow-dot {
    position: absolute; top: -3px; left: -6px; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: flowMove 3s linear infinite;
    will-change: left;
}
@keyframes flowMove { 0% { left: -6px; } 100% { left: calc(100% + 6px); } }

.terminal {
    background: #000; border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow);
}
.terminal-bar {
    padding: 16px 20px; background: #0A0A0A;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.tdot { width: 10px; height: 10px; border-radius: 50%; }
.tdot-r { background: #FF5F57; }
.tdot-y { background: #FEBC2E; }
.tdot-g { background: #28C840; }
.terminal-label { margin-left: auto; font-family: var(--font-m); font-size: 10px; color: #444; }
.terminal-body {
    padding: 32px; font-family: var(--font-m); font-size: 13px;
    line-height: 2; color: var(--accent);
}
.dim { color: #333; }
.white { color: #CCC; }
.success { color: #28C840; }
.warning { color: #FEBC2E; }

/* ── CARDS (Casos & Precios) ─────────── */
.card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 40px;
    transition: background 0.4s var(--ease-spring), border-color 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    position: relative; overflow: hidden;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--bg-3); }
.card::after {
    content: ""; position: absolute; top: 0; right: 0; width: 100px; height: 100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::after { opacity: 0.1; }

.card-icon {
    width: 48px; height: 48px; background: var(--grad);
    border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
    color: #FFF; margin-bottom: 32px; font-size: 20px;
}
.card h3 { font-size: 28px; margin-bottom: 16px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.6; }

.stat-badge {
    display: inline-flex; align-items: center; padding: 4px 12px;
    background: var(--glass); border: 1px solid var(--accent);
    color: var(--accent); border-radius: 100px;
    font-family: var(--font-m); font-size: 10px; text-transform: uppercase;
    margin-top: 24px;
}

/* ── PRICING CARDS ───────────────────── */
.price-card { text-align: left; }
.price-card.featured { border-color: var(--accent); background: var(--glass); }
.price-plan { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.price-val { font-family: var(--font-d); font-size: 64px; letter-spacing: -0.04em; margin-bottom: 4px; }
.price-val span { font-size: 20px; color: var(--text-3); font-family: var(--font-b); }
.price-divider { border-color: var(--border); margin: 32px 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.price-features li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ── FAQ — idéntico al v1 aprobado ───── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px; cursor: pointer;
}
.faq-q h3 { font-family: var(--font-b); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq-toggle {
    width: 28px; height: 28px; flex-shrink: 0;
    border: 1px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--glass-hover); }
.faq-answer { display: none; margin-top: 16px; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── TESTIMONIAL SECTION ─────────────── */
.testimonial-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 40px;
    text-align: center;
}
.testimonial-section .mono-label { text-align: center; margin-bottom: 24px; }

/* ── PRICING ENTERPRISE ──────────────── */
.price-val-sm { font-size: 40px; }

/* ── FOOTER EMAIL ────────────────────── */
.footer-email { color: var(--accent); font-weight: 700; }

/* ── TESTIMONIAL ─────────────────────── */
.big-quote {
    font-family: var(--font-d); font-size: clamp(32px, 5vw, 64px);
    letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 48px;
}
.big-quote em { font-style: normal; color: var(--accent); }
.quote-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.author-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d); font-size: 16px; color: #FFF;
}
.author-info { text-align: left; }
.author-info p { font-weight: 700; font-size: 16px; margin: 0; }
.author-info span { font-size: 13px; color: var(--text-3); }

/* ── PROBLEM GRID ────────────────────── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem-text h2 { font-size: clamp(36px, 5vw, 56px); margin: 16px 0 24px; }
.problem-text p { font-size: 18px; color: var(--text-2); line-height: 1.7; }

/* ── SOLUTION GRID ───────────────────── */
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.solution-text h2 { font-size: clamp(36px, 5vw, 52px); margin: 16px 0 24px; }
.solution-text p { font-size: 18px; color: var(--text-2); margin-bottom: 40px; line-height: 1.7; }

/* ── ATTIO GRID (Casos de Uso) ───────── */
.cases-header { text-align: center; margin-bottom: 64px; }
.cases-header h2 { font-size: clamp(36px, 5vw, 56px); margin-top: 16px; }
.attio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card-8 { grid-column: span 8; }
.card-4 { grid-column: span 4; }
.card-12 { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mini-diagram {
    height: 140px; border-radius: var(--r-md);
    border: 1px dashed var(--border); background: var(--bg);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}

/* ── PROCESO ─────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.process-step {
    text-align: center; padding: 40px 24px;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--r-lg); transition: background 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
}
.process-step:hover { border-color: var(--border-2); background: var(--glass-hover); }
.step-number { font-family: var(--font-m); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.step-icon {
    width: 48px; height: 48px; background: var(--grad); border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: white; margin: 0 auto 24px;
}
.step-icon svg { width: 20px; height: 20px; }
.process-step h3 { font-size: 22px; margin-bottom: 12px; }
.process-step p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ── PRICING ─────────────────────────── */
.pricing-header { text-align: center; margin-bottom: 64px; }
.pricing-header h2 { font-size: clamp(36px, 5vw, 56px); margin-top: 16px; }
.price-grid { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.price-card { flex: 1; min-width: 280px; max-width: 380px; }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::after { opacity: 0.06; }
.featured-tag {
    display: inline-block; background: var(--accent); color: var(--bg);
    padding: 4px 12px; border-radius: var(--r-sm);
    font-family: var(--font-m); font-size: 10px; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 16px;
}
.price-desc { color: var(--text-2); font-size: 14px; margin-bottom: 32px; }

/* ── FAQ HEADER ──────────────────────── */
.faq-header { text-align: center; margin-bottom: 64px; }
.faq-header h2 { font-size: clamp(36px, 5vw, 52px); margin-top: 16px; }

/* ── FINAL CTA ───────────────────────── */
.final-cta {
    text-align: center; padding: 160px 40px;
    border-top: 1px solid var(--border); position: relative; overflow: hidden;
}
.final-cta h2 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 20px; }
.final-cta > p { color: var(--text-2); font-size: 20px; margin-bottom: 48px; }
.cta-glow {
    position: absolute; width: 80vw; height: 80vw;
    max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.04; top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 0;
}
.final-cta .container { position: relative; z-index: 1; }

/* ── FOOTER ──────────────────────────── */
.site-footer {
    padding: 48px 5%; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── CONTENT VISIBILITY — skip rendering de secciones off-screen ── */
#casos,
#proceso,
#precios,
#faq,
.testimonial-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 900px) {
    .problem-grid, .solution-grid { grid-template-columns: 1fr; gap: 48px; }
    .attio-grid { display: flex; flex-direction: column; }
    .card-12 { display: flex; flex-direction: column; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .price-grid { flex-direction: column; align-items: center; }
    .price-card { max-width: 100%; }
    /* Flow diagram: apilado vertical en tablet/móvil */
    .flow-diagram { flex-direction: column; align-items: flex-start; gap: 8px; }
    .flow-line { display: none; }
}
@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE MÓVIL (iPhone 11 y similares: 390px) ─────────── */
@media (max-width: 480px) {

    /* Header — tema switcher oculto en pantallas muy pequeñas */
    .theme-switcher { display: none; }

    /* Hero — reducir orb y espaciados */
    .hero-orb,
    .hero-orb canvas { width: 100px; height: 100px; }
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
        padding: 0 8px;
    }
    .hero-badge span { font-size: 9px; letter-spacing: 1px; }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 12px;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
        text-align: center;
        justify-content: center;
    }

    /* Secciones — padding lateral reducido */
    .container { padding: 0 20px; }
    .social-proof { padding: 36px 20px; }
    .proof-logos { gap: 24px; }
    .final-cta { padding: 80px 20px; }

    /* Cards — padding interior reducido */
    .card { padding: 24px; }
    .card h3 { font-size: 22px; }
    .price-val { font-size: 48px; }

    /* Terminal — overflow controlado */
    .terminal-body { padding: 20px; font-size: 12px; }

    /* Footer — apilar verticalmente */
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 20px;
        gap: 24px;
    }
    .footer-links { flex-wrap: wrap; gap: 16px; }

    /* Pain items — gap reducido */
    .pain-item { padding: 16px; gap: 14px; }
    .pain-icon { width: 36px; height: 36px; font-size: 15px; }

    /* Proceso — step padding */
    .process-step { padding: 28px 16px; }
}

/* ── REVEAL SYSTEM ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }
.reveal-d4 { transition-delay: 0.6s; }

/* ── TICKER (Editorial Style) ────────── */
.ticker-wrap {
    overflow: hidden;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    white-space: nowrap;
}
.ticker-inner {
    display: inline-block;
    animation: tickerMove 40s linear infinite;
    will-change: transform;
}
.ticker-inner span {
    font-family: var(--font-d);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 40px;
    color: var(--text-2);
}
.ticker-inner .accent { color: var(--accent); margin-right: 40px; }

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── SCROLL HINT ─────────────────────── */
.scroll-hint {
    position: absolute; bottom: 40px;
    left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 1; opacity: 0.4;
}
.scroll-hint span {
    font-family: var(--font-m); font-size: 10px;
    letter-spacing: 1px; text-transform: uppercase;
}
.scroll-hint .scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}
