/* ---------- TIPOGRAFÍAS LOCALES (sin CDN) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   FORLEX · sitio personal + Forlex Optimizer
   Tema: bosque esmeralda + cian · zona producto: violeta
   Autor: Forlex
   ============================================================ */

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

:root {
    /* marca personal */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #064e3b;
    --accent: #06b6d4;
    --accent-glow: #22d3ee;

    /* zona producto (Forlex Optimizer) */
    --violet: #8b5cf6;
    --violet-light: #a78bfa;
    --violet-deep: #6d28d9;
    --violet-soft: rgba(139, 92, 246, 0.16);

    --discord: #5865f2;
    --discord-hover: #4752c4;

    /* superficies */
    --bg-main: #041410;
    --bg-deep: #020b09;
    --bg-card: rgba(10, 31, 26, 0.72);
    --bg-section: rgba(15, 43, 36, 0.66);
    --bg-elevated: rgba(12, 36, 30, 0.9);

    --text-primary: #f0fdf9;
    --text-secondary: #a7d4c8;
    --text-dim: #6e9e91;

    --border-light: rgba(30, 74, 62, 0.9);
    --border-glow: rgba(16, 185, 129, 0.45);
    --border-violet: rgba(139, 92, 246, 0.42);

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;

    /* sombras */
    --shadow-sm: 0 4px 10px -2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 14px 30px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 28px 60px -18px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 44px 100px -30px rgba(0, 0, 0, 0.85);
    --glow-primary: 0 0 26px rgba(16, 185, 129, 0.32);
    --glow-accent: 0 0 26px rgba(6, 182, 212, 0.32);
    --glow-violet: 0 0 30px rgba(139, 92, 246, 0.35);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 34px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.35s var(--ease-soft);

    --nav-h: 62px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 22px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

/* Las rutas largas de Windows (p. ej. %LOCALAPPDATA%\ForlexOptimizer) no deben
   ensanchar las columnas de los grids: se permite cortarlas en cualquier punto. */
code { overflow-wrap: anywhere; word-break: break-word; }

::selection { background: rgba(16, 185, 129, 0.32); color: #ffffff; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   FONDO VIVO
   ============================================================ */
.bg-layer {
    position: fixed; inset: 0; z-index: -3;
    background:
        radial-gradient(1200px 800px at 12% -10%, rgba(16, 185, 129, 0.18), transparent 60%),
        radial-gradient(1000px 700px at 90% 8%, rgba(6, 182, 212, 0.14), transparent 60%),
        radial-gradient(900px 900px at 50% 110%, rgba(139, 92, 246, 0.13), transparent 65%),
        linear-gradient(160deg, #041410 0%, #071d18 45%, #020b09 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: bgDrift 26s var(--ease-soft) infinite alternate;
}

@keyframes bgDrift {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
    100% { background-position: 30% 40%, 60% 30%, 20% 70%, 0 0; }
}

.aurora {
    position: fixed; inset: -20%; z-index: -2; pointer-events: none;
    filter: blur(90px); opacity: 0.5;
}

.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 { width: 46vmax; height: 46vmax; left: -8vmax; top: -6vmax;
    background: radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.5), transparent 68%);
    animation: float1 22s var(--ease-soft) infinite alternate; }
.orb-2 { width: 40vmax; height: 40vmax; right: -10vmax; top: 14vmax;
    background: radial-gradient(circle at 60% 40%, rgba(6, 182, 212, 0.42), transparent 68%);
    animation: float2 26s var(--ease-soft) infinite alternate; }
.orb-3 { width: 34vmax; height: 34vmax; left: 24vmax; bottom: -14vmax;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.38), transparent 68%);
    animation: float3 30s var(--ease-soft) infinite alternate; }

@keyframes float1 { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes float2 { to { transform: translate3d(-8vmax, 9vmax, 0) scale(1.08); } }
@keyframes float3 { to { transform: translate3d(6vmax, -8vmax, 0) scale(1.15); } }

.noise {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.cursor-aura {
    position: fixed; top: 0; left: 0; width: 460px; height: 460px;
    margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.13), transparent 62%);
    transition: opacity 0.4s ease; opacity: 0;
}

/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */
.progress-wrap {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light), var(--primary));
    background-size: 300% 100%;
    animation: gradientSlide 4s linear infinite;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.75);
    transition: width 0.1s linear;
}

@keyframes gradientSlide { to { background-position: 300% 0; } }

/* ============================================================
   NAVBAR
   ============================================================ */
.topbar {
    position: fixed; top: 3px; left: 50%; transform: translate(-50%, -140%);
    width: min(100%, 1120px); z-index: 100;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    background: rgba(4, 20, 16, 0.8);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.75);
    transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
    opacity: 0;
}

.topbar.show { transform: translate(-50%, 0); opacity: 1; }

.brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 800; letter-spacing: 0.06em; font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: 12px; margin-right: 4px;
    border-right: 1px solid var(--border-light);
    white-space: nowrap;
    text-decoration: none;
}

.brand i { font-size: 1rem; -webkit-text-fill-color: var(--primary); color: var(--primary); }

.nav-links {
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto; scrollbar-width: none; flex: 1;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
    position: relative;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.78rem; font-weight: 600; white-space: nowrap;
    padding: 8px 13px; border-radius: 50px;
    transition: color 0.3s var(--ease-soft), background 0.3s var(--ease-soft), transform 0.3s var(--ease-spring);
}

.nav-link:hover { color: var(--text-primary); background: rgba(16, 185, 129, 0.14); transform: translateY(-1px); }

.nav-link.active {
    color: #032019;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 16px -4px rgba(16, 185, 129, 0.7);
}

.nav-cta {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 50px;
    background: linear-gradient(135deg, var(--violet), var(--violet-deep));
    color: #ffffff; font-size: 0.78rem; font-weight: 800; text-decoration: none;
    letter-spacing: 0.01em;
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 8px 22px -10px rgba(139, 92, 246, 0.9);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, filter 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); box-shadow: 0 14px 30px -10px rgba(139, 92, 246, 0.95); }
.nav-cta i { font-size: 0.8rem; }

