/* ============================================================
   ODISEA GAMES — Web corporativa
   Paleta del logo: naranja → magenta sobre negro cálido
   Tipografías: Evogria (display, la misma de KAOS RP) · Inter (texto)
   ============================================================ */

/* Evogria solo tiene un grosor. Se declara para todo el rango (100–900) para que
   los títulos en negrita usen la fuente tal cual y el navegador no le invente una
   "negrita falsa" que la deforma. Chakra Petch queda de respaldo mientras carga. */
@font-face {
    font-family: 'Evogria';
    src: url('../assets/fonts/evogria.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    /* Tipografías */
    --font-display: 'Evogria', 'Chakra Petch', system-ui, sans-serif;
    --font-text: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Marca — sacados del degradado del logo */
    --brand-1: #ffa73a;   /* naranja  (rama GAMING) */
    --brand-2: #f2683c;   /* naranja rojizo (centro) */
    --brand-3: #ec1e79;   /* magenta  (rama SOFTWARE) */

    --gradient: linear-gradient(100deg, var(--brand-1), var(--brand-2) 45%, var(--brand-3));
    --gradient-soft: linear-gradient(135deg, rgba(255,167,58,.15), rgba(236,30,121,.15));

    /* Fondo: negro cálido, no azulado — acompaña al naranja */
    --bg: #0a0809;
    --bg-soft: #120d10;
    --panel: rgba(24, 17, 20, 0.66);
    --panel-solid: #150f12;

    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 167, 58, 0.38);

    /* Texto */
    --text: #f4f1f2;
    --text-dim: #a49aa0;
    --text-faint: #6f666c;

    /* Sombras */
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-brand: 0 14px 40px rgba(236, 30, 121, 0.28), 0 0 30px rgba(255, 167, 58, 0.14);

    /* Layout */
    --maxw: 1180px;
    --radius: 16px;
    --radius-lg: 22px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Debe ir después de `img { display: block }`: los estilos de autor ganan
   a la regla [hidden] del navegador y si no, el logo oculto se vería roto. */
[hidden] { display: none !important; }

::selection { background: rgba(236, 30, 121, 0.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
    border-radius: 99px;
    border: 2px solid var(--bg);
}

.container {
    width: min(100% - 44px, var(--maxw));
    margin-inline: auto;
}

/* ============================================================
   FONDOS DECORATIVOS
   ============================================================ */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Manchas de color que respiran despacio */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.5;
}
.bg-glow-1 {
    width: 620px; height: 620px;
    top: -220px; left: -140px;
    background: radial-gradient(circle, rgba(255,167,58,.42), transparent 68%);
    animation: float-a 22s ease-in-out infinite alternate;
}
.bg-glow-2 {
    width: 680px; height: 680px;
    top: 8%; right: -240px;
    background: radial-gradient(circle, rgba(236,30,121,.38), transparent 68%);
    animation: float-b 26s ease-in-out infinite alternate;
}
.bg-glow-3 {
    width: 560px; height: 560px;
    bottom: -180px; left: 32%;
    background: radial-gradient(circle, rgba(242,104,60,.26), transparent 68%);
    animation: float-a 30s ease-in-out infinite alternate-reverse;
}

@keyframes float-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(70px, 50px) scale(1.14); }
}
@keyframes float-b {
    from { transform: translate(0, 0) scale(1.08); }
    to   { transform: translate(-60px, 70px) scale(1); }
}

/* Rejilla técnica muy sutil */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, transparent 30%, rgba(10,8,9,.85) 100%);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease,
                background .22s ease, border-color .22s ease, opacity .22s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(236,30,121,.4), 0 0 36px rgba(255,167,58,.24);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    background: rgba(255, 167, 58, 0.08);
    transform: translateY(-2px);
}

.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10, 8, 9, 0.82);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.nav-inner {
    width: min(100% - 44px, var(--maxw));
    margin-inline: auto;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Wordmark: se usa el logo si existe, si no el texto con degradado */
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

/* Arriba del todo sobra: el hero ya lleva el wordmark gigante. Aparece
   al bajar, cuando pasa a ser la única referencia de marca y el atajo
   para volver arriba. Se oculta con opacidad, no con display, para que
   el resto del nav no se mueva de sitio. */
.nav .brand {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.nav.scrolled .brand {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.brand-logo { height: 38px; width: auto; }
.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}
.brand-text .b-odisea { color: #fff; }
.brand-text .b-games {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dim);
    position: relative;
    transition: color .2s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

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

.nav-burger {
    display: none;
    width: 42px; height: 42px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-burger span {
    display: block;
    width: 17px; height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .28s ease, opacity .2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 22px 70px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 17px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 30px;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #35d86f;
    box-shadow: 0 0 10px rgba(53, 216, 111, .9);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* Wordmark grande del hero */
.hero-mark {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: .92;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}
.hero-mark img { margin-inline: auto; width: min(430px, 82vw); }
.hero-mark .m-odisea {
    display: block;
    font-size: clamp(46px, 10.5vw, 112px);
    color: #fff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.14);
}
.hero-mark .m-games {
    display: block;
    font-size: clamp(46px, 10.5vw, 112px);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 34px rgba(236, 30, 121, 0.34));
}

.hero-desc {
    max-width: 620px;
    font-size: clamp(15.5px, 2vw, 18.5px);
    color: var(--text-dim);
    margin: 0 auto 46px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

/* --- Llamadas a la acción del hero --- */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: center;
    margin-bottom: 34px;
}

/* Puntos fuertes: refuerzan sin robar atención a los botones */
.hero-points {
    list-style: none;
    margin: 0 0 46px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    font-size: 14px;
    color: var(--text-dim);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--brand-1); font-size: 12px; }

/* La rama de negocio: presente, pero claramente en segundo plano */
.hero-aside {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    margin-bottom: 48px;
    padding: 12px 20px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .028);
    font-size: 13.5px;
    color: var(--text-dim);
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.hero-aside i { color: var(--brand-3); font-size: 12px; transition: transform .25s ease; }
.hero-aside:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--brand-3) 40%, transparent);
    background: rgba(236, 30, 121, .07);
}
.hero-aside:hover i { transform: translateX(4px); }

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.hero-scroll-line {
    width: 1px; height: 42px;
    background: linear-gradient(180deg, var(--brand-2), transparent);
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 56px 0; }

.section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 54px;
}
.eyebrow {
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(29px, 4.6vw, 46px);
    margin-bottom: 16px;
}
.section-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-desc { color: var(--text-dim); font-size: 16.5px; }

