/* ═══════════════════════════════════════════════════
   DineroAbsurdo.com — Premium Money Design
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg: #070a14;
    --bg-soft: #0c1020;
    --panel: rgba(16, 20, 36, .62);
    --panel-strong: rgba(12, 16, 30, .85);
    --line: rgba(245, 166, 35, .1);
    --line-soft: rgba(255, 255, 255, .07);

    --text: #faf5e4;
    --text-strong: #fff;
    --text-soft: #c8c0b4;
    --muted: #8a8078;

    --gold: #f5c542;
    --gold-light: #fde68a;
    --gold-dark: #c6941a;
    --gold-glow: rgba(245, 197, 66, .18);
    --money: #34d399;
    --money-light: #6ee7b7;
    --money-glow: rgba(52, 211, 153, .14);
    --danger: #fb7185;

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 24px;
    --radius-lg: 32px;
    --radius-full: 999px;

    --shadow: 0 24px 80px rgba(0, 0, 0, .45);
    --shadow-gold: 0 10px 40px rgba(245, 197, 66, .2);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .3);

    --z-base: 1;
    --z-header: 50;
    --z-overlay: 80;
    --z-modal: 100;
    --z-toast: 200;

    --ease: .25s cubic-bezier(.4, 0, .2, 1);
    --ease-slow: .4s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at 22% 18%, rgba(245, 197, 66, .1), transparent 30%),
        radial-gradient(circle at 72% 12%, rgba(52, 211, 153, .07), transparent 28%),
        radial-gradient(circle at 50% 65%, rgba(245, 166, 35, .05), transparent 22%),
        linear-gradient(180deg, #060912 0%, #0a0e1c 30%, #080c18 60%, #0c1020 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Vignette inferior */
body::after {
    content: "";
    position: fixed;
    inset: auto 0 0 0;
    height: 28vh;
    background: linear-gradient(180deg, rgba(6, 9, 18, 0) 0%, rgba(10, 14, 28, .6) 40%, rgba(12, 16, 32, .95) 100%);
    pointer-events: none;
    z-index: -2;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.05;
}

h1, h2 {
    font-family: var(--font-display);
    letter-spacing: -.03em;
}

h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p, ul, ol { margin-top: 0; }
img { max-width: 100%; height: auto; }

/* ─── ESTRELLAS DE FONDO ─── */
.stars,
.stars::before,
.stars::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255, 255, 255, .45) 0 1px, transparent 1.7px),
        radial-gradient(circle, rgba(255, 220, 140, .6) 0 1px, transparent 1.8px);
    background-size: 200px 200px, 280px 280px, 360px 360px;
    background-position: 0 0, 50px 80px, 110px 150px;
    opacity: .3;
    z-index: -3;
}
.stars::before { transform: scale(1.08); opacity: .16; }
.stars::after { transform: scale(1.18); opacity: .1; }

/* ─── ORBES DE LUZ ─── */
.glow {
    position: fixed;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -2;
}
.glow-left {
    left: -14rem;
    top: 2rem;
    background: radial-gradient(circle, rgba(245, 197, 66, .12), transparent 60%);
}
.glow-right {
    right: -14rem;
    top: -6rem;
    background: radial-gradient(circle, rgba(52, 211, 153, .08), transparent 60%);
}

/* ─── LAYOUT ─── */
.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-shell {
    min-height: calc(100vh - 160px);
    padding-top: 7.4rem;
    padding-bottom: 4rem;
}

.page-shell > * + * {
    margin-top: 2.5rem;
}

/* ─── HEADER ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 20, .88), rgba(6, 9, 20, .4));
    border-bottom: 1px solid rgba(245, 197, 66, .06);
    z-index: -1;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
    padding: .75rem 0;
}

.logo, .nav-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-image {
    display: block;
    width: auto;
    height: 56px;
    max-width: min(52vw, 340px);
    object-fit: contain;
}

/* Nav */
.nav-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .65rem 1.1rem;
    border-radius: var(--radius-full);
    color: rgba(250, 245, 228, .7);
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.nav-link:hover,
.nav-dropdown-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.nav-link.is-active,
.nav-dropdown.is-active .nav-dropdown-toggle {
    color: #1a1000;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: var(--shadow-gold);
}

.nav-dropdown.is-active .nav-dropdown-toggle .nav-caret {
    color: #1a1000;
}

.nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-width: 1.25rem;
    font-size: .95rem;
    line-height: 1;
}

.nav-item-label {
    white-space: nowrap;
}

.nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    margin-left: -.15rem;
    color: rgba(250, 245, 228, .55);
    transition: transform var(--ease), color var(--ease);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown.is-open .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
    color: currentColor;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: .8rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 14, 28, .96);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .42);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
    z-index: calc(var(--z-header) + 2);
}

.nav-dropdown-menu-right {
    right: 0;
    left: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .8rem .95rem;
    border-radius: 16px;
    color: rgba(250, 245, 228, .78);
    font-size: .92rem;
    font-weight: 600;
    transition: color var(--ease), background var(--ease), transform var(--ease);
}

.nav-dropdown-link:hover {
    color: var(--text-strong);
    background: rgba(255, 255, 255, .06);
    transform: translateX(2px);
}

.nav-dropdown-link.is-active {
    color: #1a1000;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: var(--shadow-gold);
}

.nav-dropdown-meta {
    margin-left: auto;
    color: var(--gold-light);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.nav-dropdown-separator {
    height: 1px;
    margin: .2rem .35rem;
    background: linear-gradient(90deg, rgba(245, 197, 66, .22), rgba(255, 255, 255, .04));
}

.nav-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #140b00;
    border-color: rgba(255, 232, 164, .38);
    background: linear-gradient(120deg, #ffd768 0%, var(--gold) 42%, #ffe59d 100%);
    box-shadow: 0 14px 34px rgba(245, 197, 66, .24), 0 0 0 1px rgba(255, 232, 164, .12);
}

.nav-cta .nav-item-icon,
.nav-cta .nav-item-label,
.nav-cta .nav-cta-badge {
    position: relative;
    z-index: 1;
}

.nav-cta .nav-item-label {
    font-weight: 800;
}

.nav-cta::before {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -18%;
    width: 38%;
    transform: rotate(18deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .4), rgba(255, 255, 255, 0));
    opacity: .8;
    animation: navCtaShine 3.2s ease-in-out infinite;
}

.nav-cta:hover {
    color: #140b00;
    border-color: rgba(255, 239, 189, .55);
    background: linear-gradient(120deg, #ffe28a 0%, #ffd35d 42%, #fff0b6 100%);
    box-shadow: 0 18px 40px rgba(245, 197, 66, .3), 0 0 0 1px rgba(255, 232, 164, .18);
    transform: translateY(-1px);
}

.nav-cta::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(253, 230, 138, .35);
    opacity: .8;
    pointer-events: none;
}

.nav-cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.4rem;
    padding: 0 .55rem;
    border-radius: 999px;
    background: rgba(20, 11, 0, .12);
    color: rgba(20, 11, 0, .88);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Hamburguesa */
.nav-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(245, 197, 66, .15);
    border-radius: 14px;
    background: rgba(245, 197, 66, .06);
    color: var(--gold);
    cursor: pointer;
    transition: background var(--ease);
}

.nav-toggle:hover { background: rgba(245, 197, 66, .12); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-slow);
}