.sound-toggle {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(15, 43, 36, 0.9); color: var(--text-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer; font-size: 0.85rem;
    transition: var(--transition);
}

.sound-toggle:hover { color: var(--primary); border-color: var(--border-glow); transform: scale(1.08); }
.sound-toggle.on { color: #032019; background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; }
.sound-toggle.hint { animation: soundHint 2.4s var(--ease-soft) infinite; }

@keyframes soundHint {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 100%; margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }

@media (min-width: 768px)  { .container { max-width: 800px; padding: 0 26px; } }
@media (min-width: 1024px) { .container { max-width: 1080px; padding: 0 32px; } }
@media (min-width: 1320px) { .container { max-width: 1180px; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: calc(52px + env(safe-area-inset-top)) 0 10px;
    position: relative;
    perspective: 1200px;
}

.hero-grid { display: grid; gap: 38px; align-items: center; }

@media (min-width: 1000px) {
    .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 34px; }
}

.hero-copy { text-align: center; }

@media (min-width: 1000px) {
    .hero-copy { text-align: left; }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px; border-radius: 50px;
    margin-bottom: 20px;
    opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.1s forwards;
}

.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@media (max-width: 560px) {
    .hero-badge { font-size: 0.56rem; letter-spacing: 0.08em; padding: 5px 11px; gap: 6px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}

.hero-badge b { color: #ffffff; font-weight: 800; }

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* fila de perfil */
.profile-row {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-bottom: 18px;
    opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.18s forwards;
}

@media (min-width: 1000px) {
    .profile-row { justify-content: flex-start; }
}

.avatar-wrapper {
    position: relative; display: inline-block; flex: 0 0 auto;
    animation: avatarIn 1.05s var(--ease-spring) 0.25s backwards;
}

@keyframes avatarIn {
    from { opacity: 0; transform: scale(0.72) translateY(16px); filter: blur(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.avatar-wrapper::before {
    content: ''; position: absolute; inset: -6px; border-radius: 32%;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--violet), var(--primary-light), var(--primary));
    z-index: -2; animation: spin 8s linear infinite;
    filter: blur(9px); opacity: 0.75;
}

.avatar-wrapper::after {
    content: ''; position: absolute; inset: -3px; border-radius: 26%;
    background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.5), transparent 55%);
    z-index: -1; animation: spin 5s linear infinite reverse; opacity: 0.45;
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
    width: 74px; height: 74px; border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.4);
    object-fit: cover; object-position: center;
    background: var(--bg-section);
    image-rendering: pixelated;
    transition: transform 0.6s var(--ease-spring), box-shadow 0.5s var(--ease-soft);
    cursor: zoom-in;
    animation: bob 5.5s var(--ease-soft) infinite;
}

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.avatar:hover { transform: scale(1.08) rotate(-2deg); box-shadow: 0 0 48px rgba(6, 182, 212, 0.6); }

.status-chip {
    position: absolute; bottom: -7px; right: -12px;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.56rem; font-weight: 800; letter-spacing: 0.09em;
    color: #04211a; background: linear-gradient(135deg, var(--primary-light), var(--accent));
    padding: 4px 8px; border-radius: 50px;
    box-shadow: 0 6px 18px -4px rgba(16, 185, 129, 0.75);
    border: 2px solid rgba(4, 20, 16, 0.9);
    animation: chipPop 0.7s var(--ease-spring) 1s backwards;
}

@keyframes chipPop { from { opacity: 0; transform: scale(0.4) translateY(10px); } }

.profile-meta { display: flex; flex-direction: column; gap: 3px; text-align: left; }

.profile-name { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.02em; }

.profile-status {
    font-size: 0.7rem; font-weight: 600; color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: 6px;
}

.profile-status i { font-size: 0.62rem; color: var(--primary-light); }
.profile-status b { color: #ffffff; }

/* título */
.hero h1 {
    font-size: clamp(2.7rem, 12vw, 5.2rem);
    font-weight: 900; letter-spacing: -0.03em; line-height: 0.98;
    margin: 0 0 12px;
    background: linear-gradient(115deg, var(--primary-light) 0%, var(--accent) 30%, #ffffff 50%, var(--accent) 70%, var(--primary) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.3s forwards, titleShine 7s ease-in-out 1.2s infinite;
    filter: drop-shadow(0 6px 30px rgba(16, 185, 129, 0.3));
}

.hero h1 .dot-accent {
    -webkit-text-fill-color: var(--violet-light); color: var(--violet-light);
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.typed-role {
    min-height: 1.5em;
    font-size: clamp(0.86rem, 3.3vw, 1.05rem);
    font-weight: 700; color: var(--text-secondary);
    letter-spacing: 0.01em;
    opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.46s forwards;
}

.typed-role .caret {
    display: inline-block; width: 2px; height: 1.05em;
    background: var(--accent); vertical-align: -0.16em; margin-left: 3px;
    animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
    margin: 16px auto 0;
    max-width: 46ch;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
    opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.56s forwards;
}

@media (min-width: 1000px) { .hero-tagline { margin-left: 0; } }

.hero-tagline strong { color: var(--text-primary); font-weight: 700; }

.hero-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-top: 26px;
    opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.68s forwards;
}

@media (min-width: 1000px) { .hero-actions { justify-content: flex-start; } }

/* botones */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 50px;
    font-size: 0.88rem; font-weight: 800; letter-spacing: 0.01em;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease, filter 0.3s ease, border-color 0.4s ease;
}

.btn::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg); transition: left 0.75s var(--ease-out);
}

.btn:hover::after { left: 130%; }

.btn i { font-size: 0.95rem; transition: transform 0.45s var(--ease-spring); }
.btn:hover i { transform: scale(1.14) rotate(-4deg); }
.btn:active { transform: scale(0.972); }

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 42px -14px rgba(16, 185, 129, 0.9); }

.btn--violet {
    background: linear-gradient(135deg, #9d6bff, var(--violet-deep));
    color: #ffffff;
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 12px 30px -12px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--violet:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 46px -14px rgba(139, 92, 246, 0.95); }

.btn--ghost {
    background: rgba(10, 31, 26, 0.7);
    color: var(--text-primary);
    border-color: var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: var(--glow-primary);
}

.btn--sm { padding: 11px 18px; font-size: 0.8rem; }
.btn--block { width: 100%; }

/* franja de confianza */
.trust-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    margin-top: 22px;
    opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.8s forwards;
}

@media (min-width: 1000px) { .trust-strip { justify-content: flex-start; } }

.trust-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.68rem; font-weight: 700; color: var(--text-secondary);
    background: rgba(2, 11, 9, 0.6);
    border: 1px solid var(--border-light);
    padding: 6px 11px; border-radius: 50px;
    transition: var(--transition);
}

.trust-chip i { font-size: 0.72rem; color: var(--primary-light); }
.trust-chip:hover { border-color: var(--border-glow); color: var(--text-primary); transform: translateY(-2px); }
.trust-chip b { color: #ffffff; }

/* ============================================================
   MOCKUP DEL PRODUCTO (hero)
   ============================================================ */
.hero-visual {
    position: relative; z-index: 2;
    opacity: 0; animation: fadeUp 1.1s var(--ease-out) 0.4s forwards;
    transform-style: preserve-3d;
}

.mockup { position: relative; perspective: 1400px; }

.mockup-glow {
    position: absolute; inset: 8% 2% -6% 2%;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.45), rgba(34, 211, 238, 0.16) 55%, transparent 78%);
    filter: blur(42px); z-index: -1;
    animation: breathe 7s var(--ease-soft) infinite alternate;
}

@keyframes breathe { from { opacity: 0.65; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }

.mockup-frame {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: #0a0a14;
    box-shadow:
        0 40px 90px -30px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 60px -10px rgba(139, 92, 246, 0.35);
    overflow: hidden;
    transform: rotateX(var(--rx, 2deg)) rotateY(var(--ry, -3deg));
    transition: transform 0.5s var(--ease-out);
}

.mockup-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 13px;
    background: linear-gradient(180deg, rgba(28, 26, 46, 0.98), rgba(14, 13, 24, 0.98));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
    flex: 1; text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem; letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.62);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mockup-frame img { width: 100%; height: auto; display: block; }