/* ============================================================
   STATS
   ============================================================ */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(29px, 4.5vw, 42px);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 7px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: .04em;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.branch { margin-bottom: 66px; }
.branch:last-child { margin-bottom: 0; }

.branch-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.branch-badge {
    --b: var(--brand-1);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 99px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--b);
    background: color-mix(in srgb, var(--b) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--b) 32%, transparent);
}
.branch--software .branch-badge { --b: var(--brand-3); }
.branch-head p { font-size: 14.5px; color: var(--text-dim); }

/* 320px de mínimo -> máximo 3 columnas, así los 6 servicios quedan en 3+3 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.service-card {
    --s: var(--brand-1);
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, background .3s ease;
}
.branch--software .service-card { --s: var(--brand-3); }
.service-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--s) 40%, transparent);
    background: color-mix(in srgb, var(--s) 6%, var(--panel));
}

.service-icon {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 18px;
    color: var(--s);
    background: color-mix(in srgb, var(--s) 13%, transparent);
    margin-bottom: 16px;
    transition: transform .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-5deg); }

.service-card h3 { font-size: 18px; margin-bottom: 9px; }
.service-card p { font-size: 14.5px; color: var(--text-dim); }

/* --- Variante compacta: para los servicios que NO son el plato fuerte.
   Icono a la izquierda, texto más pequeño y sin etiquetas. --- */
/* Mismo número de columnas que la rejilla grande, para que el ritmo no se rompa.
   Lo que las hace secundarias es la densidad, no el ancho. */
.services-grid--compacta {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}
.service-card--compacta {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px;
}
.service-card--compacta .service-icon {
    width: 38px; height: 38px;
    font-size: 15px;
    border-radius: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.service-card--compacta h3 { font-size: 15.5px; margin-bottom: 5px; }
.service-card--compacta p { font-size: 13.5px; }

/* Sección atenuada: separa visualmente lo secundario de lo principal */
.section-alt {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .016) 12%,
        rgba(255, 255, 255, .016) 88%,
        rgba(255, 255, 255, 0) 100%);
}
.section-alt .section-title { font-size: clamp(25px, 3.6vw, 36px); }

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}
.service-tags span {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 99px;
    color: var(--text-faint);
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .32s ease;
}
.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 22px 55px rgba(0,0,0,.5);
}

/* La pieza destacada ocupa el ancho completo en pantallas grandes */
.work-card.featured { grid-column: 1 / -1; }
@media (min-width: 860px) {
    .work-card.featured { flex-direction: row; }
    .work-card.featured .work-visual { width: 44%; min-height: 300px; }
}

.work-visual {
    position: relative;
    min-height: 178px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,167,58,.2), transparent 65%),
        linear-gradient(135deg, #1a1116, #0f0a0d);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.work-card.featured .work-visual { border-bottom: none; }
@media (max-width: 859px) {
    .work-card.featured .work-visual { border-bottom: 1px solid var(--border); }
}
.work-visual img { width: min(62%, 210px); filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.work-visual .work-placeholder {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: .1em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .5;
}

.work-status {
    position: absolute;
    top: 14px; left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 500;
    color: #35d86f;
    background: rgba(53, 216, 111, .12);
    border: 1px solid rgba(53, 216, 111, .3);
    backdrop-filter: blur(6px);
}
.work-status .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #35d86f;
    box-shadow: 0 0 8px rgba(53,216,111,.9);
    animation: pulse 2s ease-in-out infinite;
}
.work-status.soon { color: var(--brand-1); background: rgba(255,167,58,.12); border-color: rgba(255,167,58,.3); }
.work-status.soon .dot { background: var(--brand-1); box-shadow: 0 0 8px rgba(255,167,58,.9); }

.work-body {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.work-kicker {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brand-2);
}
.work-body h3 { font-size: 23px; }
.work-body > p { font-size: 14.8px; color: var(--text-dim); }

.work-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 15px 0;
    margin-top: 2px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.work-metric-value {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.work-metric-label {
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: .05em;
}

.work-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.work-stack span {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 99px;
    color: var(--text-dim);
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.work-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ============================================================
   TIENDA (Tebex)
   ============================================================ */
.store-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -30px auto 34px;
    padding: 11px 20px;
    max-width: 620px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 167, 58, .3);
    background: rgba(255, 167, 58, .06);
    font-size: 13.5px;
    color: var(--brand-1);
    text-align: center;
}

/* --- Bloque por marca (OG Scripts, CN Labs…) --- */
.brand-block {
    --marca: var(--brand-1);
    margin-bottom: 58px;
}
.brand-block:last-child { margin-bottom: 0; }

/* El acento por marca: cada sello tiene su color de resplandor */
.brand--naranja { --marca: var(--brand-1); }
.brand--magenta { --marca: var(--brand-3); }
.brand--blanco  { --marca: #ffffff; }

.brand-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 180% at 0% 50%,
            color-mix(in srgb, var(--marca) 12%, transparent), transparent 70%),
        var(--panel);
    backdrop-filter: blur(12px);
}

/* Sello: la imagen si existe; si no, el nombre en texto (nunca se ve roto) */
.brand-mark {
    position: relative;
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .38);
    border: 1px solid color-mix(in srgb, var(--marca) 26%, transparent);
    box-shadow: 0 0 26px color-mix(in srgb, var(--marca) 16%, transparent);
}
.brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Respaldo: si el logo no existe, el onerror borra la imagen y entonces
   :has(img) deja de aplicar, así que aparece el nombre en texto. */
.brand-mark-txt {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--marca);
}
.brand-mark:has(img) .brand-mark-txt { display: none; }

/* Sin logo, el recuadro se ajusta al texto en vez de forzarlo dentro de un
   cuadrado: si no, un nombre largo como "OG SCRIPTS" se desborda. */
.brand-mark:not(:has(img)) {
    width: auto;
    min-width: 76px;
    padding: 12px 16px;
}

.brand-info { flex: 1; min-width: 0; }
.brand-info h3 {
    font-size: clamp(20px, 2.6vw, 26px);
    margin-bottom: 5px;
    letter-spacing: .01em;
}
.brand-info p { font-size: 14.5px; color: var(--text-dim); }

.brand-count {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 5px 13px;
    border-radius: 99px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--marca);
    background: color-mix(in srgb, var(--marca) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--marca) 30%, transparent);
}

/* --- Carrusel de scripts ---
   Scroll horizontal con anclaje nativo: sin librerías, funciona con dedo,
   con rueda y con las flechas. Las tarjetas se cortan a propósito para que
   se asome la siguiente y se vea que hay más. --- */
.store-carousel { position: relative; }