/* ─── GLASSMORPHISM BASE ─── */
.card, .stat-card, .feature-card, .module-shell, .mini-card, .kpi,
.hero-points-box, .money-card, .ranking-card, .grave-card,
.benefit-card, .final-cta-box, .event-inner {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.card, .feature-card, .module-shell {
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.stat-card, .mini-card, .kpi {
    border-radius: var(--radius);
    padding: 1.5rem;
    min-width: 0;
}

.card.is-highlight {
    border-color: rgba(245, 197, 66, .2);
    box-shadow: var(--shadow), 0 0 60px rgba(245, 197, 66, .08);
}

/* Hover */
.card, .stat-card, .feature-card, .mini-card, .ranking-card {
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.stat-card:hover, .feature-card:hover, .mini-card:hover, .ranking-card:hover {
    border-color: rgba(245, 197, 66, .18);
    transform: translateY(-2px);
}

/* ─── EYEBROW ─── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 197, 66, .18);
    background: linear-gradient(180deg, rgba(245, 197, 66, .08), rgba(52, 211, 153, .04));
    color: var(--gold);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
}

.home-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4rem);
    min-height: auto;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 197, 66, .08), transparent 30%),
        radial-gradient(circle at 80% 60%, rgba(52, 211, 153, .06), transparent 28%),
        rgba(255, 255, 255, .015);
}

.home-hero::before, .home-hero::after { display: none; }

.hero-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: var(--z-base);
}

.hero h1 {
    margin-top: 0;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    color: var(--text-strong);
    line-height: .94;
}

.hero h1 .gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text, .hero .sub, .hero-desc {
    margin: 24px 0 0;
    max-width: 36rem;
    color: var(--text-soft);
    font-size: 1.2rem;
    line-height: 1.7;
}

.hero-desc .highlight { color: var(--gold); font-weight: 700; }

.hero-muted, .muted {
    color: var(--muted);
}

.hero-buttons, .hero-cta, .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Puntos clave hero */
.hero-points-box {
    margin-top: 2rem;
    padding: 22px 26px;
    border-radius: var(--radius);
    max-width: 36rem;
}

.hero-points-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-points-box li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.hero-points-box li + li { margin-top: 14px; }

.hero-points-box li::before {
    content: "✦";
    color: var(--gold);
    font-size: .85rem;
}

/* Money Card (visual derecho del hero) */
.money-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: .88;
    border-radius: var(--radius-lg);
    padding: 24px;
    background:
        radial-gradient(circle at 50% 40%, rgba(245, 197, 66, .12), transparent 40%),
        linear-gradient(180deg, rgba(20, 24, 42, .92), rgba(8, 12, 24, .95));
    border: 1px solid rgba(245, 197, 66, .1);
    box-shadow: var(--shadow), 0 0 80px rgba(245, 197, 66, .08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

.money-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius-lg) - 10px);
    border: 1px solid rgba(245, 197, 66, .06);
    pointer-events: none;
}

.money-card-label {
    display: inline-flex;
    align-self: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(6, 10, 20, .88);
    border: 1px solid rgba(255, 255, 255, .07);
    color: var(--gold-light);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.money-card-center {
    text-align: center;
    padding: 2rem 0;
}

.money-card-amount {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(245, 197, 66, .3));
}

.money-card-currency {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.money-card-footer {
    padding: 20px 22px;
    border-radius: calc(var(--radius) - 4px);
    background: rgba(6, 10, 20, .8);
    border: 1px solid rgba(255, 255, 255, .06);
}

.money-card-footer h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.money-card-footer p {
    margin: 0;
    color: var(--text-soft);
    font-size: .88rem;
}

/* Sparks para money card */
.spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 18px currentColor;
}
.spark-1 { top: 22%; left: 16%; color: var(--gold-light); background: var(--gold-light); }
.spark-2 { right: 14%; bottom: 30%; color: var(--money-light); background: var(--money-light); }
.spark-3 { left: 10%; bottom: 34%; color: #fff; background: #fff; width: 7px; height: 7px; }

/* ─── BOTONES ─── */
.btn, .btn-gold, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 56px;
    padding: 0 30px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.btn:hover, .btn-gold:hover {
    transform: translateY(-1px);
    color: #1a1000;
}

.btn-outline:hover {
    transform: translateY(-1px);
    color: var(--text-strong);
}

.btn, .btn-gold {
    color: #1a1000;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: var(--shadow-gold);
}

.btn.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.btn.secondary:hover {
    border-color: rgba(245, 197, 66, .25);
    background: rgba(255, 255, 255, .06);
    color: var(--text-strong);
}

.btn-outline {
    color: var(--text);
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.btn-outline:hover {
    border-color: rgba(245, 197, 66, .3);
    background: rgba(255, 255, 255, .06);
}

.btn-outline.small {
    min-height: 48px;
    padding: 0 22px;
    font-size: .88rem;
}

/* ─── GRIDS ─── */
.stats-grid, .features-grid, .cards-grid, .anatomy-grid,
.grid, .hero-grid, .idea-detail-grid, .inventory-grid,
.home-intro-block, .benefit-grid {
    display: grid;
    gap: 18px;
}

.stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── Grid de 6 stats del ecosistema (home) ─── */
.eco-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.eco-stat {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Solo ingresos ocupa todo el ancho */
.eco-stat:first-child {
    grid-column: 1 / -1;
}
.cards-grid, .anatomy-grid, .features-grid, .inventory-grid,
.grid, .hero-grid, .idea-detail-grid { grid-template-columns: 1fr; }

.benefit-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ─── STAT / KPI ─── */
.stat-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--money); box-shadow: 0 0 10px var(--money-glow); }
.dot-gold { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

.stat-value, .kpi strong {
    display: block;
    margin-top: .75rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value.green, .kpi strong.green { color: var(--money); }
.stat-value.gold, .kpi strong.gold { color: var(--gold); }
.stat-value.gold-light { color: var(--gold-light); }
.stat-value.money-light { color: var(--money-light); }
.stat-sub { font-size: .78rem; color: var(--muted); margin-top: .4rem; }

.kpi { min-height: 120px; }
.kpi span { color: var(--muted); font-size: .82rem; }

.kpi-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ─── FEATURE / BENEFIT CARDS ─── */
.benefit-card {
    border-radius: var(--radius);
    padding: 28px;
    min-height: 200px;
}

.benefit-icon, .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--gold);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
}

.benefit-card h3, .feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.1;
}

/* h2 como cabecera de tabla o sección dentro de un .card */
.card > h2 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text-strong);
    margin-bottom: 1.4rem;
    line-height: 1.2;
}

.benefit-card p, .feature-card p, .card p {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 1.02rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .75rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, .12);
    color: var(--money-light);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ─── SECTION TITLE ─── */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: .75rem;
}

/* ─── CHIPS / BADGES ─── */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.chip.ok { border-color: rgba(52, 211, 153, .25); color: var(--money-light); }
.chip.bad { border-color: rgba(251, 113, 133, .25); color: var(--danger); }

.badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge-active { background: rgba(52, 211, 153, .12); color: var(--money-light); }
.badge-dead { background: rgba(251, 113, 133, .12); color: var(--danger); }
.badge-paused { background: rgba(245, 197, 66, .12); color: var(--gold-light); }

/* ─── TOP LIST ─── */
.top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.top-list li {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.top-list li a {
    font-weight: 600;
    color: var(--text-strong);
}

/* Progress bar */
.progress-bar {
    flex: 1;
    min-width: 60px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width var(--ease-slow);
}

/* ─── RANKING ─── */
.ranking-grid { display: grid; gap: 14px; }

.ranking-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
}

.ranking-pos {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    height: 2.8rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.ranking-card.top-3 .ranking-pos {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1000;
    box-shadow: var(--shadow-gold);
}

.ranking-info { flex: 1; min-width: 0; }
.ranking-title { font-weight: 600; color: var(--text-strong); font-size: .95rem; }
.ranking-meta { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; font-size: .78rem; }
.ranking-revenue { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--money); white-space: nowrap; }

/* ─── IDEA PAGE ─── */
.idea-page { display: grid; gap: 1.5rem; }

.idea-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .6rem;
    margin-top: .85rem;
}

.tagline { margin-top: 1rem; color: var(--text-soft); font-size: 1.1rem; }

.page-title {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .75rem;
}

.page-title::before { content: ">"; color: var(--gold); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .82rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text-soft); }

.idea-layout { display: grid; gap: 1.5rem; align-items: start; }
.idea-sidebar { display: block; min-width: 0; }
.idea-main { display: grid; gap: 1.5rem; min-width: 0; }
.idea-analysis-stack { display: grid; gap: 1rem; }

.idea-hero-panel {
    background:
        radial-gradient(circle at 16% 20%, rgba(245, 197, 66, .10), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(52, 211, 153, .08), transparent 24%),
        rgba(255, 255, 255, .025);
}

.idea-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1rem;
}

.idea-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}

.idea-hero-note {
    margin-top: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 197, 66, .12);
    background: rgba(245, 197, 66, .05);
}

.idea-hero-note p {
    margin: .6rem 0 0;
}

.idea-product-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.2rem;
}

.idea-product-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .75rem .95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    font-size: .88rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.idea-product-pill strong {
    color: var(--text-strong);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.idea-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    flex-shrink: 0;
}

.idea-sidebar-card {
    display: grid;
    gap: 1.25rem;
}

.idea-sidebar-section {
    display: grid;
    gap: .95rem;
    min-width: 0;
}

.idea-sidebar-section h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.idea-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, .06);
}

.idea-facts-list {
    display: grid;
    gap: .85rem;
}

.idea-fact-row {
    display: grid;
    gap: .4rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .03);
    min-width: 0;
}