/* tarjetas flotantes */
.float-card {
    position: absolute; z-index: 3;
    background: rgba(13, 12, 26, 0.92);
    border: 1px solid rgba(167, 139, 250, 0.34);
    border-radius: 16px;
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.95), var(--glow-violet);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    animation: floatCard 6s var(--ease-soft) infinite alternate;
}

@keyframes floatCard { from { transform: translateY(-5px); } to { transform: translateY(7px); } }

.float-card--health {
    top: -18px; right: -10px;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 13px 9px 9px;
    animation-delay: 0.4s;
}

.ring { position: relative; width: 52px; height: 52px; flex: 0 0 52px; }
.ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 5; }
.ring .bar {
    fill: none; stroke: url(#ringGrad); stroke-width: 5; stroke-linecap: round;
    stroke-dasharray: 138.2; stroke-dashoffset: 138.2;
    transition: stroke-dashoffset 1.6s var(--ease-out) 0.5s;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.85));
}

.ring.visible .bar { stroke-dashoffset: 27.6; }

.ring-num {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 1rem; font-weight: 900; color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.ring-meta { display: flex; flex-direction: column; line-height: 1.25; }
.ring-meta .big { font-size: 0.72rem; font-weight: 800; color: #ffffff; }
.ring-meta .small { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em; color: var(--violet-light); text-transform: uppercase; }

.float-card--tweaks {
    bottom: -20px; left: -14px;
    padding: 11px 16px;
    display: flex; align-items: baseline; gap: 8px;
    animation-delay: 1.2s;
}

.float-card--tweaks b { font-size: 1.3rem; font-weight: 900; color: #ffffff; letter-spacing: -0.02em; }
.float-card--tweaks span { font-size: 0.62rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }
.float-card--tweaks em { font-style: normal; font-size: 0.58rem; font-weight: 700; color: var(--violet-light); display: block; }

.float-card--safe {
    bottom: 10px; right: -18px;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 13px;
    font-size: 0.66rem; font-weight: 800; color: #d7f7ec;
    animation-delay: 2s;
}

.float-card--safe i { color: #34d399; font-size: 0.82rem; }

@media (max-width: 620px) {
    .float-card--health { top: -14px; right: -4px; padding: 7px 10px 7px 7px; }
    .ring, .ring svg { width: 42px; height: 42px; }
    .ring { flex-basis: 42px; }
    .ring-num { font-size: 0.82rem; }
    .float-card--tweaks { left: -6px; bottom: -16px; padding: 8px 12px; }
    .float-card--tweaks b { font-size: 1.05rem; }
    .float-card--safe { display: none; }
    .mockup-frame { transform: none; }
    .mockup-title { display: none; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    margin: 42px 0 8px;
}

@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 12px; text-align: center;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}

.stat:hover { transform: translateY(-5px); border-color: var(--border-glow); box-shadow: var(--glow-primary); }

.stat .num {
    font-size: 1.85rem; font-weight: 900; line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}

.stat .lbl {
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em;
    text-transform: uppercase; color: var(--text-dim); margin-top: 5px;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
    opacity: 0; transform: translateY(38px) scale(0.985);
    filter: blur(6px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* ============================================================
   SECCIONES
   ============================================================ */
.section {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    margin: 26px 0;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--shadow-md);
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.6s var(--ease-out);
    overflow: hidden;
}

@media (min-width: 768px) { .section { padding: 38px 36px; margin: 34px 0; } }

.section::before {
    content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.75), transparent);
    opacity: 0.7; transition: opacity 0.5s ease;
}

.section::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(16, 185, 129, 0.1), transparent 70%);
    opacity: 0; transition: opacity 0.45s ease;
}

.section:hover { border-color: var(--border-glow); box-shadow: var(--shadow-lg), var(--glow-primary); }
.section:hover::after { opacity: 1; }

.section-title {
    font-size: 1.42rem; font-weight: 800; letter-spacing: -0.015em;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 13px;
}

@media (min-width: 768px) { .section-title { font-size: 1.8rem; } }

.section-title i {
    font-size: 1.15rem; color: var(--primary);
    width: 42px; height: 42px; flex: 0 0 42px;
    display: grid; place-items: center; border-radius: 13px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.28);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}

.section:hover .section-title i { transform: rotate(-8deg) scale(1.08); box-shadow: var(--glow-primary); }

.section-lead {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
    margin-bottom: 24px; max-width: 68ch;
}

@media (min-width: 768px) { .section-lead { font-size: 1rem; } }

.text-secondary { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.68; }
.text-secondary strong, .section-lead strong { color: var(--text-primary); font-weight: 700; }

/* ---------- ZONA PRODUCTO (violeta) ---------- */
.section--opt {
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #3b0f7a;
    --accent: #22d3ee;
    --border-glow: rgba(139, 92, 246, 0.5);
    --glow-primary: 0 0 30px rgba(139, 92, 246, 0.35);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(17, 14, 34, 0.92), rgba(8, 10, 20, 0.92));
    border-color: rgba(139, 92, 246, 0.3);
}

.section--opt::before {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.85), rgba(34, 211, 238, 0.6), transparent);
}

.section--opt::after {
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.14), transparent 70%);
}

.section--opt:hover { border-color: rgba(139, 92, 246, 0.55); box-shadow: var(--shadow-lg), 0 0 44px rgba(139, 92, 246, 0.25); }

.section--opt .section-title i {
    color: var(--violet-light);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.12));
    border-color: rgba(139, 92, 246, 0.35);
}

.section--opt .section-lead { color: #c8c2e8; }

.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--violet-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.32);
    padding: 5px 12px; border-radius: 50px;
    margin-bottom: 14px;
}

.kicker--green { color: var(--primary-light); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.about-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 720px) { .about-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 20px; align-items: stretch; } }

.about-card {
    position: relative; overflow: hidden;
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}

.about-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: 0 18px 34px -14px rgba(16, 185, 129, 0.3); }

.about-card p + p { margin-top: 12px; }

.about-card .chips { margin-top: 18px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.68rem; font-weight: 700; color: var(--text-secondary);
    background: rgba(2, 11, 9, 0.55);
    border: 1px solid var(--border-light);
    padding: 5px 11px; border-radius: 50px;
    transition: var(--transition);
}

.chip i { font-size: 0.65rem; color: var(--primary-light); }
.chip:hover { border-color: var(--border-glow); color: var(--text-primary); transform: translateY(-2px); }

/* tarjeta disponibilidad */
.avail-card {
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(139, 92, 246, 0.2), transparent 65%),
        linear-gradient(150deg, rgba(16, 185, 129, 0.12), rgba(10, 31, 26, 0.7));
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative; overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.4s ease;
}

.avail-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 22px 44px -18px rgba(139, 92, 246, 0.6); }

.avail-card .avail-icon {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--violet), var(--violet-deep));
    color: #ffffff; font-size: 1.05rem;
    box-shadow: 0 10px 24px -10px rgba(139, 92, 246, 0.9);
}