.store-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* aire para que la sombra al pasar el ratón no se recorte */
    padding: 6px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}
.store-track::-webkit-scrollbar { display: none; }

.store-track > * {
    flex: 0 0 82%;              /* móvil: se asoma la siguiente */
    scroll-snap-align: start;
    min-width: 0;
}
@media (min-width: 640px)  { .store-track > * { flex-basis: 46%; } }
@media (min-width: 1024px) { .store-track > * { flex-basis: 31.4%; } }

/* Degradados en los bordes: insinúan que el contenido sigue */
.store-carousel::before,
.store-carousel::after {
    content: '';
    position: absolute;
    top: 0; bottom: 14px;
    width: 46px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .3s ease;
}
.store-carousel::before { left: -2px;  background: linear-gradient(90deg, var(--bg), transparent); }
.store-carousel::after  { right: -2px; background: linear-gradient(270deg, var(--bg), transparent); }
.store-carousel.hay-antes::before { opacity: 1; }
.store-carousel.hay-despues::after { opacity: 1; }

/* Flechas: viven en la cabecera de la marca, no encima de las tarjetas */
.brand-nav { display: flex; gap: 8px; flex-shrink: 0; }
.brand-nav button {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid color-mix(in srgb, var(--marca) 30%, transparent);
    background: color-mix(in srgb, var(--marca) 9%, transparent);
    color: var(--marca);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .25s ease;
}
.brand-nav button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--marca) 20%, transparent);
    transform: translateY(-2px);
}
.brand-nav button:disabled { opacity: .28; cursor: default; }
/* Si todo cabe en pantalla, las flechas sobran */
.brand-nav[hidden] { display: none; }

/* La rejilla clásica se conserva por si alguna vez interesa volver a ella */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

@media (max-width: 700px) {
    /* Dos filas: arriba sello + textos, abajo contador + flechas.
       El flex-basis grande del bloque de texto es lo que empuja al
       contador y las flechas a la segunda línea; sin él, la descripción
       se queda con 100px y cae a una palabra por renglón. */
    .brand-head { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .brand-mark { width: 58px; height: 58px; padding: 7px; }
    .brand-info { flex: 1 1 190px; }
    .brand-info h3 { font-size: 20px; }
    .brand-info p { font-size: 13.5px; }
    .brand-count { order: 3; }
    .brand-nav { order: 4; margin-left: auto; }
    .brand-nav button { width: 34px; height: 34px; }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 46px rgba(0,0,0,.48);
}

.product-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(236,30,121,.18), transparent 66%),
        linear-gradient(135deg, #191016, #0f0a0d);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual i {
    font-size: 34px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .65;
}

.product-featured {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 11px;
    border-radius: 99px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 4px 16px rgba(236,30,121,.4);
}

.product-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.product-body h3 { font-size: 17.5px; }
.product-body > p {
    font-size: 14px;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.product-tags span {
    font-size: 11px;
    padding: 2.5px 9px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-faint);
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}
/* Precio escrito a mano ("Incluido con el lobby"): es una frase, no una
   cifra, así que va más pequeña y sin la tipografía de titular. */
.product-price--texto {
    font-family: var(--font-text);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-dim);
    max-width: 12ch;
}

.product-price small {
    display: block;
    font-family: var(--font-text);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-faint);
    letter-spacing: .04em;
    margin-top: 3px;
}

/* ============================================================
   PROCESO
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.process-step:hover { transform: translateY(-5px); border-color: var(--border-hover); }

.process-num {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .85;
    margin-bottom: 12px;
}
.process-step h3 { font-size: 17.5px; margin-bottom: 8px; }
.process-step p { font-size: 14.3px; color: var(--text-dim); }

/* ============================================================
   CONTACTO / CTA FINAL
   ============================================================ */
.cta-panel {
    position: relative;
    text-align: center;
    padding: 62px 34px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 70% 130% at 50% 0%, rgba(236,30,121,.16), transparent 62%),
        radial-gradient(ellipse 70% 130% at 50% 100%, rgba(255,167,58,.13), transparent 62%),
        var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cta-panel h2 { font-size: clamp(27px, 4.4vw, 42px); margin-bottom: 15px; }
.cta-panel > p {
    max-width: 540px;
    margin: 0 auto 32px;
    color: var(--text-dim);
    font-size: 16.5px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: center;
}

.cta-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.cta-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dim);
    transition: color .2s ease;
}
.cta-channel:hover { color: var(--text); }
.cta-channel i { color: var(--brand-2); font-size: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 44px 0 38px;
    margin-top: 90px;
    background: rgba(8, 6, 7, .5);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
}
.footer-copy { font-size: 13.5px; color: var(--text-faint); }
.footer-social { display: flex; gap: 11px; }
.footer-social a {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text-dim);
    font-size: 16px;
    transition: transform .24s ease, color .24s ease, border-color .24s ease, background .24s ease;
}
.footer-social a:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: var(--border-hover);
    background: rgba(255,167,58,.1);
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
/* Solo se oculta si el JS está activo — sin JS el contenido se ve igual */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 74px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 22px 22px;
        background: rgba(10, 8, 9, .97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
    .nav-links a::after { display: none; }
    .nav-burger { display: flex; }
    /* El CTA se queda como icono para no empujar la hamburguesa fuera */
    .nav-actions .btn-primary span { display: none; }
    .nav-actions .btn-primary { padding: 11px 14px; }

    .hero-cta { width: 100%; flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero-points { gap: 8px 18px; font-size: 13.5px; }
    .stats-band { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
    .section { padding: 78px 0; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 32px, var(--maxw)); }
    .nav-inner { width: min(100% - 32px, var(--maxw)); }
    .hero { padding-top: 112px; }
    .stats-band { padding: 26px 18px; }
    .work-metrics { gap: 16px; }
    .cta-panel { padding: 46px 22px; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LOGIN (Discord) + MERCADO PAGO: nav, modal, mis compras, toast
   ============================================================ */

/* --- Usuario en el nav --- */
.nav-user { display: flex; align-items: center; gap: 6px; }
.nav-user:empty { display: none; }
.nav-login span { display: inline; }
.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.nav-user-chip:hover { border-color: var(--border-hover); background: rgba(255, 167, 58, 0.08); }
.nav-user-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    background: var(--bg-soft);
    object-fit: cover;
}
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-out {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-dim);
    transition: .2s ease;
}
.nav-user-out:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* --- Precio en soles en la tarjeta --- */
.product-price-mp {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-1);
}
.product-price-mp i { font-size: 11px; }

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s ease;
}
.modal.show { opacity: 1; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 4, 0.72);
    backdrop-filter: blur(6px);
}
.modal-box {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 28px 26px;
    border-radius: var(--radius-lg);
    background: var(--panel-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(12px);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.modal.show .modal-box { transform: none; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--border-hover); }
.modal-box .eyebrow { margin-bottom: 8px; }
.modal-title { font-size: 24px; margin-bottom: 6px; padding-right: 36px; }
.modal-desc { color: var(--text-dim); font-size: 15px; margin: 0 0 20px; }
.modal-foot { margin-top: 20px; display: flex; justify-content: flex-end; }

/* --- Opciones de pago --- */
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    text-decoration: none;
    font-family: var(--font-text);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.pay-option:hover { border-color: var(--border-hover); background: rgba(255, 167, 58, 0.06); transform: translateY(-1px); }
.pay-option:disabled { opacity: .7; cursor: wait; transform: none; }
.pay-option--mp { border-color: rgba(0, 158, 227, 0.45); background: rgba(0, 158, 227, 0.08); }
.pay-option--mp:hover { border-color: rgba(0, 158, 227, 0.8); background: rgba(0, 158, 227, 0.14); }
.pay-option--mp .pay-icon { color: #4fc3ff; border-color: rgba(0, 158, 227, 0.4); background: rgba(0, 158, 227, 0.12); }
.pay-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--brand-1);
    font-size: 18px;
}
.pay-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-text strong { font-family: var(--font-display); font-size: 15.5px; }
.pay-text span { font-size: 13px; color: var(--text-dim); }
.pay-price { font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.pay-note {
    display: flex;
    gap: 9px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 167, 58, .3);
    background: rgba(255, 167, 58, .06);
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
}
.pay-note i { color: var(--brand-1); margin-top: 3px; }