.idea-fact-row strong {
    display: block;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.idea-fact-row strong.gold-light {
    color: var(--gold-light);
}

.idea-fact-row p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.idea-pricing-copy {
    margin-bottom: 0;
}

.idea-pricing-copy strong {
    color: var(--text-strong);
}

.idea-products-grid {
    display: grid;
    gap: 14px;
}

.idea-product-card {
    display: grid;
    gap: .7rem;
    min-height: 0;
}

.idea-product-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    min-width: 0;
}

.idea-product-top h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--text-strong);
    min-width: 0;
    overflow-wrap: anywhere;
}

.idea-product-price {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.idea-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

.idea-nav a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    transition: color var(--ease);
}
.idea-nav a:hover { color: var(--gold-light); }

/* ─── CEMENTERIO ─── */
.grave-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
    opacity: .8;
    transition: opacity var(--ease);
}
.grave-card:hover { opacity: 1; }
.grave-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.grave-icon { font-size: 1.4rem; }
.grave-title { font-weight: 700; color: var(--text-soft); }
.grave-cause { font-size: .88rem; color: var(--muted); font-style: italic; }
.grave-stats { display: flex; gap: 1rem; margin-top: .5rem; font-size: .8rem; color: var(--muted); }

/* ─── MANIFIESTO ─── */
.manifiesto { max-width: 720px; margin: 0 auto; }

.manifiesto h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.manifiesto p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.manifiesto blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--gold);
    background: rgba(245, 197, 66, .04);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.5;
}

.manifiesto .separator {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 2.5rem 0;
    opacity: .3;
}

/* ─── MURO ─── */
#muro {
    overflow: auto;
    background: rgba(255, 255, 255, .02);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--line-soft);
}

.muro-grid { display: grid; gap: 2px; }
.muro-pixel { width: 12px; height: 12px; border-radius: 2px; transition: transform .15s ease; }
.muro-pixel:hover { transform: scale(1.8); z-index: 2; }
.muro-pixel.empty { background: rgba(255, 255, 255, .04); }
.muro-progress { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

/* ─── 404 ─── */
.page-404 { text-align: center; padding: 4rem 1rem; }
.page-404 .ascii-art { font-family: monospace; font-size: clamp(.5rem, 1.5vw, .8rem); color: var(--gold); opacity: .5; white-space: pre; line-height: 1.2; margin-bottom: 2rem; }
.page-404 h1 { margin-bottom: 1rem; }
.page-404 p { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 2rem; }
.page-404 .suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }

/* ─── QUICK LINKS ─── */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    color: var(--text-soft);
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--ease);
}

.quick-links a:hover {
    color: var(--text-strong);
    border-color: rgba(245, 197, 66, .3);
    background: rgba(245, 197, 66, .06);
}

.inline-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--gold-light);
    font-weight: 600;
}

/* ─── CTA FINAL ─── */
.final-cta-box {
    border-radius: var(--radius-lg);
    text-align: center;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at 50% -10%, rgba(245, 197, 66, .1), transparent 30%),
        linear-gradient(180deg, rgba(20, 24, 42, .5), rgba(10, 14, 28, .85));
}

.final-cta-box p {
    max-width: 700px;
    margin: 20px auto 32px;
    font-size: 1.15rem;
    color: var(--text-soft);
}

/* ─── FORMULARIOS ─── */
input, textarea, select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    color: var(--text);
    padding: .9rem 1.1rem;
    font: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(245, 197, 66, .4);
    box-shadow: 0 0 0 4px rgba(245, 197, 66, .08);
}

input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .3); }

form { display: grid; gap: .9rem; }
label { font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.form-group { display: grid; gap: .4rem; }
.form-helper { font-size: .78rem; color: var(--muted); }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--danger); }
.form-group.has-success input, .form-group.has-success textarea { border-color: var(--money); }
.char-count { text-align: right; font-size: .75rem; color: var(--muted); }

/* ─── TABLAS ─── */
table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap {
    border-radius: var(--radius);
}

th, td {
    padding: .6rem .55rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    text-align: left;
    vertical-align: middle;
    font-size: .88rem;
    white-space: nowrap;
}

th {
    color: var(--text-soft);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding-top: .7rem;
    padding-bottom: .7rem;
}

tr:hover > td { background: rgba(245, 197, 66, .02); }

/* Columna del nombre: ocupa espacio sobrante, se recorta si no cabe */
.td-clip {
    max-width: 1px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* Flecha expandir */
.row-toggle {
    cursor: pointer;
    color: var(--muted);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: .3rem;
    transition: transform var(--ease), color var(--ease), background var(--ease);
}

.row-toggle:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, .04);
}

.row-toggle.open {
    transform: rotate(180deg);
}

/* Fila de detalle expandible */
.row-detail { display: none; }
.row-detail.open { display: table-row; }

.row-detail td {
    padding: .7rem .8rem .8rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: var(--text-soft);
    font-size: .86rem;
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    background: rgba(255, 255, 255, .015);
}

/* Cabeceras ordenables */
th[data-sort] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.6rem;
}

th[data-sort]:hover { color: var(--gold-light); }
th[data-sort]::after { content: "⇅"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); opacity: .3; font-size: .7rem; }
th[data-sort].asc::after { content: "↑"; opacity: .8; color: var(--gold); }
th[data-sort].desc::after { content: "↓"; opacity: .8; color: var(--gold); }

/* Badges dentro de tablas */
td .badge { font-size: .65rem; padding: 3px 10px; }

/* Botones dentro de tablas */
td .btn-outline.small {
    min-height: 34px;
    padding: 0 14px;
    font-size: .78rem;
}

/* ─── DATATABLE ─── */
.dt-controls {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.dt-search {
    width: min(320px, 100%);
    min-height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    color: var(--text);
    padding: 0 1.2rem;
    font: inherit;
    font-size: .92rem;
}

.dt-search:focus {
    outline: none;
    border-color: rgba(245, 197, 66, .35);
    box-shadow: 0 0 0 3px rgba(245, 197, 66, .08);
}

.dt-info {
    color: var(--muted);
    font-size: .82rem;
    margin-left: auto;
}

.dt-filter-select {
    width: auto;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    color: var(--text);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238a8078' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    padding-right: 2.2rem;
}

.dt-filter-select:focus {
    outline: none;
    border-color: rgba(245, 197, 66, .35);
}

.dt-filter-select option {
    background: #0c1020;
    color: var(--text);
}

.dt-filters { display: none; } /* Se mueve al controls por JS */

.dt-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.2rem;
    justify-content: center;
}

.dt-pagination button {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    color: var(--text-soft);
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: all var(--ease);
}

.dt-pagination button:hover {
    border-color: rgba(245, 197, 66, .25);
    color: var(--text-strong);
    background: rgba(245, 197, 66, .06);
}

.dt-pagination button.active {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    color: #1a1000;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.dt-pagination button:disabled {
    opacity: .3;
    cursor: default;
}

/* ─── CHIP LIST ─── */
.feature-list, .chip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; margin-top: 1rem; }
.chip-list li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .65rem; color: var(--text-soft); }
.feature-list li { display: grid; gap: .3rem; padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .05); }
.feature-list li:first-child { padding-top: 0; border-top: 0; }
.feature-list a { color: var(--text-strong); font-weight: 600; }
.feature-list span { color: var(--gold); }
.feature-list small { color: var(--muted); font-size: .78rem; }

/* ─── LOADING / TOAST / SPINNER ─── */
.loading-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: var(--radius-full);
    border: 1px dashed rgba(245, 197, 66, .2);
    color: var(--muted);
    font-size: .88rem;
}

.loading-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: blink .8s infinite;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245, 197, 66, .2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-toast);
    display: grid;
    gap: .5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.2rem;
    border-radius: 16px;
    background: var(--panel-strong);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-soft);
    font-size: .88rem;
    box-shadow: var(--shadow);
    pointer-events: auto;
    animation: slideInRight .3s ease-out;
    backdrop-filter: blur(16px);
}

.toast.success { border-color: rgba(52, 211, 153, .3); }
.toast.success::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--money); }
.toast.error { border-color: rgba(251, 113, 133, .3); }
.toast.error::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.toast.info { border-color: rgba(245, 197, 66, .3); }
.toast.info::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.toast.fade-out { animation: slideOutRight .3s ease-in forwards; }

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 3rem 0;
    background: rgba(6, 9, 18, .5);
}