.avail-card h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.avail-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.avail-card .price { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; color: var(--primary-light); line-height: 1; }
.avail-card .price small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-left: 6px; }

/* ============================================================
   TRAYECTORIA
   ============================================================ */
.experience-grid { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 640px) {
    .experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.exp-card {
    position: relative; overflow: hidden;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 19px; padding-left: 22px;
    border: 1px solid var(--border-light);
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease, background 0.4s ease;
}

.exp-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0); transform-origin: top;
    transition: transform 0.55s var(--ease-out);
}

.exp-card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
}

.exp-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 18px 34px -14px rgba(16, 185, 129, 0.35);
}

.exp-card:hover::before { transform: scaleY(1); }
.exp-card:hover::after { opacity: 1; }

.exp-card .role {
    font-size: 0.9rem; font-weight: 800; color: var(--primary-light);
    margin-bottom: 5px; display: flex; align-items: center; gap: 8px;
    letter-spacing: 0.01em;
}

.exp-card .role i { font-size: 0.85rem; opacity: 0.9; }

.exp-card .place { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; color: var(--text-primary); }

.exp-card .date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.68rem; font-weight: 600; color: var(--accent);
    background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.22);
    padding: 3px 9px; border-radius: 50px; margin-bottom: 10px;
}

.exp-card .description { color: var(--text-secondary); font-size: 0.82rem; }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(6, 182, 212, 0.16); color: var(--accent);
    padding: 3px 9px; border-radius: 50px;
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.09em;
    margin-left: 8px; vertical-align: middle;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 8px currentColor;
}

.status.closed { background: rgba(239, 68, 68, 0.14); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.status.open   { background: rgba(16, 185, 129, 0.16); color: var(--success); border-color: rgba(16, 185, 129, 0.35); }
.status.open::before { animation: pulseDot 2s infinite; }
.status.retired {
    background: rgba(239, 68, 68, 0.2); color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    margin: 0 6px 0 4px;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 6px 18px -10px rgba(239, 68, 68, 0.9);
}
.status.retired::before { box-shadow: none; opacity: 0.85; }

.exp-card.closed-project .role { color: #94a3b8; }
.exp-card.closed-project .place { color: var(--text-secondary); }

/* ============================================================
   FORLEX OPTIMIZER · cabecera de producto
   ============================================================ */
.opt-head { display: grid; gap: 22px; margin-bottom: 30px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 900px) { .opt-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 26px; align-items: start; } }

.opt-title {
    font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02;
    margin-bottom: 12px;
    background: linear-gradient(115deg, #ffffff 0%, var(--violet-light) 42%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 8px 30px rgba(139, 92, 246, 0.3));
}

.opt-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 18px; }

.opt-tag {
    font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em;
    padding: 5px 10px; border-radius: 50px;
    color: #d8d2ff; background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: inline-flex; align-items: center; gap: 6px;
}

.opt-tag i { font-size: 0.6rem; color: var(--violet-light); }
.opt-tag--safe { color: #b7f7e3; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.opt-tag--safe i { color: #34d399; }

/* panel lateral de descarga rápida */
.quick-dl {
    background:
        radial-gradient(360px 200px at 90% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(24, 19, 45, 0.95), rgba(9, 10, 22, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quick-dl h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.quick-dl p { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 14px; }

.quick-dl .row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 0.72rem; padding: 8px 0;
    border-top: 1px dashed rgba(139, 92, 246, 0.22);
    color: var(--text-secondary);
}
.quick-dl .row:first-of-type { border-top: none; }
.quick-dl .row b { color: #ffffff; font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; }
.quick-dl .row .ok { color: #34d399; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

.quick-dl .btn { margin-top: 14px; }
.quick-dl .mini-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.quick-dl .mini-links a { font-size: 0.68rem; color: var(--violet-light); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.quick-dl .mini-links a:hover { color: #ffffff; }

/* ============================================================
   FEATURES DEL OPTIMIZADOR
   ============================================================ */
.feature-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    margin: 8px 0 4px;
}

@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

.feature {
    position: relative; overflow: hidden;
    background: rgba(15, 14, 32, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease, background 0.4s ease;
}

.feature::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 139, 250, 0.13), transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(22, 18, 44, 0.85);
    box-shadow: 0 22px 44px -20px rgba(139, 92, 246, 0.65);
}

.feature:hover::after { opacity: 1; }

.feature__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1rem; color: var(--violet-light);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 12px;
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}

.feature:hover .feature__icon { transform: translateY(-2px) rotate(-6deg) scale(1.08); box-shadow: var(--glow-violet); }

.feature h3 { font-size: 0.88rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.005em; }
.feature p { font-size: 0.72rem; color: #a9a3c9; line-height: 1.55; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { margin-top: 6px; }

.gallery-tabs {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding: 4px 2px 12px; margin-bottom: 12px;
    mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
}

.gallery-tabs::-webkit-scrollbar { display: none; }

.gal-tab {
    flex: 0 0 auto;
    padding: 8px 14px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
    background: rgba(15, 14, 32, 0.7);
    color: #a9a3c9;
    border: 1px solid rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 7px;
    white-space: nowrap;
}

.gal-tab i { font-size: 0.66rem; opacity: 0.85; }
.gal-tab:hover { color: #ffffff; border-color: rgba(167, 139, 250, 0.45); transform: translateY(-2px); }

.gal-tab.active {
    color: #0b0718;
    background: linear-gradient(135deg, var(--violet-light), var(--accent));
    border-color: transparent;
    box-shadow: 0 10px 24px -10px rgba(139, 92, 246, 0.9);
}

.gallery-stage {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: #08070f;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 50px -16px rgba(139, 92, 246, 0.5);
    aspect-ratio: 16 / 10;
}

.gallery-stage img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    cursor: zoom-in;
    transition: opacity 0.35s ease, transform 0.9s var(--ease-out);
    opacity: 1;
}

.gallery-stage.is-swapping img { opacity: 0; transform: scale(1.02); }
.gallery-stage:hover img { transform: scale(1.015); }

.gal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(8, 7, 15, 0.68);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #ffffff; font-size: 0.9rem; cursor: pointer;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.35s ease, transform 0.4s var(--ease-spring), background 0.3s ease;
    z-index: 3;
}

.gal-arrow--prev { left: 12px; }
.gal-arrow--next { right: 12px; }
.gallery-stage:hover .gal-arrow, .gal-arrow:focus-visible { opacity: 1; }
.gal-arrow:hover { background: rgba(139, 92, 246, 0.85); transform: translateY(-50%) scale(1.08); }

.gal-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 26px 16px 12px;
    font-size: 0.7rem; font-weight: 600; color: rgba(237, 233, 254, 0.85);
    background: linear-gradient(0deg, rgba(4, 3, 10, 0.92), transparent);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    pointer-events: none;
}

.gal-caption .zoom-hint { display: inline-flex; align-items: center; gap: 6px; color: rgba(196, 181, 253, 0.9); font-size: 0.64rem; }

.gallery-thumbs {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 12px 2px 4px; scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}

.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.45); border-radius: 10px; }

.gal-thumb {
    flex: 0 0 auto; width: 104px; height: 64px;
    border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: #0a0912; padding: 0;
    position: relative;
    transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.gal-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0.66; transition: opacity 0.3s ease; }
.gal-thumb:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.6); }
.gal-thumb:hover img { opacity: 0.95; }
.gal-thumb.active { border-color: var(--violet-light); box-shadow: 0 0 0 1px var(--violet-light), var(--glow-violet); }
.gal-thumb.active img { opacity: 1; }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.categories { margin-top: 30px; }

