/* =========================
   OnyxCode — Estilos globales
   ========================= */

:root {
    /* Tema oscuro (por defecto) */
    --bg: #050507;
    --bg-alt: #0b0b10;
    --surface: #111116;
    --surface-2: #16161d;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ececf1;
    --text-muted: #9a9aa8;
    --text-dim: #6b6b78;
    --accent: #8b5cf6;
    --accent-2: #06b6d4;
    --accent-soft: rgba(139, 92, 246, 0.15);
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --input-bg: rgba(5, 5, 7, 0.6);
    --code-bg: #0a0a0f;
    --code-header-bg: #131319;
    --code-text: #e0e0ea;
    --orb-opacity: 0.35;
    --grid-line: rgba(255, 255, 255, 0.025);
    --navbar-bg: rgba(5, 5, 7, 0.7);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.25);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --max: 1200px;
}

[data-theme="light"] {
    --bg: #f6f5f2;
    --bg-alt: #eeece6;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --border: rgba(10, 10, 20, 0.08);
    --border-strong: rgba(10, 10, 20, 0.16);
    --text: #141418;
    --text-muted: #5a5a6a;
    --text-dim: #8a8a98;
    --accent: #6d28d9;
    --accent-2: #0891b2;
    --accent-soft: rgba(109, 40, 217, 0.1);
    --gradient: linear-gradient(135deg, #6d28d9 0%, #0891b2 100%);
    --input-bg: #ffffff;
    --code-bg: #0f0f14;
    --code-header-bg: #1a1a22;
    --code-text: #e0e0ea;
    --orb-opacity: 0.35;
    --grid-line: rgba(10, 10, 20, 0.04);
    --navbar-bg: rgba(246, 245, 242, 0.82);
    --shadow: 0 10px 40px -10px rgba(109, 40, 217, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Fondos en capas */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(ellipse 40% 40% at 90% 30%, rgba(6, 182, 212, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 70%, rgba(139, 92, 246, 0.1), transparent 60%);
    pointer-events: none;
    z-index: -2;
}
[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(109, 40, 217, 0.1), transparent 60%),
        radial-gradient(ellipse 40% 40% at 90% 30%, rgba(8, 145, 178, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 70%, rgba(109, 40, 217, 0.06), transparent 60%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Orbes flotantes */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: var(--orb-opacity);
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}
[data-theme="light"] .orb { opacity: 0.25; filter: blur(90px); }
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    top: -100px; left: -100px;
    animation: floatA 18s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 40%; right: -120px;
    animation: floatB 22s ease-in-out infinite;
}
.orb-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #c026d3, transparent 70%);
    bottom: -150px; left: 30%;
    opacity: 0.2;
    animation: floatC 26s ease-in-out infinite;
}
@keyframes floatA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, 60px); }
}
@keyframes floatB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, -80px); }
}
@keyframes floatC {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, -40px); }
}

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

img {
    max-width: 100%;
    display: block;
}

/* =========================
   Tipografía
   ========================= */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); }

p { color: var(--text-muted); }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}
.tag-live {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text);
    background: rgba(139, 92, 246, 0.08);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* =========================
   Botones
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    opacity: 0;
    transition: opacity 0.25s;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 50px -10px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="light"] .btn-ghost {
    background: rgba(10, 10, 20, 0.04);
}
.btn-ghost:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-block { width: 100%; }

/* =========================
   Navbar
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.35));
}

.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
    border-radius: 2px;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { padding: 8px 18px; font-size: 0.88rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Theme toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    margin-left: 16px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-toggle .ico-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .ico-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .ico-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle {
    background: rgba(10, 10, 20, 0.04);
}

/* =========================
   Hero
   ========================= */

.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    margin: 18px 0 24px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

/* Palabra rotante */
.rotator {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    min-width: 5.5ch;
    height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
}
.rotator .r-word {
    position: absolute;
    left: 0; top: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}