.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-col { display: grid; gap: .5rem; align-content: start; }
.footer-col h4 { color: var(--text-strong); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.footer-tagline { color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.footer-col a { color: var(--muted); font-size: .9rem; transition: color var(--ease); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .05); }
.footer-copy { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-note { margin: 0; font-size: .78rem; color: rgba(138, 128, 120, .6); font-style: italic; }

/* Compat */
.footer-inner { display: grid; gap: .65rem; }
.footer-meta { margin: 0; font-size: .86rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--gold-light); }
.gold { color: var(--gold); }
.sub { color: var(--text-soft); }
.copy-block { color: var(--muted); margin: 0; line-height: 1.6; }
.module { display: grid; gap: .85rem; }

/* ─── ANIMACIONES ─── */
@keyframes blink { 0% { opacity: .35; } 50% { opacity: 1; } 100% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(80px); } }
@keyframes navCtaShine { 0%, 20% { transform: translateX(0) rotate(18deg); opacity: 0; } 35%, 60% { transform: translateX(240%) rotate(18deg); opacity: .85; } 100% { transform: translateX(240%) rotate(18deg); opacity: 0; } }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */

@media (min-width: 1120px) {
    .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 880px) {
    .cards-grid, .anatomy-grid, .features-grid, .inventory-grid, .idea-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .idea-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 760px) {
    .grid, .hero-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .header-inner { min-height: 72px; }
    .logo-image { height: 48px; max-width: 56vw; }
    .page-shell { padding-top: 6.5rem; }
}

@media (max-width: 720px) {
    .container { width: calc(100% - 24px); }
    .page-shell { padding-top: 6rem; padding-bottom: 2.5rem; }
    .logo-image { height: 42px; max-width: 60vw; }
    body.nav-open { overflow: hidden; }

    .nav-toggle { display: flex; }

    .nav-main {
        position: fixed;
        top: 5rem;
        right: 12px;
        left: 12px;
        bottom: auto;
        width: auto;
        max-height: calc(100vh - 5.75rem);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 1rem;
        background: var(--panel-strong);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 24px;
        z-index: calc(var(--z-header) + 1);
        transform: translateY(-12px) scale(.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--ease-slow), opacity var(--ease), visibility var(--ease);
        overflow-y: auto;
        backdrop-filter: blur(24px);
        box-shadow: 0 28px 60px rgba(0, 0, 0, .45);
    }

    .nav-main .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: .9rem 1rem;
        font-size: 1rem;
        border-radius: 16px;
    }

    .nav-main .nav-dropdown {
        width: 100%;
    }

    .nav-main .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: .9rem 1rem;
        font-size: 1rem;
        border-radius: 16px;
    }

    .nav-main .nav-caret {
        margin-left: auto;
    }

    .nav-dropdown-menu,
    .nav-dropdown-menu-right {
        position: static;
        right: auto;
        left: auto;
        min-width: 0;
        display: none;
        margin-top: .55rem;
        padding: .65rem;
        border-radius: 18px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, .03);
        backdrop-filter: blur(12px);
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .nav-overlay { display: block; }

    body.nav-open .nav-main {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
    body.nav-open .nav-toggle .icon-menu { display: none; }
    body.nav-open .nav-toggle .icon-close { display: block; }

    .home-hero { grid-template-columns: 1fr; padding: clamp(1.5rem, 4vw, 2.5rem); }
    .home-hero .hero-content,
    .home-hero .hero-visual { order: 0; }
    .money-card { max-width: 340px; }

    .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
    .stats-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .card, .feature-card, .module-shell { padding: clamp(1.2rem, 3vw, 1.8rem); }
    th, td { padding: .45rem .35rem; font-size: .82rem; }
    td .badge { font-size: .6rem; padding: 2px 8px; }
    td .btn-outline.small { min-height: 30px; padding: 0 10px; font-size: .72rem; }
}

@media (max-width: 520px) {
    .stats-grid, .kpi-grid { grid-template-columns: 1fr; }
    .hero-buttons, .hero-cta, .hero-actions, .quick-links { flex-direction: column; }
    .btn, .btn-gold, .btn-outline, .quick-links a { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .money-card { max-width: 280px; aspect-ratio: .95; }
    .idea-product-top, .idea-hero-actions { flex-direction: column; }
    .idea-chip-row, .idea-product-pills { gap: .5rem; }
}

/* ═══════════════════════════════════════════════════
   WIZARD SOCIO FUNDADOR — Enviar idea gamificado
   ═══════════════════════════════════════════════════ */

/* ─── Progress de pasos ─── */
/* ─── Wizard stepper ─── */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.2rem;
    padding: 1.8rem 1.4rem 1.6rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
}

.ws-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
    min-width: 0;
}

.ws-step-dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    color: var(--muted);
    flex-shrink: 0;
    font-family: var(--font-heading);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    letter-spacing: 0;
    position: relative;
    z-index: 1;
}

.ws-step.active .ws-step-dot {
    border-color: var(--gold);
    background: rgba(245, 197, 66, .12);
    color: var(--gold);
    box-shadow: 0 0 0 7px rgba(245, 197, 66, .09), 0 0 32px rgba(245, 197, 66, .22);
    transform: scale(1.1);
    font-size: 1.05rem;
}

.ws-step.done .ws-step-dot {
    border-color: var(--money);
    background: rgba(52, 211, 153, .12);
    color: var(--money);
}

.ws-step-info { text-align: center; }

.ws-step-name {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    transition: color var(--ease);
    line-height: 1.25;
}

.ws-step.active .ws-step-name { color: var(--gold); }
.ws-step.done .ws-step-name { color: var(--money); }

.ws-step-sub {
    display: block;
    font-size: .62rem;
    color: var(--muted);
    opacity: .55;
    margin-top: .1rem;
    line-height: 1.3;
}

.ws-connector {
    flex-shrink: 0;
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, .08);
    border-radius: 2px;
    align-self: flex-start;
    margin-top: 25px; /* (52px dot - 2px connector) / 2 = 25 */
    transition: background .4s cubic-bezier(.4, 0, .2, 1);
}

.ws-connector.done {
    background: linear-gradient(90deg, rgba(52, 211, 153, .55), rgba(52, 211, 153, .28));
}

/* ─── Panels del wizard ─── */
.wizard-panel { display: none; }

.wizard-panel.active {
    display: block;
    animation: wsSlideIn .28s cubic-bezier(.4, 0, .2, 1);
}

@keyframes wsSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard-panel h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.8vw, 1.85rem);
    color: var(--text-strong);
    margin: 0 0 1.6rem;
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* Paso N de 3 — indicador textual pequeño encima del h3 */
.wizard-panel-step-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    opacity: .65;
    margin-bottom: .45rem;
}

/* ─── Botones de navegación ─── */
.wizard-btns {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    flex-wrap: wrap;
}

/* ─── Grid de % ─── */
.pct-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    margin-top: .5rem;
}

.pct-option { position: relative; }

.pct-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pct-lbl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .85rem .5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    text-align: center;
    transition: all var(--ease);
    min-height: 76px;
    gap: .25rem;
}

.pct-lbl:hover {
    border-color: rgba(245, 197, 66, .25);
    background: rgba(245, 197, 66, .07);
    transform: translateY(-1px);
}

.pct-option input[type="radio"]:checked ~ .pct-lbl {
    border-color: var(--gold);
    background: rgba(245, 197, 66, .12);
    box-shadow: 0 0 22px rgba(245, 197, 66, .15);
}

.pct-val {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--gold);
    line-height: 1;
}

.pct-wit {
    font-size: .6rem;
    color: var(--muted);
    line-height: 1.3;
    font-style: italic;
}

/* ─── Contrato absurdo ─── */
.contrato {
    background: rgba(245, 197, 66, .04);
    border: 1px solid rgba(245, 197, 66, .1);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.contrato-head {
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .6;
    margin-bottom: .85rem;
}

.contrato ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .28rem;
}

.contrato ul li::before {
    content: "✓ ";
    color: var(--money);
    font-weight: 700;
}

/* ─── Preview propuesta ─── */
.propuesta-box {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    display: grid;
    gap: .5rem;
}

.propuesta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    font-size: .83rem;
}

.propuesta-row .pk {
    color: var(--muted);
    font-weight: 600;
    flex-shrink: 0;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.propuesta-row .pv {
    color: var(--text);
    text-align: right;
    font-weight: 500;
    word-break: break-word;
}

.propuesta-row .pv.hl {
    color: var(--gold);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ─── Checkbox pacto ─── */
.check-pacto {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 197, 66, .1);
    background: rgba(245, 197, 66, .03);
    cursor: pointer;
    transition: all var(--ease);
    margin-bottom: 1.1rem;
}

.check-pacto:hover {
    border-color: rgba(245, 197, 66, .22);
    background: rgba(245, 197, 66, .07);
}

.check-pacto input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--gold);
    margin-top: 2px;
    cursor: pointer;
}