/* --- Mis compras --- */
.orders-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.orders-empty { color: var(--text-dim); font-size: 14.5px; margin: 8px 0; }
.order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}
.order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-main strong { font-family: var(--font-display); font-size: 15px; }
.order-main span { color: var(--text-faint); font-size: 12.5px; }
.order-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.order-price small { font-family: var(--font-text); font-weight: 500; font-size: 12px; color: var(--text-faint); }
.order-status {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
}
.order-status.is-ok { color: #7ff0a6; border-color: rgba(53, 216, 111, .4); background: rgba(53, 216, 111, .1); }
.order-status.is-wait { color: #ffd77a; border-color: rgba(255, 205, 90, .4); background: rgba(255, 205, 90, .08); }
.order-status.is-error { color: #ff9aa8; border-color: rgba(255, 90, 110, .4); background: rgba(255, 90, 110, .08); }
.order-help {
    grid-column: 1 / -1;
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.order-help a { color: var(--brand-1); font-weight: 600; text-decoration: none; }
.order-help a:hover { text-decoration: underline; }

/* --- Toast --- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 950;
    transform: translate(-50%, 20px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(560px, calc(100vw - 32px));
    padding: 14px 16px 14px 18px;
    border-radius: 14px;
    background: rgba(21, 15, 18, 0.97);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    transition: transform .25s ease, opacity .25s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast > i { font-size: 18px; flex-shrink: 0; }
.toast-ok > i { color: #7ff0a6; }
.toast-error > i { color: #ff8a8a; }
.toast-wait > i { color: #ffd77a; }
.toast-info > i { color: var(--brand-1); }
.toast button { margin-left: 4px; background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 15px; padding: 4px; }
.toast button:hover { color: var(--text); }

@media (max-width: 900px) {
    .nav-user-name { display: none; }
    .nav-login span { display: none; }
    .nav-user-chip { padding-right: 4px; }
}
@media (max-width: 620px) {
    .modal { padding: 12px; }
    .modal-box { padding: 26px 18px 20px; }
    .pay-option { grid-template-columns: auto 1fr; }
    .pay-price { grid-column: 2; justify-self: start; }
}


/* ============================================================
   PAGO LIBRE / DONACIONES ("Ingresa tu monto")
   ============================================================ */
.section-tight { padding-top: 0; }
.free-pay {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 38px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 70% 120% at 0% 50%, rgba(255, 167, 58, .10), transparent 65%),
        var(--panel);
    backdrop-filter: blur(12px);
}
.free-pay-text h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.free-pay-text > p { color: var(--text-dim); font-size: 15.5px; margin: 0 0 18px; }
.free-pay-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text); }
.free-pay-points li { display: flex; align-items: center; gap: 9px; }
.free-pay-points i { color: var(--brand-1); font-size: 12px; }

.free-pay-form { display: flex; flex-direction: column; gap: 8px; }
.free-label { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .03em; color: var(--text-dim); margin-top: 6px; }
.free-label span { font-weight: 500; color: var(--text-faint); }
.free-amount-row {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .35);
    overflow: hidden;
    transition: border-color .2s ease;
}
.free-amount-row:focus-within { border-color: var(--border-hover); }
.free-currency { display: flex; border-right: 1px solid var(--border); }
.free-currency button {
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--text-faint);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: .2s ease;
}
.free-currency button.active { color: #fff; background: var(--gradient); }
.free-amount-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    outline: none;
}
.free-amount-row input::placeholder { color: var(--text-faint); }
.free-amount-row input::-webkit-outer-spin-button, .free-amount-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.free-hint { margin: 0; font-size: 13px; color: var(--brand-1); min-height: 18px; }
#free-concept {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .35);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease;
}
#free-concept:focus { border-color: var(--border-hover); }
.free-pay-form .btn { margin-top: 10px; }
.free-login-note { margin: 0; font-size: 12.5px; color: var(--text-faint); display: flex; gap: 7px; align-items: center; }

/* Sin esto, en móvil el formulario no encoge: el botón (sin saltos de línea) y los
   campos ensanchaban toda la página y la hamburguesa del menú quedaba fuera de pantalla. */
.free-pay > * { min-width: 0; }
#free-concept { width: 100%; min-width: 0; }
.free-pay-form .btn { white-space: normal; text-align: center; }

@media (max-width: 860px) {
    .free-pay { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 22px; }
}

/* ============================================================
   PEDS Y PROPS — planes, catálogo y visor de imágenes
   ============================================================ */