.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-head h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.cat-head span { font-size: 0.72rem; color: #a9a3c9; }
.cat-head b { color: #ffffff; }

.cat-marquee {
    position: relative; overflow: hidden;
    margin: 14px -6px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.cat-track {
    display: flex; gap: 8px; width: max-content;
    animation: marquee 34s linear infinite;
}

.cat-marquee:hover .cat-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.cat-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 700; color: #cfc9ee;
    background: rgba(22, 18, 44, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.22);
    white-space: nowrap;
}

.cat-pill i { font-size: 0.7rem; color: var(--violet-light); }
.cat-pill b {
    font-family: 'JetBrains Mono', monospace; font-size: 0.64rem;
    color: var(--accent); background: rgba(34, 211, 238, 0.1);
    padding: 1px 6px; border-radius: 50px;
}

/* ============================================================
   CONFIANZA / SEGURIDAD
   ============================================================ */
.trust-grid { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 780px) { .trust-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

.vt-card {
    position: relative; overflow: hidden;
    display: grid; gap: 16px;
    background: linear-gradient(150deg, rgba(13, 30, 26, 0.9), rgba(9, 10, 22, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-md);
    padding: 20px;
}

@media (min-width: 560px) { .vt-card { grid-template-columns: 1fr auto; align-items: center; } }

.vt-card h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.vt-card h3 i { color: #34d399; }
.vt-card p { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.6; max-width: 44ch; }

.vt-score {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: rgba(2, 11, 9, 0.55);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px; padding: 14px 20px;
    box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.12);
}

.vt-score .big {
    font-size: 1.9rem; font-weight: 900; line-height: 1;
    color: #34d399; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.55);
}
.vt-score .lbl { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.vt-score a { font-size: 0.62rem; font-weight: 700; color: var(--primary-light); text-decoration: none; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }
.vt-score a:hover { color: #ffffff; }

.vt-shot {
    margin-top: 14px; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.24);
    cursor: zoom-in; position: relative;
    display: block; width: 100%; padding: 0; background: none;
    grid-column: 1 / -1;
}

.vt-shot img { width: 100%; height: auto; opacity: 0.92; transition: transform 0.6s var(--ease-out), opacity 0.3s ease; }
.vt-shot:hover img { transform: scale(1.02); opacity: 1; }

.vt-shot::after {
    content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 10px; top: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: 0.7rem;
    color: #ffffff; background: rgba(2, 11, 9, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.checks { display: flex; flex-direction: column; gap: 10px; }

.check {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(22, 18, 44, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px; padding: 13px 15px;
    transition: border-color 0.35s ease, transform 0.4s var(--ease-out), background 0.35s ease;
}

.check:hover { transform: translateX(3px); border-color: rgba(167, 139, 250, 0.5); background: rgba(28, 23, 54, 0.75); }

.check i {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center; font-size: 0.78rem;
    color: var(--violet-light); background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.check h3 { font-size: 0.8rem; font-weight: 800; margin-bottom: 2px; }
.check p { font-size: 0.7rem; color: #a9a3c9; line-height: 1.5; }

/* ============================================================
   DESCARGA
   ============================================================ */
.dl-card {
    position: relative; overflow: hidden;
    margin-top: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.42);
    background:
        radial-gradient(700px 340px at 10% 0%, rgba(139, 92, 246, 0.22), transparent 62%),
        radial-gradient(600px 320px at 95% 110%, rgba(34, 211, 238, 0.14), transparent 62%),
        linear-gradient(160deg, rgba(24, 19, 45, 0.96), rgba(8, 8, 18, 0.96));
    padding: 24px 20px;
    box-shadow: var(--shadow-xl), 0 0 70px -24px rgba(139, 92, 246, 0.7);
}

@media (min-width: 768px) { .dl-card { padding: 32px; } }

.dl-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(500px circle at var(--mx, 30%) var(--my, 0%), rgba(167, 139, 250, 0.1), transparent 65%);
    pointer-events: none;
}

.dl-grid { position: relative; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 860px) { .dl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; } }

.dl-card h3 { font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.dl-card h3 span { color: var(--violet-light); }

.dl-card .dl-sub { font-size: 0.82rem; color: #c8c2e8; margin-bottom: 18px; max-width: 46ch; }

.dl-buttons { display: flex; flex-direction: column; gap: 10px; }

.dl-btn {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 16px; border-radius: 16px;
    text-decoration: none; color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.35);
    transition: transform 0.4s var(--ease-spring), border-color 0.35s ease, box-shadow 0.4s ease, background 0.35s ease;
    position: relative; overflow: hidden;
}

.dl-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 181, 253, 0.75);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.12));
    box-shadow: 0 18px 38px -18px rgba(139, 92, 246, 0.85);
}

.dl-btn__icon {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1rem;
    background: linear-gradient(135deg, var(--violet), var(--violet-deep));
    box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.9);
}

.dl-btn--primary { background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(109, 40, 217, 0.92)); border-color: rgba(196, 181, 253, 0.45); }
.dl-btn--primary .dl-btn__icon { background: rgba(255, 255, 255, 0.16); }
.dl-btn--primary:hover { background: linear-gradient(135deg, #9d6bff, #7c3aed); box-shadow: 0 22px 44px -18px rgba(139, 92, 246, 1); }

.dl-btn__txt { flex: 1; min-width: 0; }
.dl-btn__txt strong { display: block; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.01em; }
.dl-btn__txt span { display: block; font-size: 0.68rem; color: rgba(226, 232, 240, 0.72); font-weight: 600; }
.dl-btn__meta { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: rgba(237, 233, 254, 0.85); flex: 0 0 auto; }
.dl-btn .fa-arrow-down-long { font-size: 0.8rem; opacity: 0.8; }

.hash-box {
    margin-top: 14px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(3, 3, 9, 0.65);
    border: 1px dashed rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    padding: 9px 11px;
}

.hash-box .hash-label { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; flex: 0 0 auto; }
.hash-code {
    flex: 1; min-width: 0;
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
    color: #cfc9ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-mini {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center; font-size: 0.68rem;
    background: rgba(139, 92, 246, 0.16); color: var(--violet-light);
    border: 1px solid rgba(139, 92, 246, 0.34); cursor: pointer;
    transition: var(--transition);
}
.copy-mini:hover { background: var(--violet); color: #ffffff; }
.copy-mini.done { background: var(--success); color: #04211a; border-color: transparent; }

/* pasos */
.steps { display: flex; flex-direction: column; gap: 12px; }

.step {
    display: flex; gap: 13px; align-items: flex-start;
    background: rgba(10, 9, 20, 0.55);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    padding: 13px 15px;
}

.step-num {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700;
    color: #0b0718; background: linear-gradient(135deg, var(--violet-light), var(--accent));
    box-shadow: 0 6px 16px -8px rgba(139, 92, 246, 0.9);
}

.step h3 { font-size: 0.8rem; font-weight: 800; margin-bottom: 2px; }
.step p { font-size: 0.7rem; color: #a9a3c9; line-height: 1.55; }

.smart-note {
    margin-top: 14px;
    display: flex; gap: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(10, 9, 20, 0.4));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 3px solid var(--warning);
    border-radius: 12px;
    padding: 13px 15px;
}

.smart-note i { color: var(--warning); font-size: 0.95rem; margin-top: 2px; flex: 0 0 auto; }
.smart-note h3 { font-size: 0.78rem; font-weight: 800; color: #fde68a; margin-bottom: 3px; }
.smart-note p { font-size: 0.7rem; color: #d6c9a8; line-height: 1.55; }
.smart-note a { color: #fde68a; }

.req-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.req {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.64rem; font-weight: 700; color: #c8c2e8;
    background: rgba(3, 3, 9, 0.5); border: 1px solid rgba(139, 92, 246, 0.24);
    padding: 5px 10px; border-radius: 50px;
}
.req i { color: var(--violet-light); font-size: 0.6rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 9px; margin-top: 28px; }

.faq-item {
    background: rgba(15, 14, 32, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.35s ease, background 0.35s ease;
}

.faq-item.open { border-color: rgba(167, 139, 250, 0.5); background: rgba(21, 17, 41, 0.8); }

.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: none; border: none; cursor: pointer;
    padding: 15px 17px; text-align: left;
    font-size: 0.82rem; font-weight: 700; color: #e7e3f8;
    transition: color 0.3s ease;
}

.faq-q:hover { color: #ffffff; }
.faq-q i { font-size: 0.7rem; color: var(--violet-light); transition: transform 0.45s var(--ease-spring); flex: 0 0 auto; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.45s var(--ease-out), padding 0.45s ease;
    padding: 0 17px;
}

.faq-item.open .faq-a { max-height: 420px; padding: 0 17px 16px; }

.faq-a p { font-size: 0.76rem; color: #a9a3c9; line-height: 1.65; }
.faq-a a { color: var(--violet-light); font-weight: 600; }
.faq-a code {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7em;
    background: rgba(139, 92, 246, 0.14); padding: 1px 5px; border-radius: 4px;
}

/* ============================================================
   ÚTIL BOT (proyecto cerrado)
   ============================================================ */
.section.is-closed { border-color: rgba(120, 145, 138, 0.32); }
.section.is-closed::before {
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), rgba(239, 68, 68, 0.45), transparent);
}
.section.is-closed:hover { border-color: rgba(239, 68, 68, 0.4); box-shadow: var(--shadow-lg), 0 0 30px rgba(239, 68, 68, 0.14); }
.section.is-closed .section-title i { color: #94a3b8; border-color: rgba(148, 163, 184, 0.32); background: rgba(148, 163, 184, 0.1); }
.section.is-closed:hover .section-title i { box-shadow: 0 0 22px rgba(148, 163, 184, 0.28); }

.is-closed .bot-feature { filter: grayscale(0.72); opacity: 0.82; }
.is-closed .bot-feature:hover {
    filter: grayscale(0); opacity: 1;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 0 22px rgba(148, 163, 184, 0.18);
}
.is-closed .bot-feature:hover i { color: #cbd5e1; }

.ribbon {
    position: absolute; top: 0; right: 0;
    width: 152px; height: 152px; overflow: hidden;
    pointer-events: none; z-index: 3;
}
.ribbon span {
    position: absolute; top: 34px; right: -50px;
    width: 220px; padding: 7px 0; text-align: center;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff; font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.95);
    transform: rotate(45deg);
    opacity: 0; transition: opacity 0.7s ease 0.55s;
}
.ribbon span i { margin-right: 6px; font-size: 0.7rem; }
.section.is-closed.visible .ribbon span { opacity: 1; animation: ribbonIn 0.8s var(--ease-spring) 0.5s backwards; }

@keyframes ribbonIn {
    from { opacity: 0; transform: rotate(45deg) translate(14px, -10px) scale(0.86); }
    to   { opacity: 1; transform: rotate(45deg) translate(0, 0) scale(1); }
}

@media (max-width: 430px) {
    .ribbon { width: 118px; height: 118px; }
    .ribbon span { top: 27px; right: -54px; width: 190px; font-size: 0.62rem; letter-spacing: 0.16em; }
}

.close-card {
    display: flex; gap: 15px; align-items: flex-start;
    background: linear-gradient(135deg, rgba(120, 20, 20, 0.18), rgba(15, 43, 36, 0.45));
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-left: 3px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 17px 18px; margin: 20px 0;
    position: relative; overflow: hidden;
    transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.5s var(--ease-out);
}
.close-card:hover { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 16px 34px -18px rgba(239, 68, 68, 0.85); transform: translateY(-2px); }
.close-card > i {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center; font-size: 1rem;
    color: #fca5a5; background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.32);
}
.close-card h3 { font-size: 0.92rem; font-weight: 800; letter-spacing: 0.01em; margin-bottom: 5px; color: #fecaca; }
.close-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.62; }
.close-card strong { color: var(--text-primary); }
.close-card a { color: #fca5a5; }

.bot-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
@media (min-width: 640px) { .bot-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

.bot-feature {
    position: relative; overflow: hidden;
    background: var(--bg-section);
    padding: 16px 9px; border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.45s var(--ease-spring), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.bot-feature i {
    display: block; font-size: 1.25rem; margin-bottom: 8px; color: var(--primary-light);
    transition: transform 0.5s var(--ease-spring), color 0.4s ease;
}

.bot-feature:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(16, 185, 129, 0.13);
    border-color: var(--border-glow);
    box-shadow: var(--glow-primary);
}

.bot-feature:hover i { transform: translateY(-3px) scale(1.16) rotate(-6deg); color: var(--accent-glow); }
.bot-feature h3 { color: var(--text-primary); font-size: 0.82rem; margin-bottom: 2px; font-weight: 700; }
.bot-feature p { font-size: 0.64rem; color: var(--text-dim); }

.bot-feature::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-18deg); transition: left 0.75s var(--ease-out);
}
.bot-feature:hover::after { left: 130%; }

.closed-btn {
    background: rgba(120, 130, 128, 0.16);
    color: #b8c9c4;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    padding: 13px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.86rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    cursor: not-allowed; user-select: none;
}
.closed-btn i { color: #94a3b8; }

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.util-note {
    margin-top: 16px;
    font-size: 0.78rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.util-note i { color: var(--primary-light); }
.util-note a { color: var(--primary-light); font-weight: 700; text-decoration: none; }
.util-note a:hover { text-decoration: underline; }

/* ============================================================
   PRACPVP
   ============================================================ */
.server-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .server-grid { flex-direction: row; gap: 16px; } }

.server-card {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 22px 20px; text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.server-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 18px 34px -14px rgba(16, 185, 129, 0.35); }
.server-card h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.server-card h3 i { color: var(--primary); }

.ip-box {
    width: 100%; display: flex; align-items: center; gap: 10px;
    background: rgba(2, 11, 9, 0.8);
    border: 1px dashed rgba(6, 182, 212, 0.35);
    padding: 10px 12px; border-radius: var(--radius-sm);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.ip-box:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }

.ip {
    flex: 1; font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--accent-glow); font-size: 0.95rem; font-weight: 600;
    word-break: break-all; text-align: left; letter-spacing: 0.02em;
}

.copy-btn {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(6, 182, 212, 0.14); color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3); cursor: pointer; font-size: 0.85rem;
    transition: var(--transition);
}
.copy-btn:hover { background: var(--accent); color: #032019; transform: scale(1.08) rotate(-4deg); }
.copy-btn.done { background: var(--primary); color: #032019; border-color: transparent; }

.bedrock-port {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.13);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 8px 14px; border-radius: 50px;
    font-size: 0.76rem; color: var(--text-secondary);
}
.bedrock-port strong { color: var(--primary-light); font-family: 'JetBrains Mono', monospace; }

.server-meta { font-size: 0.74rem; color: var(--text-dim); line-height: 1.7; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.tag {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 4px 10px; border-radius: 50px;
    background: rgba(255, 255, 255, 0.05); color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.tag:hover { border-color: var(--border-glow); color: var(--primary-light); transform: translateY(-2px); }

.discord-big {
    font-size: 2.4rem; color: var(--discord);
    filter: drop-shadow(0 8px 22px rgba(88, 101, 242, 0.6));
}

.discord-link {
    position: relative; overflow: hidden;
    background: var(--discord); padding: 11px 20px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 700; text-decoration: none; color: #ffffff;
    display: inline-flex; align-items: center; gap: 9px;
    box-shadow: 0 10px 26px -12px rgba(88, 101, 242, 0.9);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}
.discord-link:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 38px -12px rgba(88, 101, 242, 0.9); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

.contact-card {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 24px 22px; text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}

.contact-card:hover { transform: translateY(-6px); border-color: rgba(88, 101, 242, 0.6); box-shadow: 0 18px 38px -14px rgba(88, 101, 242, 0.45); }

.contact-card .icon {
    width: 62px; height: 62px; margin: 0 auto 13px;
    display: grid; place-items: center; border-radius: 20px;
    font-size: 1.7rem; color: #ffffff;
    background: linear-gradient(135deg, var(--discord), var(--violet));
    box-shadow: 0 14px 34px -12px rgba(88, 101, 242, 0.9);
    transition: transform 0.55s var(--ease-spring);
}

.contact-card:hover .icon { transform: translateY(-4px) rotate(-8deg) scale(1.06); }

.handle {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
    background: rgba(2, 11, 9, 0.75); border: 1px solid var(--border-light);
    padding: 8px 8px 8px 15px; border-radius: 50px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--primary-light);
    transition: var(--transition); cursor: pointer;
}
.handle:hover { border-color: var(--border-glow); box-shadow: var(--glow-primary); }

.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 16px; }

.contact-btn {
    background: linear-gradient(135deg, var(--discord), var(--discord-hover));
    padding: 11px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
    color: #ffffff; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 10px 26px -12px rgba(88, 101, 242, 0.9);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}
.contact-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 38px -12px rgba(88, 101, 242, 0.9); }

.contact-btn--ghost {
    background: rgba(10, 31, 26, 0.8);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}
.contact-btn--ghost:hover { border-color: var(--border-glow); box-shadow: var(--glow-primary); }

.work-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-md);
    padding: 24px 22px;
    border: 1px solid rgba(16, 185, 129, 0.32);
    background:
        radial-gradient(420px 240px at 100% 0%, rgba(16, 185, 129, 0.2), transparent 62%),
        linear-gradient(150deg, rgba(15, 43, 36, 0.8), rgba(4, 20, 16, 0.75));
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}

.work-card:hover { transform: translateY(-6px); border-color: rgba(16, 185, 129, 0.55); box-shadow: 0 22px 44px -20px rgba(16, 185, 129, 0.55); }

.work-card .wc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.work-card .wc-icon {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.1rem; color: #04211a;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    box-shadow: 0 10px 26px -10px rgba(16, 185, 129, 0.9);
    flex: 0 0 auto;
}
.work-card h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.work-card .wc-tag { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-light); }
.work-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.65; }
.work-card ul { margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.work-card li { display: flex; gap: 9px; font-size: 0.78rem; color: var(--text-secondary); align-items: flex-start; }
.work-card li i { color: var(--primary-light); font-size: 0.7rem; margin-top: 5px; flex: 0 0 auto; }
.work-card .price-line {
    margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(16, 185, 129, 0.3);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.work-card .price-line strong { font-size: 1.25rem; font-weight: 900; color: var(--primary-light); }
.work-card .price-line span { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

/* ============================================================
   BANNER DEL SERVIDOR DE DISCORD
   ============================================================ */
.discord-banner {
    display: flex; align-items: center; gap: 16px;
    margin: 4px 0 22px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(139, 92, 246, 0.22), transparent 65%),
        linear-gradient(135deg, rgba(88, 101, 242, 0.24), rgba(10, 31, 26, 0.55));
    border: 1px solid rgba(88, 101, 242, 0.45);
    box-shadow: 0 18px 40px -20px rgba(88, 101, 242, 0.85);
    transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease, border-color 0.35s ease;
}

.discord-banner:hover {
    transform: translateY(-3px);
    border-color: rgba(122, 134, 255, 0.85);
    box-shadow: 0 24px 52px -22px rgba(88, 101, 242, 0.95);
}

.db-icon {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.3rem; color: #ffffff;
    background: linear-gradient(135deg, var(--discord), var(--violet));
    box-shadow: 0 10px 24px -10px rgba(88, 101, 242, 0.9);
}

.db-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.db-txt strong { font-size: 0.92rem; font-weight: 800; color: #ffffff; letter-spacing: -0.005em; }
.db-txt > span { font-size: 0.74rem; color: #c8d2ff; line-height: 1.5; }

.db-cta {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 800; color: #ffffff;
    background: var(--discord);
    padding: 9px 16px; border-radius: 50px;
    box-shadow: 0 8px 20px -10px rgba(88, 101, 242, 0.9);
}

@media (max-width: 560px) {
    .discord-banner { flex-wrap: wrap; padding: 16px; }
    .db-cta { width: 100%; justify-content: center; }
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    text-align: center; padding: 42px 20px 34px; margin-top: 24px;
    color: var(--text-dim); font-size: 0.78rem;
    border-top: 1px solid var(--border-light);
}

.footer .fname {
    font-weight: 800; letter-spacing: 0.24em; font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 10px;
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 14px 0 12px; }
.footer-links a {
    font-size: 0.74rem; font-weight: 600; color: var(--text-secondary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px;
    transition: color 0.3s ease, transform 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--primary-light); transform: translateY(-2px); }
.footer .fmeta { margin-top: 6px; font-size: 0.68rem; opacity: 0.85; }
.footer .fmeta i { color: var(--primary-light); margin-right: 5px; }

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */
.modal {
    display: flex; position: fixed; z-index: 9999; inset: 0;
    background: rgba(2, 8, 7, 0.92);
    backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s var(--ease-soft), visibility 0.45s, backdrop-filter 0.5s ease;
    padding: 20px;
}

.modal.show { opacity: 1; visibility: visible; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.modal-figure { position: relative; max-width: min(1200px, 94vw); }

.modal-content {
    max-width: 100%; max-height: 78vh;
    border-radius: 18px;
    border: 2px solid rgba(139, 92, 246, 0.6);
    object-fit: contain; background: #08070f;
    box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9), 0 0 60px rgba(139, 92, 246, 0.3);
    transform: scale(0.9) translateY(16px); opacity: 0;
    transition: transform 0.55s var(--ease-spring), opacity 0.4s ease;
    cursor: zoom-out;
    margin: 0 auto;
}

.modal.show .modal-content { transform: scale(1) translateY(0); opacity: 1; }

.modal-cap {
    margin-top: 12px; text-align: center;
    font-size: 0.74rem; font-weight: 600; color: #c8c2e8;
    letter-spacing: 0.01em;
}

.close-modal {
    position: fixed; top: 18px; right: 18px;
    color: #ffffff; font-size: 1.4rem; cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    transition: transform 0.5s var(--ease-spring), background 0.35s ease, border-color 0.35s ease;
    z-index: 2;
}

.close-modal:hover { transform: rotate(90deg) scale(1.1); background: var(--error); border-color: transparent; }

.modal-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff; font-size: 1rem; cursor: pointer;
    transition: background 0.3s ease, transform 0.4s var(--ease-spring);
    z-index: 2;
}
.modal-arrow:hover { background: rgba(139, 92, 246, 0.8); }
.modal-arrow--prev { left: 16px; }
.modal-arrow--next { right: 16px; }

@media (max-width: 640px) {
    .modal-arrow--prev { left: 6px; }
    .modal-arrow--next { right: 6px; }
    .modal-arrow { width: 40px; height: 40px; }
}

.modal-hint {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4); white-space: nowrap;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 130%);
    z-index: 10000;
    display: flex; align-items: center; gap: 10px;
    background: rgba(4, 20, 16, 0.94);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    padding: 12px 18px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.9), var(--glow-primary);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
    opacity: 0; pointer-events: none;
    max-width: calc(100vw - 36px);
}

.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { color: var(--primary-light); }

/* ============================================================
   SCROLL TOP
   ============================================================ */
.to-top {
    position: fixed; right: 18px; bottom: 22px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #032019; font-size: 1rem; border: none; cursor: pointer;
    box-shadow: 0 14px 34px -12px rgba(16, 185, 129, 0.95);
    opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.8);
    transition: opacity 0.45s ease, transform 0.55s var(--ease-spring), visibility 0.45s;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.09) rotate(-4deg); }

/* ============================================================
   RIPPLE / CONFETTI
   ============================================================ */
.ripple {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255, 255, 255, 0.4); transform: scale(0); opacity: 1;
    animation: rippleOut 0.75s var(--ease-out) forwards;
}

@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }

.confetti-piece {
    position: fixed; width: 9px; height: 14px; z-index: 10001;
    pointer-events: none; border-radius: 2px;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE FINO
   ============================================================ */
@media (max-width: 420px) {
    .topbar { padding: 8px 10px; gap: 6px; }
    .brand span { display: none; }
    .brand { border-right: none; padding-right: 0; margin-right: 0; }
    .nav-link { padding: 8px 10px; font-size: 0.71rem; }
    .nav-cta { padding: 8px 12px; font-size: 0.72rem; }
    .nav-cta span { display: none; }
    .section-title i { width: 36px; height: 36px; flex-basis: 36px; font-size: 1rem; }
    .btn { padding: 12px 18px; font-size: 0.82rem; }
    .stat .num { font-size: 1.55rem; }
}

/* ============================================================
   MÓVIL: galería legible sin recortes
   ============================================================ */
@media (max-width: 640px) {
    .gallery-stage { aspect-ratio: auto; }
    .gallery-stage img { height: auto; object-fit: contain; }
    .gal-caption {
        position: static;
        padding: 10px 12px 12px;
        background: rgba(8, 7, 15, 0.92);
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        font-size: 0.66rem;
    }
    .gal-caption .zoom-hint { display: none; }
    .gal-arrow { width: 36px; height: 36px; font-size: 0.78rem; opacity: 0.88; }
    .gallery-stage:hover .gal-arrow { opacity: 0.88; }
    .gal-thumb { width: 88px; height: 54px; }
    .dl-card { padding: 22px 16px; }
    .hash-box { padding: 8px 9px; gap: 6px; }
    .hash-box .hash-label { display: none; }
    .modal-content { max-height: 70vh; }
}

/* ============================================================
   SKIP LINK + VISTA PREVIA DE CATEGORÍAS
   ============================================================ */
.skip-link {
    position: fixed; top: -70px; left: 16px; z-index: 200;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #032019; font-weight: 800; font-size: 0.8rem;
    padding: 10px 18px; border-radius: 0 0 12px 12px;
    text-decoration: none;
    transition: top 0.25s var(--ease-out);
}

.skip-link:focus { top: 0; }

.cat-preview {
    display: flex; align-items: center; gap: 16px;
    margin-top: 16px;
    max-width: 760px;
    background: rgba(15, 14, 32, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 14px;
}

.cat-preview img {
    flex: 0 0 132px; width: 132px; height: 250px;
    object-fit: cover; object-position: top center;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow: var(--shadow-md);
    filter: brightness(1.22) contrast(1.04);
    cursor: zoom-in;
    transition: transform 0.5s var(--ease-out), filter 0.4s ease;
}

.cat-preview img:hover { transform: scale(1.02); filter: brightness(1.32) contrast(1.06); }

.cat-preview p { font-size: 0.74rem; color: #a9a3c9; line-height: 1.65; }
.cat-preview p i { color: var(--violet-light); margin-right: 7px; }
.cat-preview p strong { color: #e7e3f8; }

@media (min-width: 640px) {
    .cat-preview img { flex-basis: 210px; width: 210px; height: 370px; }
    .cat-preview p { font-size: 0.8rem; }
}
/* ============================================================
   ACCESIBILIDAD DE MOVIMIENTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html.reduce-motion { scroll-behavior: auto; }
    html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
    }
    html.reduce-motion .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
    html.reduce-motion .is-closed .bot-feature { filter: grayscale(0.72) !important; opacity: 0.82 !important; }
    html.reduce-motion .section.is-closed .ribbon span { opacity: 1; }
    html.reduce-motion .avatar { animation: none !important; }
    html.reduce-motion .cursor-aura { display: none !important; }
    html.reduce-motion .float-card { animation: none !important; }
    html.reduce-motion .ring .bar { stroke-dashoffset: 27.6 !important; }
    html.reduce-motion .cat-track { animation: none !important; }
}