.check-pacto span {
    font-size: .82rem;
    line-height: 1.55;
    color: var(--text-soft);
}

/* ─── Stats socios ─── */
.socios-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-bottom: 0;
}

.socio-kpi {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    text-align: center;
    transition: border-color var(--ease);
}

.socio-kpi:hover { border-color: rgba(245, 197, 66, .15); }

.socio-kpi-val {
    font-size: 1.7rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--gold);
    line-height: 1;
}

.socio-kpi-lbl {
    font-size: .62rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .3rem;
}

/* ─── Beneficios del socio ─── */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.2rem;
}

.beneficio-item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.beneficio-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 197, 66, .08);
    border: 1px solid rgba(245, 197, 66, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.beneficio-text strong {
    display: block;
    font-size: .86rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .15rem;
}

.beneficio-text span {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════
   CERTIFICADO DE SOCIO FUNDADOR
   ═══════════════════════════════════════════════════ */

.cert-wrapper { display: none; }

.cert-wrapper.visible {
    display: block;
    animation: wsSlideIn .5s ease;
}

.certificado-socio {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 197, 66, .14), transparent 40%),
        radial-gradient(circle at 80% 75%, rgba(52, 211, 153, .1), transparent 40%),
        rgba(255, 255, 255, .04);
    border: 1px solid rgba(245, 197, 66, .24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), 0 0 90px rgba(245, 197, 66, .12);
}

.certificado-socio::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: .035;
    pointer-events: none;
}

.cert-tag {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .6;
    margin-bottom: 1rem;
}

.cert-num {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 60px rgba(245, 197, 66, .5);
    margin-bottom: .25rem;
}

.cert-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-family: var(--font-display);
    color: var(--text-strong);
    margin-bottom: .4rem;
}

.cert-nombre {
    color: var(--text-soft);
    font-size: .92rem;
    margin-bottom: 1.4rem;
}

.cert-pct {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.2rem;
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .22);
    border-radius: var(--radius-full);
    color: var(--money);
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: .7rem;
}

.cert-idea {
    font-size: .8rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 2.2rem;
}

/* ─── Roadmap de la idea ─── */
.cert-roadmap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
}

.rm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

.rm-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    transition: all .4s ease;
}

.rm-step.done .rm-dot {
    border-color: var(--money);
    background: rgba(52, 211, 153, .16);
    color: var(--money);
}

.rm-lbl {
    font-size: .55rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    max-width: 58px;
    text-align: center;
    line-height: 1.25;
}

.rm-connector {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, .07);
    flex-shrink: 0;
    align-self: center;
    margin-bottom: 1.1rem;
    transition: background .4s ease;
}

.rm-connector.done { background: rgba(52, 211, 153, .3); }

.cert-actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Responsive wizard ─── */
@media (max-width: 540px) {
    .pct-grid { grid-template-columns: repeat(3, 1fr); }
    .beneficios-grid { grid-template-columns: 1fr; }
    .ws-step-sub { display: none; }
    .ws-connector { width: 24px; }
    .wizard-progress { padding: 1.2rem .8rem 1.1rem; }
    .rm-connector { width: 14px; }
    .cert-actions { flex-direction: column; }
    .cert-roadmap { gap: 0; }
}

/* ═══════════════════════════════════════════════════
   CATEGORÍAS DE IDEAS
   ═══════════════════════════════════════════════════ */

/* ─── Selector de categoría (wizard) ─── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    margin-top: .5rem;
}

.cat-option { position: relative; }

.cat-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cat-lbl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .8rem .5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    text-align: center;
    transition: all var(--ease);
    min-height: 70px;
    gap: .2rem;
}

.cat-lbl:hover {
    border-color: rgba(245, 197, 66, .25);
    background: rgba(245, 197, 66, .07);
    transform: translateY(-1px);
}

.cat-option input[type="radio"]:checked ~ .cat-lbl {
    border-color: var(--gold);
    background: rgba(245, 197, 66, .12);
    box-shadow: 0 0 20px rgba(245, 197, 66, .14);
}

.cat-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.cat-name {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ─── Badge de categoría (tarjetas) ─── */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: var(--radius-full);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cat-badge-digital        { background: rgba(56, 189, 248, .1);  color: #38bdf8;         border: 1px solid rgba(56, 189, 248, .2); }
.cat-badge-producto       { background: rgba(251, 146, 60, .1);  color: #fb923c;         border: 1px solid rgba(251, 146, 60, .2); }
.cat-badge-experiencia    { background: rgba(167, 139, 250, .1); color: #a78bfa;         border: 1px solid rgba(167, 139, 250, .2); }
.cat-badge-comunidad      { background: rgba(52, 211, 153, .1);  color: var(--money);    border: 1px solid rgba(52, 211, 153, .2); }
.cat-badge-caos           { background: rgba(251, 113, 133, .1); color: var(--danger);   border: 1px solid rgba(251, 113, 133, .2); }
.cat-badge-experimento    { background: rgba(245, 197, 66, .1);  color: var(--gold);     border: 1px solid rgba(245, 197, 66, .2); }
.cat-badge-ia             { background: rgba(99, 102, 241, .1);  color: #818cf8;         border: 1px solid rgba(99, 102, 241, .2); }
.cat-badge-finanzas       { background: rgba(34, 197, 94, .1);   color: #4ade80;         border: 1px solid rgba(34, 197, 94, .2); }
.cat-badge-salud          { background: rgba(244, 63, 94, .1);   color: #fb7185;         border: 1px solid rgba(244, 63, 94, .2); }
.cat-badge-educacion      { background: rgba(234, 179, 8, .1);   color: #facc15;         border: 1px solid rgba(234, 179, 8, .2); }
.cat-badge-entretenimiento{ background: rgba(168, 85, 247, .1);  color: #c084fc;         border: 1px solid rgba(168, 85, 247, .2); }
.cat-badge-lifestyle      { background: rgba(20, 184, 166, .1);  color: #2dd4bf;         border: 1px solid rgba(20, 184, 166, .2); }

/* Categoría libre (cualquier clave no reconocida) */
[class^="cat-badge-"]:not([class*="cat-badge-digital"]):not([class*="cat-badge-producto"]):not([class*="cat-badge-experiencia"]):not([class*="cat-badge-comunidad"]):not([class*="cat-badge-caos"]):not([class*="cat-badge-experimento"]):not([class*="cat-badge-ia"]):not([class*="cat-badge-finanzas"]):not([class*="cat-badge-salud"]):not([class*="cat-badge-educacion"]):not([class*="cat-badge-entretenimiento"]):not([class*="cat-badge-lifestyle"]) {
    background: rgba(148, 163, 184, .1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, .2);
}

/* ─── Cat-grid expandido (12 + otra) ─── */
.cat-grid-wide {
    grid-template-columns: repeat(4, 1fr);
}

/* ─── Campo libre "Otra categoría" ─── */
.cat-otra-input input[type="text"] {
    width: 100%;
    padding: .55rem .85rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: var(--text-strong);
    font-size: .9rem;
    transition: border-color var(--ease);
}

.cat-otra-input input[type="text"]:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(245, 197, 66, .04);
}

/* ─── Penitencia: tarjeta completa ─── */
.pen-desc {
    font-size: .8rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-top: .25rem;
}

.pen-analisis {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: .4rem;
    padding: .4rem .65rem;
    background: rgba(255, 255, 255, .025);
    border-left: 2px solid rgba(245, 197, 66, .2);
    border-radius: 0 6px 6px 0;
}

/* ─── Barra de filtro categorías (en fases) ─── */
.cat-filter-bar {
    margin-bottom: 1.2rem;
}

@media (max-width: 540px) {
    .cat-grid-wide { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 380px) {
    .cat-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   PURGATORIO
   ═══════════════════════════════════════════════════ */

/* ─── Grid de ideas en el purgatorio ─── */
.purg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.4rem;
}

.purg-card {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    transition: border-color var(--ease), transform var(--ease);
    backdrop-filter: blur(12px);
}

.purg-card:hover {
    border-color: rgba(245, 197, 66, .15);
    transform: translateY(-2px);
}

.purg-card.is-planificada {
    border-color: rgba(52, 211, 153, .3);
    background: rgba(52, 211, 153, .04);
    animation: approvedPulse .6s ease;
}

@keyframes approvedPulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .4); }
    70%  { box-shadow: 0 0 0 16px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.purg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
}

.purg-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-strong);
    line-height: 1.25;
    margin: 0;
}

.purg-desc {
    font-size: .83rem;
    color: var(--text-soft);
    line-height: 1.55;
    flex: 1;
}

.purg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .75rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.purg-socio {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
}

.purg-pct {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .18rem .55rem;
    background: rgba(245, 197, 66, .07);
    border: 1px solid rgba(245, 197, 66, .14);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-weight: 700;
    font-size: .7rem;
}

/* ─── Votación ─── */
.purg-vote {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.vote-counts {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
}

.vote-pos-val {
    color: var(--money);
    font-weight: 700;
    font-size: .9rem;
}

.vote-neg-val {
    color: var(--danger);
    font-weight: 700;
    font-size: .9rem;
}

.vote-sep {
    color: var(--muted);
}

.vote-bar {
    height: 4px;
    background: rgba(255, 255, 255, .07);
    border-radius: 99px;
    overflow: hidden;
}

.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--money), var(--money-light));
    border-radius: 99px;
    transition: width .4s ease;
}

.vote-needs {
    font-size: .72rem;
    color: var(--muted);
}

.vote-needs.ready {
    color: var(--money);
    font-weight: 600;
}

.vote-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem .8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font-heading);
}

.vote-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.vote-btn-up:not(:disabled):hover {
    background: rgba(52, 211, 153, .12);
    border-color: rgba(52, 211, 153, .3);
    color: var(--money);
}

.vote-btn-down:not(:disabled):hover {
    background: rgba(251, 113, 133, .12);
    border-color: rgba(251, 113, 133, .3);
    color: var(--danger);
}

.vote-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

.vote-btn.my-vote-up {
    background: rgba(52, 211, 153, .1);
    border-color: rgba(52, 211, 153, .25);
    color: var(--money);
    opacity: 1;
}

.vote-btn.my-vote-down {
    background: rgba(251, 113, 133, .1);
    border-color: rgba(251, 113, 133, .25);
    color: var(--danger);
    opacity: 1;
}

/* ─── Sección planificadas ─── */
.planificadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.plan-card {
    background: rgba(52, 211, 153, .04);
    border: 1px solid rgba(52, 211, 153, .18);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.plan-card h4 {
    font-size: .98rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-strong);
    margin: 0;
}

.plan-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.badge-planificada {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem;
    background: rgba(52, 211, 153, .12);
    border: 1px solid rgba(52, 211, 153, .22);
    border-radius: var(--radius-full);
    color: var(--money);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ─── Stats purgatorio ─── */
.purg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

/* ─── Empty state ─── */
.purg-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
    border: 1px dashed rgba(255, 255, 255, .08);
    border-radius: var(--radius);
}

.purg-empty p {
    margin-bottom: 1.2rem;
    font-size: .9rem;
}

/* ─── Responsive purgatorio ─── */
@media (max-width: 640px) {
    .purg-grid { grid-template-columns: 1fr; }
    .planificadas-grid { grid-template-columns: 1fr; }
    .purg-stats { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════
   MODAL DE AYUDA — Las normas del universo absurdo
   ═══════════════════════════════════════════════════ */

.help-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.help-modal[hidden] { display: none; }

.help-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.help-modal-box {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 26, .97);
    border: 1px solid rgba(245, 197, 66, .18);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow), 0 0 80px rgba(245, 197, 66, .1);
    animation: modalIn .3s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.help-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: var(--text-soft);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease);
    line-height: 1;
}