.rotator .r-word.active {
    opacity: 1;
    transform: translateY(0);
}
.rotator .r-word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Trust row */
.trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.trust-avatars {
    display: flex;
}
.tavatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
    border: 2px solid var(--bg);
    margin-left: -10px;
    flex-shrink: 0;
}
.tavatar:first-child { margin-left: 0; }
.tavatar.t1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tavatar.t2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.tavatar.t3 { background: linear-gradient(135deg, #ec4899, #be185d); }
.tavatar.t4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tavatar.tmore {
    background: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border);
}
.trust-text { line-height: 1.3; }
.stars {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 2px;
}
.stars span {
    color: var(--text);
    margin-left: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: normal;
}
.trust-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

/* Indicador sutil (dots) */
.scene-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
    z-index: 4;
}
.scene-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: all 0.4s ease;
    cursor: pointer;
}
.scene-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gradient);
    box-shadow: 0 2px 10px -2px rgba(139, 92, 246, 0.4);
}

/* Contenedor de escenas */
.scenes {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.94) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.9,.3,1.2);
    pointer-events: none;
}
.scene.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.hero-dashboard {
    width: 100%;
    max-width: 540px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7),
                0 0 60px -10px rgba(139, 92, 246, 0.25);
}
[data-theme="light"] .hero-dashboard {
    box-shadow: 0 40px 80px -20px rgba(109, 40, 217, 0.2),
                0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* ============ Escena Móvil (Phone) ============ */
.hero-phone {
    width: 240px;
    height: 440px;
    background: linear-gradient(180deg, #1a1a22 0%, #0f0f14 100%);
    border: 2px solid #2a2a35;
    border-radius: 38px;
    padding: 10px;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8),
                0 0 60px -10px rgba(139, 92, 246, 0.3),
                inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .hero-phone {
    box-shadow: 0 40px 80px -20px rgba(109, 40, 217, 0.25),
                0 10px 30px -10px rgba(0, 0, 0, 0.1);
}
.hp-notch {
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}
.hp-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0a1f 0%, #1a0f2e 100%);
    border-radius: 28px;
    padding: 36px 16px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}
.hp-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    padding: 0 6px;
}
.hp-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
}
.hp-battery {
    display: inline-block;
    width: 18px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 2px;
    position: relative;
}
.hp-battery::after {
    content: '';
    position: absolute;
    inset: 1px;
    width: 70%;
    background: currentColor;
    border-radius: 1px;
}
.hp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.hp-hi {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.2;
}
.hp-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.hp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.hp-balance {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hp-lbl { font-size: 0.64rem; color: rgba(255,255,255,0.7); }
.hp-val {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}
.hp-val small {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.hp-chg {
    font-size: 0.64rem;
    color: #86efac;
    margin-top: 2px;
}
.hp-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 2px;
}
.hp-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.hp-act span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
}
.hp-act em {
    font-style: normal;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
}
.hp-section {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 4px 4px 0;
}
.hp-tx {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
}
.hp-txico {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    flex-shrink: 0;
}
.hp-tx > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.hp-tx strong { font-size: 0.78rem; font-weight: 600; color: #fff; }
.hp-tx span { font-size: 0.62rem; color: rgba(255,255,255,0.55); }
.hp-amt {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}
.hp-amt.pos { color: #86efac; }
.hp-home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background: rgba(255,255,255,0.45);
    border-radius: 2px;
}

/* ============ Escena IDE / Código ============ */
.hero-ide {
    width: 100%;
    max-width: 540px;
    background: #0d0d12;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7),
                0 0 60px -10px rgba(139, 92, 246, 0.25);
    display: flex;
    flex-direction: column;
}
[data-theme="light"] .hero-ide {
    box-shadow: 0 40px 80px -20px rgba(109, 40, 217, 0.2),
                0 10px 30px -10px rgba(0, 0, 0, 0.08);
}
.hero-ide .hd-bar {
    background: #16161d;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.ide-file {
    margin-left: 14px;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.72rem;
    color: #9ca3af;
}
.ide-body {
    display: flex;
    min-height: 320px;
    max-height: 320px;
    background: #0d0d12;
    color: #e5e7eb;
}
.ide-tree {
    width: 135px;
    padding: 12px 8px;
    background: #111118;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ide-tree p { margin: 0; padding: 3px 6px; color: #9ca3af; border-radius: 4px; }
.ide-folder { color: #d1d5db; font-weight: 500; }
.ide-file-item { padding-left: 18px !important; }
.ide-file-item.active {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
}
.ide-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ide-tabs {
    display: flex;
    background: #16161d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ide-tab {
    padding: 6px 12px;
    font-family: 'Consolas', monospace;
    font-size: 0.72rem;
    color: #9ca3af;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ide-tab.active {
    background: #0d0d12;
    color: #e5e7eb;
    border-bottom: 2px solid #8b5cf6;
    margin-bottom: -1px;
}
.ide-tab i { font-style: normal; color: #6b7280; font-size: 0.85rem; }
.ide-code {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.76rem;
    line-height: 1.65;
    color: #e5e7eb;
    overflow: auto;
    white-space: pre;
    margin: 0;
}
.ide-code .ln {
    display: inline-block;
    min-width: 20px;
    color: #4b5563;
    margin-right: 14px;
    text-align: right;
    user-select: none;
}
.ide-code .k { color: #c084fc; }        /* keyword */
.ide-code .s { color: #86efac; }        /* string */
.ide-code .fn { color: #fde047; }       /* function */
.ide-code .v { color: #7dd3fc; }        /* variable */
.ide-code .c1 { color: #f9a8d4; }       /* class/api */
.ide-code .n { color: #fb923c; }        /* null/number */
.ide-code .cm { color: #6b7280; font-style: italic; } /* comment */
.ide-code .t { color: #93c5fd; }        /* JSX tag */
.ide-code .a { color: #fbbf24; }        /* attribute */
.ide-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 14px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    font-family: 'Consolas', monospace;
    font-size: 0.68rem;
    color: #fff;
}
.ide-branch { font-weight: 600; }
.ide-right { margin-left: auto; }
.ide-sync, .ide-lang { opacity: 0.85; }

/* Browser bar */
.hd-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.hd-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}
.hd-dot.r { background: #ff5f57; }
.hd-dot.y { background: #febc2e; }
.hd-dot.g { background: #28c840; }
.hd-url {
    margin-left: 12px;
    padding: 4px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: 'Consolas', monospace;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 280px;
}

/* Dashboard body */
.hd-body {
    display: flex;
    min-height: 300px;
}
.hd-side {
    width: 48px;
    padding: 14px 8px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface-2);
}
.hd-logo {
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 6px;
    margin: 0 auto 8px;
}
.hd-nav {
    height: 20px;
    border-radius: 6px;
    background: rgba(128, 128, 128, 0.08);
}
.hd-nav.active {
    background: var(--accent-soft);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.hd-main {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hd-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hd-title {
    width: 90px;
    height: 14px;
    border-radius: 4px;
    background: var(--text);
    opacity: 0.7;
}
.hd-actions {
    display: flex;
    gap: 6px;
}
.hd-actions span {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(128, 128, 128, 0.12);
}
.hd-actions span:last-child { background: var(--gradient); }

.hd-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hd-kpi {
    padding: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hd-kpi-lbl {
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hd-kpi-val {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.hd-kpi-chg {
    font-size: 0.6rem;
    font-weight: 600;
}
.hd-kpi-chg.up { color: #22c55e; }
.hd-kpi-chg.down { color: #ef4444; }

.hd-chart {
    height: 110px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}
.hd-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hd-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--surface-2);
    border-radius: 6px;
}
.hd-av {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    flex-shrink: 0;
}
.hd-item:nth-child(2) .hd-av { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.hd-item:nth-child(3) .hd-av { background: linear-gradient(135deg, #10b981, #06b6d4); }
.hd-bar1, .hd-bar2 {
    height: 6px;
    border-radius: 3px;
    background: rgba(128, 128, 128, 0.15);
}
.hd-bar1 { flex: 1; }
.hd-bar2 { width: 40px; background: var(--accent-soft); }

/* Floating notification cards */
.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    z-index: 3;
    min-width: 220px;
    animation: cardFloat 5s ease-in-out infinite;
}
[data-theme="light"] .float-card {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(109, 40, 217, 0.08);
}
.float-card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}
.float-card span {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}
.fc-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.fc-check {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.fc-grad {
    background: var(--gradient);
    color: #fff;
}
.fc-1 {
    top: 6%;
    left: -20px;
    animation-delay: 0s;
}
.fc-2 {
    bottom: 14%;
    right: -30px;
    animation-delay: 1.5s;
}
.fc-3 {
    top: 45%;
    right: -10px;
    animation-delay: 3s;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.fc-stack {
    display: flex;
    flex-shrink: 0;
}
.fca {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-display);
}
.fca:first-child { margin-left: 0; }
.fca.t1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.fca.t2 { background: linear-gradient(135deg, #ec4899, #be185d); }
.fca.t3 { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* Stats inline */
.hero-stats-wrap {
    position: relative;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hero-stats::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
    border-right: 1px solid var(--border);
    text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================
   Marquee tech stack
   ========================= */

.marquee {
    overflow: hidden;
    padding: 24px 0;
    border-block: 1px solid var(--border);
    background: var(--bg-alt);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 36px;
    animation: scroll 38s linear infinite;
    white-space: nowrap;
    width: max-content;
    align-items: center;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}
.marquee-track .sep {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 400;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover .marquee-track span:not(.sep) { color: var(--text); }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================
   Secciones
   ========================= */

.section {
    padding: 100px 0;
}

.section-alt {
    background: linear-gradient(180deg, transparent, var(--bg-alt) 30%, var(--bg-alt) 70%, transparent);
}

.section-head {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* =========================
   Grids y cards
   ========================= */

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

.card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.card:hover::before { opacity: 1; }

/* glow que sigue el cursor */
.card-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--accent-soft), transparent 60%);
    border-radius: 50%;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 10px; position: relative; z-index: 1; }
.card p { position: relative; z-index: 1; }

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}
.card-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .card-tags span {
    background: rgba(10, 10, 20, 0.03);
}

/* =========================
   Proceso
   ========================= */

.process {
    position: relative;
}
.process-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-2) 80%, transparent);
    opacity: 0.4;
}
.step {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all 0.3s ease;
}
.step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }

/* =========================
   Proyectos
   ========================= */

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}
.project:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}

.project-thumb {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 7, 0.5));
    pointer-events: none;
}
.project-thumb-1 { background: linear-gradient(135deg, #8b5cf6 0%, #3b0764 100%); }
.project-thumb-2 { background: linear-gradient(135deg, #06b6d4 0%, #164e63 100%); }
.project-thumb-3 { background: linear-gradient(135deg, #ec4899 0%, #831843 100%); }
.project-thumb-4 { background: linear-gradient(135deg, #10b981 0%, #064e3b 100%); }

/* Browser mockup */
.browser-mock {
    width: 100%;
    max-width: 320px;
    background: rgba(5, 5, 7, 0.75);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.project:hover .browser-mock { transform: rotate(0deg) translateY(-4px); }
.browser-bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-bar i {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}
.browser-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mock-line {
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    width: 60%;
}
.mock-line.long { width: 90%; }
.mock-row {
    display: flex;
    gap: 6px;
}
.mock-box {
    flex: 1;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.mock-box.tall { height: 60px; margin-top: 6px; }
.mock-chart {
    height: 50px;
    background:
        linear-gradient(180deg, transparent, rgba(255,255,255,0.15)),
        linear-gradient(90deg, transparent 15%, rgba(255,255,255,0.25) 16%, transparent 17%, transparent 35%, rgba(255,255,255,0.25) 36%, transparent 37%, transparent 60%, rgba(255,255,255,0.25) 61%, transparent 62%);
    border-radius: 4px;
    margin-top: 6px;
}
.mock-prod {
    flex: 1;
    height: 50px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    position: relative;
}
.mock-prod::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 70%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Phone mockup */
.phone-mock {
    width: 160px;
    height: 280px;
    background: rgba(5, 5, 7, 0.85);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 14px 10px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
}
.project:hover .phone-mock { transform: rotate(0deg) translateY(-4px); }
.phone-screen {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}
.phone-top {
    height: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 4px;
}
.mock-circle {
    flex: 1;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
}

/* Chat mockup */
.chat-mock {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 80%;
}
.chat-bubble.in {
    background: rgba(255,255,255,0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble.out {
    background: rgba(255,255,255,0.25);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble span {
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    width: 80%;
}
.chat-bubble .w40 { width: 40%; }
.chat-bubble .w50 { width: 50%; }
.chat-bubble .w60 { width: 60%; }
.chat-bubble .w70 { width: 70%; }

.project-body { padding: 28px; }
.project-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.project-year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}
.project-body h3 { margin-bottom: 10px; }
.project-kpi {
    list-style: none;
    display: flex;
    gap: 24px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.project-kpi li {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.project-kpi strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* =========================
   Testimonio
   ========================= */

.testimonial-sec {
    padding: 80px 0;
}
.testimonial {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    text-align: center;
    position: relative;
}
.t-quote {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.5;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    height: 30px;
}
.t-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}
.t-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}
.t-author strong {
    display: block;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}
.t-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    text-align: left;
}

/* =========================
   Nosotros
   ========================= */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; font-size: 1.05rem; }

.check-list {
    list-style: none;
    margin-top: 24px;
}
.check-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
}
.check-list li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.code-window {
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(139, 92, 246, 0.4);
}
.code-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: var(--code-header-bg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: center;
    position: relative;
}
.code-header > span:not(.code-title) {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a3a44;
}
.code-header > span:nth-child(1) { background: #ff5f57; }
.code-header > span:nth-child(2) { background: #febc2e; }
.code-header > span:nth-child(3) { background: #28c840; }
.code-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.code-body {
    padding: 24px 22px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--code-text);
    white-space: pre-wrap;
    overflow-x: auto;
}
.c-key { color: #c084fc; }
.c-var { color: #7dd3fc; }
.c-prop { color: #f9a8d4; }
.c-str { color: #86efac; }
.c-num { color: #fbbf24; }

/* =========================
   FAQ
   ========================= */

.faq-wrap {
    max-width: 900px;
}
.faq {
    margin-top: 40px;
}
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq details[open] {
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--surface-2);
}
.faq summary {
    padding: 20px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--text);
    transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3'><path d='M12 5v14M5 12h14'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq details[open] summary::after {
    transform: rotate(135deg);
    border-color: var(--accent);
}
.faq summary:hover { color: var(--accent); }
.faq details p {
    padding: 0 24px 22px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================
   Contacto / CTA
   ========================= */

.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.06));
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}

.cta-content h2 { margin-bottom: 16px; }
.cta-content p { font-size: 1.05rem; margin-bottom: 28px; }

.cta-direct {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.cta-direct a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    transition: all 0.2s;
}
.cta-direct a:hover { transform: translateX(4px); }
.cta-direct strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 600;
}
.cta-direct span {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-form label span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}
.form-status.success { color: #86efac; }

/* =========================
   Footer
   ========================= */

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 60px 0 24px;
    margin-top: 80px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.footer-cols h4 { margin-bottom: 16px; }
.footer-cols a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
}
.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-text { max-width: none; }
    .hero-visual { min-height: auto; max-width: 560px; margin: 0 auto; }
    .fc-1 { top: -10px; left: -10px; }
    .fc-2 { bottom: -10px; right: -10px; }
    .fc-3 { display: none; }
}

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about, .cta { grid-template-columns: 1fr; gap: 40px; }
    .cta { padding: 40px 28px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .process-line { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    .nav-links a:last-child { border-bottom: none; margin-top: 8px; }
    .nav-toggle { display: flex; }
    .theme-toggle { margin-left: auto; margin-right: 12px; }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; gap: 20px; padding: 20px 0; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
    .stat:last-child { border-bottom: none; padding-bottom: 0; }
    .hero { padding: 50px 0 60px; }
    .section { padding: 70px 0; }
    .footer-cols { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .marquee-track span { font-size: 1.2rem; }
    .testimonial { padding: 40px 24px; }
    .hero-dashboard { transform: none; animation: none; }
    .hero-dashboard:hover { transform: none; }
    .fc-1, .fc-2 { display: none; }
    .hero-title { font-size: 2.2rem; }
    .trust-row { flex-wrap: wrap; gap: 12px; }
}