/* --- Los tres planes --- */
.ped-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 80% 140% at 100% 0%, rgba(236, 30, 121, .10), transparent 62%),
        var(--panel);
    backdrop-filter: blur(12px);
}
.ped-plan {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .3);
    transition: border-color .22s ease, background .22s ease;
}
.ped-plan:hover { border-color: var(--border-hover); background: rgba(0, 0, 0, .42); }
.ped-plan-dot {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}
.ped-plan--verde .ped-plan-dot { background: linear-gradient(145deg, #3ddc84, #17a35c); box-shadow: 0 0 18px rgba(61, 220, 132, .35); }
.ped-plan--azul .ped-plan-dot { background: linear-gradient(145deg, #59a7ff, #2563eb); box-shadow: 0 0 18px rgba(89, 167, 255, .35); }
.ped-plan--diamante .ped-plan-dot { background: linear-gradient(145deg, #9be8ff, #49b6e8); box-shadow: 0 0 18px rgba(155, 232, 255, .4); }
.ped-plan-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ped-plan-text strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--text);
}
.ped-plan-text span { font-size: 14px; color: var(--text-dim); }
.ped-plan-price {
    font-family: var(--font-display);
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: .01em;
    white-space: nowrap;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ped-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    padding: 15px 20px;
    border-radius: 14px;
    border: 1px solid rgba(88, 101, 242, .45);
    background: rgba(88, 101, 242, .12);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: center;
    transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.ped-cta:hover { background: rgba(88, 101, 242, .22); border-color: rgba(88, 101, 242, .8); transform: translateY(-2px); }
.ped-cta i { font-size: 18px; color: #8b96f8; }

/* --- Filtros (solo salen si hay peds y props a la vez) --- */
.ped-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ped-filters:empty { display: none; }
.ped-filter {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}
.ped-filter:hover { color: var(--text); border-color: var(--border-hover); }
.ped-filter.active { color: var(--brand-1); border-color: color-mix(in srgb, var(--brand-1) 45%, transparent); background: color-mix(in srgb, var(--brand-1) 12%, transparent); }

/* --- Catálogo --- */
.ped-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.ped-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--panel);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.ped-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.ped-card.is-featured { border-color: color-mix(in srgb, var(--brand-1) 40%, transparent); }

.ped-visual {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    cursor: zoom-in;
    background:
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 167, 58, .16), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .28));
}
.ped-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.ped-card:hover .ped-visual img { transform: scale(1.06); }
.ped-visual.sin-img::after {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: var(--text-faint);
}
.ped-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 11px;
    border-radius: 99px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ped-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .55);
    color: var(--text-dim);
    font-size: 12px;
    opacity: 0;
    transition: opacity .22s ease, color .22s ease;
}
.ped-card:hover .ped-zoom, .ped-visual:focus-visible .ped-zoom { opacity: 1; }
.ped-zoom:hover { color: var(--text); }

.ped-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.ped-body h3 { font-size: 18px; letter-spacing: .01em; }
.ped-body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.ped-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ped-tags span {
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    font-size: 11.5px;
    color: var(--text-dim);
}
.ped-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.ped-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    color: var(--text);
    line-height: 1.1;
}
.ped-price small {
    font-family: var(--font-text);
    font-size: 11px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: .01em;
    color: var(--text-faint);
}
.ped-nota {
    margin: 22px 0 0;
    font-size: 13.5px;
    color: var(--text-faint);
    text-align: center;
}

/* --- Visor de imágenes --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 960;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(5, 3, 4, .93);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .2s ease;
}
.lightbox.show { opacity: 1; }
.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-height: 100%;
}
.lightbox-figure img {
    max-width: min(760px, 100%);
    max-height: calc(100vh - 140px);
    object-fit: contain;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .7));
}
.lightbox-figure figcaption {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
    text-align: center;
}
.lightbox-nav, .lightbox-close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: 17px;
    cursor: pointer;
    transition: .2s ease;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .12); border-color: var(--border-hover); }
.lightbox-close { position: absolute; top: 20px; right: 20px; z-index: 2; }

@media (max-width: 720px) {
    .ped-plan { grid-template-columns: auto 1fr; gap: 12px 14px; padding: 14px 16px; }
    .ped-plan-price { grid-column: 2; justify-self: start; font-size: 18px; }
    .ped-plans { padding: 14px; }
    .ped-cta { font-size: 13.5px; padding: 14px 16px; }
    .ped-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
    .ped-visual { height: 190px; padding: 12px; }
    .ped-body { padding: 13px 14px 15px; gap: 7px; }
    .ped-body h3 { font-size: 16px; }
    .ped-body p { display: none; }
    .ped-foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .ped-foot .btn { width: 100%; }
    .lightbox { padding: 14px; gap: 6px; }
    .lightbox-nav, .lightbox-close { width: 40px; height: 40px; font-size: 15px; }
    .lightbox-figure img { max-height: calc(100vh - 170px); }
}


/* ============================================================
   REDISEÑO OCT. 2026 · flujo de venta
   Hero, valor, oferta, por qué, pruebas, FAQ, soporte y legal
   ============================================================ */

/* --- Hero: marca pequeña + titular que vende --- */
.hero-brand { margin: 0 0 18px; }
.hero-brand img { margin-inline: auto; width: min(220px, 56vw); }
.hero-brand .brand-text { font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .14em; }
.hero-title {
    max-width: 760px;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0 auto 22px;
    text-wrap: balance;
}
.hero-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 30px rgba(236, 30, 121, 0.3));
}
.hero .hero-desc { margin-bottom: 38px; }

.hero-trust {
    list-style: none;
    margin: 0 0 46px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 0;
    font-size: 14px;
    color: var(--text-dim);
}
.hero-trust:empty { display: none; }
.hero-trust li { padding: 0 22px; }
.hero-trust li + li { border-left: 1px solid var(--border); }
.hero-trust strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin-right: 4px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Tarjetas de icono (propuesta de valor y "por qué") --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.value-card, .why-card {
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
    transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.value-card:hover, .why-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.value-card-icon, .why-card-icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 19px;
    color: var(--brand-1);
    background: var(--gradient-soft);
    border: 1px solid rgba(255, 167, 58, .22);
}
.value-card h3, .why-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.value-card p, .why-card p { font-size: 14.3px; color: var(--text-dim); line-height: 1.6; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}
.why-card { background: rgba(255, 255, 255, .025); }

/* --- Franja "a medida" --- */
.custom-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 34px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 167, 58, .32);
    background: rgba(255, 167, 58, .035);
}
.custom-strip-text { min-width: 0; }
.custom-strip-text .eyebrow { margin-bottom: 8px; }
.custom-strip-text h3 { font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 6px; }
.custom-strip-text > p { color: var(--text-dim); font-size: 15px; margin-bottom: 14px; }
.custom-strip-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.custom-strip-tags:empty { display: none; }
.custom-strip-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    font-size: 12.5px;
    color: var(--text-dim);
}
.custom-strip-tags i { color: var(--brand-1); font-size: 11px; }
.custom-strip .btn { flex-shrink: 0; }