.help-modal-close:hover {
    background: rgba(255,255,255,.1);
    color: var(--text-strong);
}

.help-modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--text-strong);
    margin-bottom: .4rem;
}

.help-modal-sub {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.help-stages { display: grid; gap: 0; }

.help-stage {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.help-stage:last-child { border-bottom: none; }

.help-stage-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.2rem;
    text-align: center;
    line-height: 1.4;
}

.help-stage-body h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: .25rem;
    font-family: var(--font-heading);
}

.help-stage-body p {
    font-size: .81rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
}

.help-rules-box {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    background: rgba(245, 197, 66, .04);
    border: 1px solid rgba(245, 197, 66, .1);
    border-radius: 14px;
    display: grid;
    gap: .6rem;
}

.help-rules-box p {
    font-size: .8rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
}

.help-rules-box strong {
    color: var(--gold);
    font-weight: 700;
}

/* ─── Purgatorio ranking row ─── */
.purg-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
    min-width: 3.5rem;
    text-align: right;
}

.purg-score.positive { color: var(--money); }
.purg-score.negative { color: var(--danger); }
.purg-score.zero     { color: var(--muted); }

.purg-vote-inline {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.purg-vbtn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .42rem .75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font-heading);
    white-space: nowrap;
}

.purg-vbtn:not(:disabled):hover.purg-vbtn-up {
    background: rgba(52, 211, 153, .12);
    border-color: rgba(52, 211, 153, .3);
    color: var(--money);
}

.purg-vbtn:not(:disabled):hover.purg-vbtn-down {
    background: rgba(251, 113, 133, .12);
    border-color: rgba(251, 113, 133, .3);
    color: var(--danger);
}

.purg-vbtn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.purg-vbtn.my-vote-up {
    background: rgba(52, 211, 153, .1);
    border-color: rgba(52, 211, 153, .25);
    color: var(--money);
    opacity: 1;
}

.purg-vbtn.my-vote-down {
    background: rgba(251, 113, 133, .1);
    border-color: rgba(251, 113, 133, .25);
    color: var(--danger);
    opacity: 1;
}

/* planificada row */
.ranking-card.is-planificada {
    border-color: rgba(52, 211, 153, .25) !important;
    background: rgba(52, 211, 153, .03);
}

.ranking-card.is-planificada .ranking-pos {
    background: rgba(52, 211, 153, .15);
    color: var(--money);
}

@media (max-width: 600px) {
    .purg-vbtn span { display: none; }
    .purg-score { font-size: 1rem; min-width: 2.5rem; }
}

/* ═══════════════════════════════════════════════════
   NIRVANA — La cima absoluta
   ═══════════════════════════════════════════════════ */

.nirvana-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(245, 197, 66, .02);
    border: 1px dashed rgba(245, 197, 66, .15);
    border-radius: var(--radius);
}

.nirvana-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.nirvana-empty h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-strong);
    margin-bottom: .6rem;
    font-family: var(--font-heading);
}

.nirvana-grid {
    display: grid;
    gap: 1.2rem;
}

.nirvana-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(245, 197, 66, .03);
    border: 1px solid rgba(245, 197, 66, .18);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    transition: border-color var(--ease), transform var(--ease);
}

.nirvana-card:hover {
    border-color: rgba(245, 197, 66, .35);
    transform: translateY(-2px);
}

.nirvana-star {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(245, 197, 66, .4));
}

.nirvana-info {
    flex: 1;
    min-width: 0;
}

.nirvana-title {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-strong);
    margin-bottom: .3rem;
}

.nirvana-title a {
    color: inherit;
    text-decoration: none;
}

.nirvana-title a:hover { color: var(--gold); }

.nirvana-domain {
    font-size: .82rem;
    margin-bottom: .4rem;
}

.nirvana-domain a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.nirvana-domain a:hover { text-decoration: underline; }

.nirvana-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--text-soft);
}

@media (max-width: 540px) {
    .nirvana-card { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .nirvana-meta { gap: .5rem; }
}

/* ═══════════════════════════════════════════════════
   TODAS LAS IDEAS — Catálogo filtrable
   ═══════════════════════════════════════════════════ */

/* ─── Barra de filtros ─── */
.ideas-filter {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.ideas-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--ease);
    white-space: nowrap;
}

.ideas-filter-btn:hover {
    border-color: rgba(245, 197, 66, .25);
    background: rgba(245, 197, 66, .07);
    color: var(--gold);
}

.ideas-filter-btn.is-active {
    border-color: var(--gold);
    background: rgba(245, 197, 66, .12);
    color: var(--gold);
    box-shadow: 0 0 14px rgba(245, 197, 66, .12);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 .3rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .08);
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
}

.ideas-filter-btn.is-active .filter-count {
    background: rgba(245, 197, 66, .18);
    color: var(--gold);
}

/* ─── Grid de ideas ─── */
.ideas-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

.ideas-all-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    transition: border-color var(--ease), transform var(--ease);
}

.ideas-all-card:hover {
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

.ideas-all-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
}

.ideas-all-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-strong);
    line-height: 1.3;
}

.ideas-all-title a {
    color: inherit;
    text-decoration: none;
}

.ideas-all-title a:hover { color: var(--gold); }

.ideas-all-desc {
    font-size: .78rem;
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.ideas-all-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    font-size: .75rem;
}

.ideas-all-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: .78rem;
    transition: opacity var(--ease);
}

.ideas-all-link:hover { opacity: .75; }

.ideas-revenue {
    color: var(--money);
    font-weight: 700;
    font-size: .78rem;
    font-family: var(--font-heading);
}

/* ─── Badges de bucket ─── */
.ideas-bucket-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bucket-cielo {
    background: rgba(52, 211, 153, .1);
    color: var(--money);
    border: 1px solid rgba(52, 211, 153, .2);
}

.bucket-penitencia {
    background: rgba(245, 197, 66, .1);
    color: var(--gold);
    border: 1px solid rgba(245, 197, 66, .2);
}

.bucket-nirvana {
    background: rgba(253, 224, 71, .1);
    color: #fde047;
    border: 1px solid rgba(253, 224, 71, .25);
}

.bucket-muerta {
    background: rgba(100, 100, 100, .1);
    color: var(--muted);
    border: 1px solid rgba(100, 100, 100, .2);
}

/* ─── Empty state ─── */
.ideas-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
}

/* ─── Tier badge (penitencia) ─── */
.pen-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-full);
    background: rgba(245, 197, 66, .08);
    border: 1px solid rgba(245, 197, 66, .15);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

@media (max-width: 540px) {
    .ideas-all-grid { grid-template-columns: 1fr; }
    .ideas-filter { gap: .35rem; }
    .ideas-filter-btn { font-size: .75rem; padding: .38rem .8rem; }
}

/* ═══════════════════════════════════════════════════
   PHASE HERO — hero compacto y ancho completo para
   las páginas de fase (Purgatorio, Penitencia, Cielo, Nirvana)
   ═══════════════════════════════════════════════════ */

.phase-hero {
    background:
        radial-gradient(ellipse 70% 120% at 50% -20%, rgba(245, 197, 66, .07), transparent 60%),
        var(--panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-lg);
    width: 100%;
    padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
}

/* Navegación prev / next entre fases */
.phase-hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.phase-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: .04em;
    color: var(--muted);
    text-decoration: none;
    padding: .38rem .9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.phase-nav-link:hover {
    color: var(--gold-light);
    border-color: rgba(245, 197, 66, .28);
    background: rgba(245, 197, 66, .05);
}

.phase-nav-link.disabled {
    opacity: .25;
    pointer-events: none;
}

.phase-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .7;
}

/* Título h1 dentro del phase-hero */
.phase-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-family: var(--font-display);
    margin: 0 0 .5rem;
    line-height: 1.05;
    color: var(--text-strong);
}

/* Descripción bajo el título */
.phase-hero .hero-desc {
    font-size: clamp(.88rem, 1.8vw, 1rem);
    color: var(--text-soft);
    width: 100%;
    max-width: none;
    margin: 0;
    line-height: 1.6;
}

/* Footer del hero: stats + CTA en una fila */
.phase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Grupo de stats */
.phase-stats {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    flex-wrap: wrap;
}

.phase-stat {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.phase-stat-val {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}

.phase-stat-val.green { color: var(--money); }
.phase-stat-val.gold-light { color: var(--gold-light); }

.phase-stat-lbl {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* Separador visual entre stats */
.phase-stats-sep {
    width: 1px;
    height: 2.4rem;
    background: rgba(255, 255, 255, .07);
    flex-shrink: 0;
}

/* CTA principal */
.phase-cta {
    flex-shrink: 0;
    min-height: 50px;
    padding: 0 28px;
    font-size: .95rem;
    font-weight: 700;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 18px;
    align-items: start;
}

.contact-sidebar {
    display: grid;
    gap: 18px;
}

.contact-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.contact-card p {
    margin: 0;
    color: var(--text-soft);
}

.contact-form-card {
    display: grid;
    gap: 1.4rem;
}

.contact-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.contact-form-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: .55rem 0 .45rem;
}

.contact-form-head p {
    margin: 0;
    color: var(--text-soft);
    max-width: 62ch;
}

.contact-price-pill {
    display: grid;
    gap: .18rem;
    min-width: 140px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 197, 66, .16);
    background: rgba(245, 197, 66, .07);
    text-align: right;
}

.contact-price-pill strong {
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1;
    color: var(--gold-light);
}

.contact-price-pill span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
}

.contact-form-grid .full {
    grid-column: 1 / -1;
}

.contact-form-note {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 197, 66, .12);
    background: rgba(245, 197, 66, .05);
    color: var(--text-soft);
    line-height: 1.65;
}

.contact-form-note strong {
    color: var(--gold-light);
}

.contact-form-status {
    min-height: 1.4rem;
    font-size: .9rem;
    color: var(--muted);
}

.contact-form-status.error {
    color: var(--danger);
}

.contact-form-status.success {
    color: var(--money);
}

.contact-card-primary {
    background:
        radial-gradient(circle at top right, rgba(245, 197, 66, .14), transparent 42%),
        rgba(255, 255, 255, .045);
    border-color: rgba(245, 197, 66, .18);
    box-shadow: var(--shadow), 0 0 60px rgba(245, 197, 66, .08);
}

.contact-method-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .42rem .8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 197, 66, .2);
    background: rgba(245, 197, 66, .08);
    color: var(--gold);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.contact-mail-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--text-strong);
    word-break: break-word;
}

.contact-mail-link:hover {
    color: var(--gold-light);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.contact-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-soft);
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(245, 197, 66, .28);
}

.contact-note {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 197, 66, .12);
    background: rgba(245, 197, 66, .05);
}

.contact-note a {
    color: var(--gold-light);
    font-weight: 700;
}

@media (max-width: 880px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-price-pill {
        width: 100%;
        text-align: left;
    }
}

/* Tabla de fases — filas zebra más pronunciadas, sin borde lateral */
.phase-table tbody tr:hover td {
    background: rgba(245, 197, 66, .04);
}

/* Columna # pequeña */
.phase-table th:first-child,
.phase-table td:first-child {
    width: 3rem;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
}

/* Celda de título de idea con categoría badge */
.pt-idea-cell { display: flex; flex-direction: column; gap: .25rem; }
.pt-idea-name { font-weight: 700; color: var(--text-strong); line-height: 1.3; }
.pt-idea-desc { font-size: .78rem; color: var(--muted); line-height: 1.45; max-width: 48ch; }
.pt-idea-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Score neto en tabla */
.pt-score {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 2.8rem;
    text-align: center;
}
.pt-score.positive { color: var(--money); }
.pt-score.negative { color: var(--danger); }
.pt-score.zero     { color: var(--muted); }

/* Botones de voto compactos en tabla */
.pt-vote-wrap { display: flex; gap: 5px; align-items: center; }
.pt-vbtn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .78rem;
    font-weight: 700;
    padding: .28rem .7rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--ease);
}
.pt-vbtn:hover:not(:disabled) { border-color: rgba(245, 197, 66, .3); color: var(--gold); }
.pt-vbtn:disabled { opacity: .4; cursor: default; }
.pt-vbtn.my-vote-up   { border-color: var(--money); color: var(--money); background: rgba(52, 211, 153, .08); }
.pt-vbtn.my-vote-down { border-color: var(--danger); color: var(--danger); background: rgba(251, 113, 133, .08); }

/* Dominio en Nirvana */
.pt-domain a {
    color: var(--money-light);
    font-size: .82rem;
    text-decoration: none;
}
.pt-domain a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .phase-footer { flex-direction: column; align-items: flex-start; }
    .phase-cta    { width: 100%; text-align: center; }
    .phase-hero h1 { font-size: 2rem; }
    .phase-stats  { gap: 1.4rem; }
    .phase-stat-val { font-size: 1.4rem; }
    .pt-idea-desc { display: none; }
}