/* --- Pruebas: reseñas --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}
.review-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
}
.review-stars { display: flex; gap: 3px; color: var(--brand-1); font-size: 13px; }
.review-stars .fa-regular { color: var(--text-faint); }
.review-card blockquote {
    margin: 0;
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-card figcaption strong { display: block; font-family: var(--font-display); font-size: 15px; }
.review-card figcaption span { display: block; font-size: 13px; color: var(--text-dim); }
.review-avatar {
    position: relative;
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient);
}
.review-card .review-avatar > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}
.review-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- FAQ --- */
.container-narrow { width: min(100% - 44px, 820px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
    transition: border-color .25s ease;
    scroll-margin-top: 90px;
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--brand-1);
    transition: transform .25s ease;
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--brand-1); outline-offset: -2px; border-radius: 14px; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--text-dim); font-size: 15px; line-height: 1.7; }

/* --- Contacto --- */
.cta-panel .eyebrow { margin-bottom: 12px; }

/* --- Footer en columnas --- */
.footer { padding: 56px 0 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}
.footer-col > a:not(.brand) {
    font-size: 14px;
    color: var(--text-dim);
    transition: color .2s ease;
    width: fit-content;
}
.footer-col > a:not(.brand):hover { color: var(--text); }
.footer-about p { font-size: 14px; color: var(--text-dim); max-width: 300px; }
.footer-about .footer-social { margin-top: 4px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.footer-legal { font-size: 12.5px; color: var(--text-faint); max-width: 560px; }

/* --- Responsive del rediseño --- */
@media (max-width: 1000px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .custom-strip { flex-direction: column; align-items: stretch; padding: 24px 20px; }
    .custom-strip .btn { width: 100%; }
    .hero-trust li { padding: 0 14px; }
}
@media (max-width: 620px) {
    .value-grid, .why-grid, .reviews-grid { grid-template-columns: 1fr; }
    .container-narrow { width: min(100% - 32px, 820px); }
    .faq-item summary { padding: 16px 18px; font-size: 15.5px; }
    .faq-answer { padding: 0 18px 18px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   NUESTRO SERVIDOR (KAOS) EN LA PORTADA
   ============================================================ */
.hero-server {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    margin: -14px auto 34px;
    padding: 10px 18px 10px 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
    text-align: left;
    transition: border-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.hero-server:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.hero-server img {
    width: 54px; height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, .35);
    padding: 4px;
}
.hs-text { display: flex; flex-direction: column; line-height: 1.2; }
.hs-kicker {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.hs-text strong { font-family: var(--font-display); font-size: 19px; margin: 2px 0; }
.hs-label { font-size: 12.5px; color: var(--text-dim); }
.hs-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid rgba(53, 216, 111, .35);
    background: rgba(53, 216, 111, .1);
    color: #8ff0b0;
    font-size: 13px;
    font-weight: 500;
}
.hs-live b { font-family: var(--font-display); font-size: 15px; color: #fff; }
.hs-live .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #35d86f;
    box-shadow: 0 0 10px rgba(53, 216, 111, .9);
    animation: pulse 2s ease-in-out infinite;
}
.hs-go { color: var(--text-faint); font-size: 12px; }

/* ============================================================
   PRECIOS REBAJADOS
   ============================================================ */
.sale-badge {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 99px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
/* En los scripts, "Destacado" va arriba a la derecha: el descuento se pone a la izquierda */
.product-visual .sale-badge { right: auto; left: 12px; }
.price-old {
    display: block;
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-faint);
    text-decoration: line-through;
    line-height: 1.2;
}

/* --- Peds: ver catálogo completo --- */
.ped-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.ped-more-wrap:has(#ped-more[hidden]) { display: none; }

/* ============================================================
   BARRA DE PROMO (va dentro del menú fijo)
   ============================================================ */
.promo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 38px;
    padding: 6px 16px;
    font-size: 13.5px;
    color: var(--text);
    text-align: center;
    background: #140d1f;
    border-bottom: 1px solid rgba(255, 123, 28, .28);
}
.promo-icon { width: 20px; height: 20px; flex-shrink: 0; }
.promo-icon .pk-body { fill: #ff7b1c; }
.promo-icon .pk-stem { fill: #7fb23f; }
.promo-icon .pk-face { fill: #2a1206; }
.promo-text { font-weight: 600; }
.promo-left {
    padding: 2px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255, 217, 138, .28);
    color: #ffd98a;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.promo-link {
    color: #ff9a4a;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: rgba(255, 154, 74, .45);
    text-underline-offset: 3px;
    transition: color .2s ease;
}
.promo-link:hover { color: #ffd98a; }
.promo-link:focus-visible { outline: 2px solid #ffd98a; outline-offset: 3px; border-radius: 3px; }

body.con-promo .hero { padding-top: 172px; }
@media (max-width: 900px) {
    body.con-promo .nav-links { top: calc(74px + 38px); }
}
@media (max-width: 620px) {
    .promo-bar { font-size: 12px; gap: 8px; padding: 6px 12px; }
    .promo-link { display: none; }
    body.con-promo .hero { padding-top: 152px; }
    body.con-promo .nav-links { top: calc(74px + 52px); }
    .hero-server { padding: 12px; }
}

/* ============================================================
   TEMA HALLOWEEN · "Los Santos de noche"
   Una sola escena memorable en el hero: cielo violeta, luna de cosecha
   saliendo detrás de la ciudad, niebla y murciélagos. El resto de la
   página solo cambia de paleta y se queda tranquila.
   Los tokens se redefinen enteros: --gradient se calcula donde se declara.
   ============================================================ */
body.tema-halloween {
    --brand-1: #ff8a2a;
    --brand-2: #ff7b1c;
    --brand-3: #9b5cff;
    --gradient: linear-gradient(100deg, #ffb347, #ff7b1c 50%, #9b5cff);
    --gradient-soft: linear-gradient(135deg, rgba(255, 123, 28, .16), rgba(155, 92, 255, .16));
    --bg: #0e0a16;
    --bg-soft: #140e1f;
    --panel: rgba(26, 17, 38, 0.72);
    --panel-solid: #171021;
    --border: rgba(185, 167, 217, 0.13);
    --border-hover: rgba(255, 123, 28, 0.45);
    --text: #f2eadf;
    --text-dim: #b4a8bf;
    --text-faint: #7d7189;
    --shadow-brand: 0 14px 40px rgba(155, 92, 255, 0.28), 0 0 30px rgba(255, 123, 28, 0.2);
}
body.tema-halloween ::selection { background: rgba(155, 92, 255, .42); }
body.tema-halloween .bg-grid { display: none; }
body.tema-halloween .bg-glow-1 { background: radial-gradient(circle, rgba(110, 60, 190, .34), transparent 68%); }
body.tema-halloween .bg-glow-2 { background: radial-gradient(circle, rgba(255, 150, 60, .14), transparent 68%); }
body.tema-halloween .bg-glow-3 { background: radial-gradient(circle, rgba(255, 110, 30, .1), transparent 68%); }
body.tema-halloween .hero-badge .dot { background: #ff8a2a; box-shadow: 0 0 10px rgba(255, 138, 42, .9); }

/* --- La escena --- */
.hero-deco { display: none; }
body.tema-halloween .hero {
    overflow: hidden;
    isolation: isolate;
    padding-bottom: clamp(220px, 23vw, 310px);
    background: linear-gradient(180deg, #0f0a1a 0%, #1a1130 46%, #2a1946 74%, #34204f 86%, #1a1029 100%);
}
body.tema-halloween .hero-scroll { display: none; }
/* La ciudad cierra el hero: la franja de valor necesita aire debajo */
body.tema-halloween #valor { padding-top: 48px; }
body.tema-halloween .hero-deco {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
/* Estrellas: puntos sueltos que se apagan hacia el horizonte */
body.tema-halloween .hero-deco::before {
    content: '';
    position: absolute;
    inset: 0 0 35% 0;
    background-image:
        radial-gradient(1px 1px at 22px 34px, rgba(255, 255, 255, .8) 50%, transparent 52%),
        radial-gradient(1px 1px at 131px 88px, rgba(255, 255, 255, .55) 50%, transparent 52%),
        radial-gradient(1.4px 1.4px at 207px 21px, rgba(255, 240, 210, .9) 50%, transparent 52%),
        radial-gradient(1px 1px at 76px 142px, rgba(255, 255, 255, .45) 50%, transparent 52%),
        radial-gradient(1px 1px at 251px 119px, rgba(255, 255, 255, .6) 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 168px 166px, rgba(255, 255, 255, .5) 50%, transparent 52%);
    background-size: 280px 190px;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    opacity: .7;
}
/* Luna de cosecha saliendo detrás de la ciudad, a la derecha (lejos del texto) */
.hero-deco .moon {
    position: absolute;
    right: -5%;                 /* cortada por el borde: encuadre de cine y lejos del texto */
    bottom: clamp(50px, 6vw, 90px);
    width: clamp(180px, 21vw, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 62% 38%, rgba(190, 115, 45, .16) 0 4%, transparent 9%),
        radial-gradient(circle at 40% 64%, rgba(190, 115, 45, .14) 0 6%, transparent 12%),
        radial-gradient(circle at 28% 34%, rgba(190, 115, 45, .1) 0 3%, transparent 7%),
        radial-gradient(circle at 72% 70%, rgba(190, 115, 45, .1) 0 2%, transparent 6%),
        radial-gradient(circle at 36% 32%, #fff3d2 0, #ffdf9c 38%, #f5b85e 72%, #dd8a3a 100%);
    box-shadow:
        0 0 70px 18px rgba(255, 196, 110, .28),
        0 0 220px 80px rgba(255, 140, 50, .16);
    animation: moon-rise 2.2s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes moon-rise {
    from { transform: translateY(70px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
/* Ciudad: silueta generada (assets/halloween/skyline.svg) con ventanas encendidas */
.hero-deco .skyline {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: clamp(170px, 19vw, 270px);
    background: url("../assets/halloween/skyline.svg") center bottom / cover no-repeat;
    z-index: 2;
}
/* Niebla baja que pasa por delante de la ciudad */
.hero-deco .fog {
    position: absolute;
    left: -25%;
    width: 150%;
    height: 150px;
    z-index: 3;
    filter: blur(10px);
}
.hero-deco .fog-1 {
    bottom: 18px;
    background:
        radial-gradient(ellipse 30% 55% at 25% 60%, rgba(190, 172, 222, .17), transparent 70%),
        radial-gradient(ellipse 26% 50% at 70% 55%, rgba(190, 172, 222, .13), transparent 70%);
    animation: fog-drift 46s ease-in-out infinite alternate;
}
.hero-deco .fog-2 {
    bottom: -36px;
    background:
        radial-gradient(ellipse 34% 60% at 45% 50%, rgba(170, 150, 210, .16), transparent 70%),
        radial-gradient(ellipse 22% 45% at 88% 60%, rgba(170, 150, 210, .12), transparent 70%);
    animation: fog-drift 62s ease-in-out infinite alternate-reverse;
}
@keyframes fog-drift { to { transform: translateX(14%); } }

/* Murciélagos (los crea js/app.js dentro de la escena): siluetas que cruzan la luna */
.bats { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.bat {
    position: absolute;
    left: 0;
    top: var(--y);
    width: calc(54px * var(--s));
    color: #0a0610;
    filter: drop-shadow(0 0 1px rgba(255, 210, 140, .45));
    animation: bat-fly var(--t) linear var(--d) infinite;
}
.bat svg { display: block; width: 100%; fill: currentColor; animation: bat-flap .32s ease-in-out infinite alternate; }
@keyframes bat-fly {
    0%   { transform: translate(-12vw, 0); }
    25%  { transform: translate(20vw, -26px); }
    50%  { transform: translate(52vw, 18px); }
    75%  { transform: translate(84vw, -16px); }
    100% { transform: translate(112vw, 0); }
}
@keyframes bat-flap { to { transform: scaleY(.45); } }

/* --- El titular, iluminado desde abajo como con una calabaza encendida --- */
body.tema-halloween .hero-title {
    color: #f2eadf;
    text-shadow:
        0 2px 0 rgba(30, 10, 0, .35),
        0 8px 22px rgba(255, 123, 28, .28),
        0 20px 54px rgba(255, 123, 28, .14);
    animation: candle 1.8s ease-out .2s both;
}
body.tema-halloween .hero-title .grad {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: inherit;
    filter: none;
}
/* Al cargar, la "vela" titila un momento y se queda encendida */
@keyframes candle {
    0%   { opacity: 0; text-shadow: none; }
    18%  { opacity: 1; text-shadow: 0 2px 0 rgba(30,10,0,.35), 0 10px 34px rgba(255,123,28,.6), 0 26px 90px rgba(255,123,28,.34); }
    30%  { text-shadow: 0 2px 0 rgba(30,10,0,.35), 0 10px 18px rgba(255,123,28,.18), 0 26px 50px rgba(255,123,28,.1); }
    44%  { text-shadow: 0 2px 0 rgba(30,10,0,.35), 0 10px 30px rgba(255,123,28,.5), 0 26px 80px rgba(255,123,28,.28); }
    56%  { text-shadow: 0 2px 0 rgba(30,10,0,.35), 0 10px 22px rgba(255,123,28,.26), 0 26px 60px rgba(255,123,28,.16); }
    100% { opacity: 1; }
}

/* --- Precios rebajados: una etiqueta de color calabaza, como una pegatina --- */
body.tema-halloween .sale-badge {
    background: #ff7b1c;
    color: #1f0d02;
    transform: rotate(-4deg);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .35);
}
body.tema-halloween .product-card.is-sale,
body.tema-halloween .ped-card.is-sale { border-color: rgba(255, 123, 28, .26); }

@media (max-width: 720px) {
    .hero-deco .moon { right: -10%; width: 150px; bottom: 50px; }
    .hero-deco .fog { height: 110px; }
    body.tema-halloween .hero { padding-bottom: 230px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-deco .moon, .hero-deco .fog, body.tema-halloween .hero-title, .bat, .bat svg { animation: none; }
}


/* ============================================================
   TIENDA, AL ESTILO DE LAS GRANDES (oct. 2026)
   La imagen del script entera, sin recortes, con los frameworks encima.
   ============================================================ */
.product-visual { aspect-ratio: 3 / 2; }
.product-visual.has-img { background: #07050a; }
/* Copia difuminada de la propia imagen: rellena los lados de las cuadradas sin barras negras */
.product-visual .pv-bg {
    position: absolute;
    inset: -12%;
    width: 124%; height: 124%;
    object-fit: cover;
    filter: blur(22px) saturate(1.2) brightness(.55);
    transform: scale(1.05);
}
.product-visual .pv-img {
    position: absolute;    /* en la rejilla, height:100% no respeta el aspect-ratio */
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.product-card:hover .pv-img { transform: scale(1.04); }

/* Frameworks: abajo a la izquierda, sobre la imagen */
.fw-chips {
    position: absolute;
    left: 10px; bottom: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.fw-chips span {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(8, 6, 10, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
}

/* Botón de vídeo */
.pv-play {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 2;
    width: 58px; height: 58px;
    margin: -29px 0 0 -29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(8, 6, 10, .6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}
.pv-play i { margin-left: 3px; }
.pv-play:hover { transform: scale(1.08); background: var(--brand-2); }
.pv-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Ventana de vídeo */
.modal-box.modal-box--video { width: min(960px, 94vw); max-width: none; }
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   SOPORTE FLOTANTE
   ============================================================ */
.float-support {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px 0 16px;
    border-radius: 99px;
    background: #5865f2;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), background .2s ease;
}
.float-support i { font-size: 20px; }
.float-support:hover { transform: translateY(-3px); background: #4752c4; }
.float-support:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 620px) {
    /* En móvil solo el icono, para no tapar botones */
    .float-support { width: 52px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
    .float-support span { display: none; }
}

/* ============================================================
   PIE: MÉTODOS DE PAGO
   ============================================================ */
.footer-pay { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.footer-pay-title { font-size: 12.5px; color: var(--text-dim); }
.footer-pay-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 44px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 21px;
}
.pay-chip--txt { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; }
.pay-chip--yape { color: #c58cff; }
.pay-chip--plin { color: #3fd1d4; }
.pay-chip--mp   { color: #4fc3ff; }
.footer-pay-note { font-size: 12px; color: var(--text-faint); }


/* ============================================================
   ESTUDIO A MEDIDA (oct. 2026): los servicios mandan, la tienda va después
   ============================================================ */
/* Servicios: los dos primeros (servidor completo y scripts a medida) más anchos;
   el resto de tres en tres, y la última fila centrada, sin huecos raros */
.services-grid--main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}
.services-grid--main > .service-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: calc((100% - 36px) / 3);
}
.services-grid--main > .service-card:nth-child(-n+2) {
    flex-basis: calc((100% - 18px) / 2);   /* las dos juntas llenan la primera fila */
    max-width: calc((100% - 18px) / 2);
    padding: 30px 30px 28px;
}
.services-grid--main > .service-card:nth-child(-n+2) h3 { font-size: 21px; }
.services-grid--main > .service-card:nth-child(-n+2) p { font-size: 15.5px; }
.service-cta {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-1);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand-1) 40%, transparent);
    text-underline-offset: 4px;
    transition: color .2s ease;
}
.service-cta:hover { color: var(--text); }
.service-cta:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 900px) {
    .services-grid--main > .service-card,
    .services-grid--main > .service-card:nth-child(-n+2) { max-width: calc((100% - 18px) / 2); flex-basis: 280px; }
}
@media (max-width: 620px) {
    .services-grid--main > .service-card,
    .services-grid--main > .service-card:nth-child(-n+2) { max-width: 100%; }
}

/* Tienda en segundo plano: cabecera a la izquierda y más pequeña, separada por una línea */
.section-shop { border-top: 1px solid var(--border); }
.section-shop + .section-shop { border-top: 0; padding-top: 20px; }
.section-head--left { text-align: left; margin-left: 0; max-width: 640px; margin-bottom: 34px; }
.section-head--left .section-title { font-size: clamp(25px, 3.4vw, 34px); }


/* ============================================================
   LOGO DE IMAGEN (sustituye al texto cuando hay logo; el de la promo manda en temporada)
   ============================================================ */
.nav .brand-logo { height: 44px; }
.footer .brand-logo { height: 72px; }
body.con-logo .hero-brand { margin-bottom: 22px; }
body.con-logo .hero-brand img {
    width: min(250px, 58vw);
    height: auto;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .55));
}
@media (max-width: 620px) {
    .nav .brand-logo { height: 38px; }
}

/* Evogria es más ancha que Chakra Petch: en móvil los botones pueden partir línea
   en vez de salirse de la pantalla (p. ej. "Ver catálogo completo (9 modelos)") */
@media (max-width: 620px) {
    .btn { white-space: normal; text-align: center; max-width: 100%; }
}


/* ============================================================
   SELECTOR DE IDIOMA (ES / EN)
   ============================================================ */
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
}
.lang-switch button {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: #fff; background: var(--gradient); }
.lang-switch button:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
@media (max-width: 620px) {
    .lang-switch button { min-width: 30px; padding: 0 6px; font-size: 12px; }
}