/* ─── Skeleton loader para DataTable AJAX ─── */
.dt-skeleton { height: 18px; background: linear-gradient(90deg, var(--surface-2, #1a1535) 25%, var(--surface-3, #231d48) 50%, var(--surface-2, #1a1535) 75%); background-size: 200% 100%; animation: dt-shimmer 1.2s infinite; border-radius: 4px; }
@keyframes dt-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.dt-skeleton-row td { padding: 10px 12px !important; }
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: rgba(250, 204, 21, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Discover ideas */
.discover-shell {
    display: grid;
    gap: 18px;
}

.discover-stage {
    display: grid;
    gap: 1.4rem;
    overflow: hidden;
}

.discover-stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.discover-stage-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin: .45rem 0 0;
}

.discover-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 197, 66, .16);
    background: rgba(245, 197, 66, .06);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.discover-stage-progress {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.discover-stage-progress span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.4rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 600;
}

.discover-stage-progress strong {
    color: var(--text-strong);
    font-size: .98rem;
    font-family: var(--font-heading);
}

.discover-app {
    display: grid;
    gap: 1rem;
}

.discover-stack-frame {
    position: relative;
    min-height: min(72vh, 600px);
    padding-bottom: 14px;
}

.discover-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.35rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(245, 197, 66, .18), transparent 30%),
        radial-gradient(circle at 12% 85%, rgba(52, 211, 153, .14), transparent 28%),
        linear-gradient(180deg, rgba(11, 15, 30, .98), rgba(7, 10, 20, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow), 0 0 60px rgba(245, 197, 66, .08);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .28s ease, box-shadow .28s ease;
    overflow: hidden;
}

.discover-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .06);
    pointer-events: none;
}

.discover-card-current {
    z-index: 2;
    touch-action: pan-y;
    user-select: none;
}

.discover-card-current.is-dragging {
    transition: none;
    cursor: grabbing;
}

.discover-card-current.is-leaving-up {
    transform: translate3d(130%, -18px, 0) rotate(18deg);
    opacity: 0;
}

.discover-card-current.is-leaving-down {
    transform: translate3d(-130%, -18px, 0) rotate(-18deg);
    opacity: 0;
}

.discover-card-current.is-skipping {
    transform: translate3d(0, 30px, 0) scale(.94);
    opacity: 0;
}

.discover-card-preview {
    z-index: 1;
    transform: translateY(18px) scale(.95);
    opacity: .42;
    pointer-events: none;
    filter: saturate(.72);
}

.discover-card-preview.is-hidden {
    opacity: 0;
}

.discover-card-preview .discover-card-desc {
    display: none;
}

.discover-card.is-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.discover-card-top,
.discover-card-footer {
    position: relative;
    z-index: 1;
}

.discover-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.discover-chip,
.discover-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 2rem;
    padding: .45rem .78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
    color: var(--text-soft);
    font-size: .77rem;
    font-weight: 700;
}

.discover-chip {
    border-color: rgba(245, 197, 66, .18);
    background: rgba(245, 197, 66, .08);
    color: var(--gold-light);
}

.discover-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 2.5rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.discover-score.is-positive {
    color: var(--money);
    border-color: rgba(52, 211, 153, .24);
    background: rgba(52, 211, 153, .1);
}

.discover-score.is-negative {
    color: var(--danger);
    border-color: rgba(251, 113, 133, .24);
    background: rgba(251, 113, 133, .1);
}

.discover-score.is-neutral {
    color: var(--text-soft);
}

.discover-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .9rem;
    align-content: start;
}

.discover-card-kicker {
    margin: 0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.discover-card-body h3 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: .95;
    margin: 0;
    color: var(--text-strong);
}

.discover-card-desc {
    margin: 0;
    max-width: 56ch;
    font-size: 1rem;
    line-height: 1.72;
    color: var(--text-soft);
}

.discover-card-footer {
    display: grid;
    gap: .9rem;
    margin-top: auto;
}

.discover-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.discover-card-link,
.discover-inline-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--gold-light);
    font-weight: 700;
}

.discover-card-link:hover,
.discover-inline-link:hover {
    color: #fff0be;
}

.discover-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.discover-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 68px;
    padding: .9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease), opacity var(--ease);
}

.discover-action:hover:not(:disabled) {
    transform: translateY(-1px);
}

.discover-action:disabled {
    opacity: .5;
    cursor: default;
}

.discover-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: 1rem;
    font-weight: 900;
}

.discover-action-up:hover:not(:disabled),
.discover-action-up:focus-visible {
    color: var(--money);
    border-color: rgba(52, 211, 153, .28);
    background: rgba(52, 211, 153, .1);
}

.discover-action-down:hover:not(:disabled),
.discover-action-down:focus-visible {
    color: var(--danger);
    border-color: rgba(251, 113, 133, .28);
    background: rgba(251, 113, 133, .1);
}

.discover-action-skip:hover:not(:disabled),
.discover-action-skip:focus-visible {
    color: var(--gold-light);
    border-color: rgba(245, 197, 66, .28);
    background: rgba(245, 197, 66, .1);
}

.discover-note-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.discover-note {
    margin: 0;
    color: var(--text-soft);
    font-size: .92rem;
}

.discover-note strong {
    color: var(--gold-light);
}

.discover-live {
    min-height: 1.2rem;
    color: var(--muted);
    font-size: .88rem;
}

.discover-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.discover-metric {
    display: grid;
    gap: .25rem;
    padding: 1.1rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(16px);
}

.discover-metric strong {
    color: var(--text-strong);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
    font-family: var(--font-display);
}

.discover-metric span {
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.discover-swipe-badge {
    position: absolute;
    top: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: .65rem 1rem;
    border-radius: 16px;
    border: 2px solid currentColor;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transform: scale(.9) rotate(0deg);
    transition: opacity .15s ease, transform .15s ease;
}

.discover-swipe-badge-up {
    right: 22px;
    color: var(--money);
    background: rgba(52, 211, 153, .12);
}

.discover-swipe-badge-down {
    left: 22px;
    color: var(--danger);
    background: rgba(251, 113, 133, .12);
}

.discover-stack-frame.is-leaning-up .discover-swipe-badge-up {
    opacity: 1;
    transform: scale(1) rotate(8deg);
}

.discover-stack-frame.is-leaning-down .discover-swipe-badge-down {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
}

.discover-empty-state {
    text-align: center;
}

.discover-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(245, 197, 66, .08);
    border: 1px solid rgba(245, 197, 66, .16);
    color: var(--gold-light);
    font-size: 2rem;
}

.discover-empty-card {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
}

.discover-empty-card h3 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0;
}

.discover-empty-card p {
    margin: 0;
    color: var(--text-soft);
}

.discover-empty-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(245, 197, 66, .09);
    border: 1px solid rgba(245, 197, 66, .18);
    color: var(--gold-light);
    font-size: 1.6rem;
}

.discover-empty-card-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.discover-noscript {
    text-align: center;
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .discover-stage-head,
    .discover-note-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .discover-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .discover-stack-frame {
        min-height: 480px;
    }

    .discover-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .discover-card::before {
        inset: 12px;
        border-radius: 18px;
    }

    .discover-card-body h3 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .discover-card-desc {
        font-size: .94rem;
        line-height: 1.64;
    }

    .discover-actions {
        gap: .55rem;
    }

    .discover-action {
        min-height: 60px;
        padding: .8rem .65rem;
        gap: .45rem;
        font-size: .82rem;
    }

    .discover-action-icon {
        width: 1.75rem;
        min-width: 1.75rem;
        height: 1.75rem;
    }

    .discover-metrics {
        grid-template-columns: 1fr;
    }
}

/* Discover ideas overrides: vista simple, sin metadatos */
.discover-stage-head-simple {
    display: grid;
    gap: 1rem;
}

.discover-intro-copy {
    display: grid;
    gap: .85rem;
    max-width: none;
}

.discover-intro-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: .98;
}

.discover-intro-copy p {
    margin: 0;
    max-width: 72ch;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.discover-intro-copy strong {
    color: var(--gold-light);
}

.discover-intro-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.discover-stage-foot {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    padding-top: .25rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.discover-stage-foot span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.2rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 600;
}

.discover-stage-foot strong {
    color: var(--text-strong);
    font-family: var(--font-heading);
    font-size: .95rem;
}

.discover-card {
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.discover-card-body {
    width: 100%;
    max-width: none;
    gap: 1rem;
}

.discover-card-body.is-preview {
    align-content: center;
}

.discover-card-body h3 {
    max-width: none;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: .94;
}

.discover-card-desc {
    max-width: none;
    width: 100%;
    font-size: 1.04rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.discover-card-footer {
    gap: 1rem;
}

.discover-card-link {
    width: fit-content;
}

.discover-actions {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-card-top,
.discover-chip,
.discover-score,
.discover-card-meta,
.discover-meta-pill {
    display: none !important;
}

@media (max-width: 900px) {
    .discover-intro-actions,
    .discover-stage-foot {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .discover-intro-copy h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .discover-intro-copy p {
        font-size: .94rem;
        line-height: 1.62;
    }

    .discover-card-body h3 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .discover-card-desc {
        font-size: .95rem;
        line-height: 1.62;
    }

    .discover-actions {
        grid-template-columns: 1fr;
    }
}
