/* ============================================================
   Renewbify · Landing comercial
   Hereda el design system del panel (operator-os.tokens.css):
   negro absoluto + amarillo Renewbify #FEE600 quirúrgico,
   Geist para lectura, Neue Helvetica Condensed Heavy para marca.
   ============================================================ */

/* Renewbify display face — condensada heavy, solo para wordmark + titulares */
@font-face {
    font-family: 'Neue Helvetica Condensed';
    src: url('neue-helvetica-condensed-87-heavy.otf') format('opentype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Renewbify neutral ramp — negro #000000 / gris #1F1F1F / blanco #FFFFFC */
    --z-1000: #000000;
    --z-975:  #0A0A0A;
    --z-950:  #0F0F0F;
    --z-925:  #161616;
    --z-900:  #1F1F1F;
    --z-875:  #242424;
    --z-850:  #2B2B2B;
    --z-800:  #333333;
    --z-700:  #4F4F4F;
    --z-600:  #666666;
    --z-500:  #858585;
    --z-400:  #A8A8A8;
    --z-300:  #D4D4D4;
    --z-200:  #E5E5E5;
    --z-100:  #F4F4F4;
    --z-50:   #FFFFFC;

    /* Acento — amarillo Renewbify #FEE600, usado quirúrgicamente */
    --amber:        #FEE600;
    --amber-bright: #FFF04D;
    --amber-deep:   #C9B400;
    --amber-tint-10: rgba(254, 230, 0, .10);
    --amber-tint-20: rgba(254, 230, 0, .20);
    --amber-tint-30: rgba(254, 230, 0, .30);

    --emerald: #10B981;
    --emerald-tint: rgba(16, 185, 129, .12);
    --rose: #F43F5E;

    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
    --font-display: 'Neue Helvetica Condensed', 'Geist', -apple-system, sans-serif;

    --content-max: 1120px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;

    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
    --ease: cubic-bezier(.2, .8, .2, 1);

    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--z-1000);
    color: var(--z-200);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Glow ámbar sutil + grain para matar el "flat digital" */
    background-image:
        radial-gradient(1200px 520px at 78% -12%, rgba(254, 230, 0, .05), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--amber-tint-30); color: var(--z-50); }

/* ============ Brand lockup ============ */
.logo {
    display: block;
    width: 28px; height: 28px; flex-shrink: 0;
    object-fit: contain;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--z-50); text-decoration: none; }
.bl-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.bl-name {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 400; letter-spacing: .005em; color: var(--z-50);
}
.bl-tag {
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
}

/* ============ Botones ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-sans); font-weight: 600; font-size: 15px;
    padding: 12px 22px; border-radius: var(--r-md);
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: all 160ms var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #1A1200; }
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-1px); box-shadow: 0 0 0 1px var(--amber-tint-30), 0 8px 24px var(--amber-tint-20); }
.btn-ghost { background: transparent; color: var(--z-100); border-color: var(--z-800); }
.btn-ghost:hover { border-color: var(--z-700); background: var(--z-925); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }

/* ============ Nav ============ */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--z-875);
}
.nav-inner {
    max-width: var(--content-max); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; gap: 24px;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
    color: var(--z-400); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color 140ms var(--ease);
}
.nav-links a:hover { color: var(--z-50); }

/* ============ Hero ============ */
.hero { padding: 88px 24px 72px; }
.hero-grid {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; color: var(--z-400);
    margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); animation: pulse 2.4s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--emerald-tint); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .05); }
}
h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 400; letter-spacing: -.005em; line-height: 1.02;
    color: var(--z-50); margin-bottom: 24px;
    text-wrap: balance;
    max-width: 15ch;
}
.lede { font-size: 17px; color: var(--z-400); max-width: 54ch; margin-bottom: 32px; }
.lede strong { color: var(--z-100); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-foot { margin-top: 22px; font-size: 12.5px; color: var(--z-600); font-family: var(--font-mono); }

/* Panel mockup */
.hero-panel {
    background: var(--z-925);
    border: 1px solid var(--z-850);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: rise .7s var(--ease) both .15s;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel-chrome {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 18px; border-bottom: 1px solid var(--z-875);
    background: var(--z-950);
}
.panel-title { font-size: 13px; font-weight: 600; color: var(--z-100); }
.panel-clock { font-size: 13px; color: var(--amber); font-weight: 600; }
.panel-tz { color: var(--z-600); font-weight: 400; font-size: 11px; }
.oplog { padding: 8px 0; }
.oplog-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 18px; font-size: 13px;
    border-bottom: 1px solid var(--z-900);
}
.oplog-row:last-child { border-bottom: 0; }
.oplog-t { color: var(--z-600); font-size: 12px; flex-shrink: 0; }
.oplog-d { color: var(--z-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oplog-dim .oplog-d { color: var(--z-500); }
.chip {
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
    padding: 2px 8px; border-radius: 99px; flex-shrink: 0;
    letter-spacing: .04em;
}
.chip-ok { background: var(--emerald-tint); color: var(--emerald); }
.chip-warn { background: var(--amber-tint-10); color: var(--amber); }
.chip-up { background: var(--amber-tint-10); color: var(--amber); }
.chip-rose { background: rgba(244, 63, 94, .12); color: var(--rose); }
.chip-mute { background: var(--z-875); color: var(--z-500); }
.panel-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px; border-top: 1px solid var(--z-875);
    background: var(--z-950); font-size: 12px; color: var(--z-400);
}
.panel-foot-note { color: var(--z-600); font-style: italic; }

/* ============ Stats band ============ */
.stats { border-top: 1px solid var(--z-875); }
.stats-inner {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 0 24px;
}
.stat {
    padding: 30px 26px 30px 0; margin-right: 26px;
    border-right: 1px dashed var(--z-850);
    display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat-n { font-family: var(--font-display); font-size: 34px; font-weight: 400; color: var(--amber); letter-spacing: 0; line-height: 1; }
.stat-l { font-size: 12.5px; color: var(--z-500); line-height: 1.5; }

/* ============ Strip problema ============ */
.strip { border-top: 1px solid var(--z-875); border-bottom: 1px solid var(--z-875); background: var(--z-975); }
.strip-inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: 44px 24px; display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start;
}
.strip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--amber); padding-top: 6px; text-transform: uppercase; }
.strip-text { font-size: 19px; line-height: 1.55; color: var(--z-300); max-width: 70ch; }
.strip-text strong { color: var(--z-50); }

/* ============ Secciones ============ */
.section-head { max-width: var(--content-max); margin: 0 auto 56px; padding: 0 24px; }
.section-head h2, .impl h2, .cta-final h2, .trial-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.8vw, 46px); font-weight: 400;
    letter-spacing: -.004em; line-height: 1.04; color: var(--z-50);
}
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--z-400); max-width: 62ch; }

/* ============ Módulos ============ */
.modules { padding: 96px 0 40px; }
.module {
    max-width: var(--content-max); margin: 0 auto 72px; padding: 0 24px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.module-flip .module-copy { order: 2; }
.module-flip .module-visual { order: 1; }
.module-n { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: .14em; margin-bottom: 12px; }
.module h3 { font-size: 24px; font-weight: 650; letter-spacing: -.018em; color: var(--z-50); margin-bottom: 14px; }
.module-copy > p { color: var(--z-400); margin-bottom: 20px; }
.module-copy strong { color: var(--z-100); }
.module-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.module-list li {
    padding-left: 22px; position: relative; font-size: 14.5px; color: var(--z-300);
}
.module-list li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 10px; height: 2px; background: var(--amber); border-radius: 2px;
}

.mini-card {
    background: var(--z-925); border: 1px solid var(--z-850);
    border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.mini-row {
    display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 12px;
    padding: 11px 16px; font-size: 13px; align-items: center;
    border-bottom: 1px solid var(--z-900); color: var(--z-200);
}
.mini-head {
    font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .1em; color: var(--z-500); background: var(--z-950);
}
.mini-note {
    padding: 10px 16px; font-size: 11px; color: var(--z-500);
    background: var(--z-950); border-top: 1px solid var(--z-875);
}
.warn-t { color: var(--amber); }
.ok-t { color: var(--emerald); }
.dim-t { color: var(--z-600); }
.hi-t { color: var(--z-50); font-weight: 600; }
.exp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.exp-green { background: var(--emerald); }
.exp-orange { background: var(--amber); }
.msw {
    display: inline-block; width: 30px; height: 17px; border-radius: 99px;
    background: var(--z-800); position: relative;
}
.msw.on { background: var(--amber); }
.msw.on::after {
    content: ''; position: absolute; right: 2px; top: 2px;
    width: 13px; height: 13px; border-radius: 50%; background: #1A1200;
}

/* ============ Timeline noche ============ */
.night { padding: 80px 0; background: var(--z-975); border-top: 1px solid var(--z-875); border-bottom: 1px solid var(--z-875); }
.timeline { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.tl-row {
    display: grid; grid-template-columns: 90px 1fr; gap: 28px;
    padding: 22px 0; border-bottom: 1px dashed var(--z-850);
}
.tl-row:last-child { border-bottom: 0; }
.tl-time { font-family: var(--font-mono); color: var(--amber); font-size: 15px; font-weight: 600; padding-top: 2px; }
.tl-body { color: var(--z-400); font-size: 15.5px; }
.tl-body strong { color: var(--z-50); display: block; margin-bottom: 4px; font-size: 16.5px; }

/* ============ Implementación ============ */
.impl { padding: 96px 24px; }
.impl-grid {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
.impl-copy p { margin: 16px 0 28px; color: var(--z-400); font-size: 16.5px; max-width: 46ch; }
.impl-list { list-style: none; display: flex; flex-direction: column; }
.impl-list li {
    display: grid; grid-template-columns: 40px 1fr; gap: 18px;
    padding: 20px 0; border-bottom: 1px solid var(--z-875);
    font-size: 15px; color: var(--z-400);
}
.impl-list li:first-child { padding-top: 4px; }
.impl-list strong { color: var(--z-50); }
.impl-n {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--z-800); color: var(--amber);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
}

/* ============ FAQ ============ */
.faq { padding: 32px 24px 96px; }
.faq-grid {
    max-width: 860px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 10px;
}
details {
    background: var(--z-925); border: 1px solid var(--z-850);
    border-radius: var(--r-lg); overflow: hidden;
    transition: border-color 160ms var(--ease);
}
details:hover { border-color: var(--z-700); }
details[open] { border-color: var(--amber-tint-30); }
summary {
    cursor: pointer; padding: 18px 22px;
    font-weight: 600; font-size: 15.5px; color: var(--z-100);
    list-style: none; position: relative; padding-right: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+'; position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono); color: var(--amber); font-size: 18px;
    transition: transform 160ms var(--ease);
}
details[open] summary::after { content: '−'; }
details p { padding: 0 22px 20px; color: var(--z-400); font-size: 14.5px; max-width: 72ch; }

/* ============ CTA final ============ */
.cta-final { padding: 32px 24px 110px; }
.cta-box {
    max-width: 860px; margin: 0 auto; text-align: center;
    background:
        radial-gradient(600px 280px at 50% -40%, var(--amber-tint-10), transparent 70%),
        var(--z-925);
    border: 1px solid var(--z-850);
    border-radius: var(--r-xl);
    padding: 64px 48px;
    box-shadow: var(--shadow-lg);
}
.cta-box .kicker { justify-content: center; }
.cta-sub { margin: 18px 0 30px; color: var(--z-400); font-size: 16.5px; }
.cta-center { justify-content: center; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--z-875); background: var(--z-975); }
.footer-inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: 36px 24px; display: flex; justify-content: space-between;
    align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-legal { font-size: 12px; color: var(--z-600); max-width: 64ch; }

/* ============ Dolores ============ */
.pains { padding: 88px 0 24px; }
.pains-grid {
    max-width: var(--content-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.pcard {
    background: var(--z-925); border: 1px solid var(--z-850);
    border-left: 2px solid var(--rose);
    border-radius: var(--r-lg); padding: 22px 24px;
}
.pcard h4 { font-size: 16px; font-weight: 650; color: var(--z-50); margin-bottom: 8px; letter-spacing: -.01em; line-height: 1.25; }
.pcard p { font-size: 14px; color: var(--z-400); line-height: 1.55; }

/* ============ Y además (extras grid) ============ */
.extras { padding: 40px 0 24px; }
.extras-grid {
    max-width: var(--content-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.xcard {
    background: var(--z-925); border: 1px solid var(--z-850);
    border-radius: var(--r-lg); padding: 24px;
    transition: border-color 160ms var(--ease);
}
.xcard:hover { border-color: var(--z-700); }
.xcard h4 { font-size: 16px; font-weight: 650; color: var(--z-50); margin-bottom: 8px; letter-spacing: -.01em; }
.xcard p { font-size: 14px; color: var(--z-400); line-height: 1.55; }

/* ============ Notificaciones ============ */
.notify { padding: 88px 0; background: var(--z-975); border-top: 1px solid var(--z-875); border-bottom: 1px solid var(--z-875); }
.notify-grid {
    max-width: var(--content-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ncard {
    background: var(--z-925); border: 1px solid var(--z-850);
    border-radius: var(--r-lg); padding: 22px;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.ncard p { font-size: 14px; color: var(--z-400); line-height: 1.55; }
.ncard strong { color: var(--z-100); font-weight: 600; }

/* ============ Confianza ============ */
.trust { padding: 88px 24px; }
.trust-grid {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.tcard { padding-top: 18px; border-top: 2px solid var(--amber); }
.tcard h4 { font-size: 16px; font-weight: 650; color: var(--z-50); margin-bottom: 8px; letter-spacing: -.01em; }
.tcard p { font-size: 14px; color: var(--z-400); line-height: 1.55; }

/* ============ Prueba gratis ============ */
.trial { padding: 24px 24px 100px; }
.trial-box {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
    background:
        radial-gradient(620px 320px at 18% -30%, var(--amber-tint-10), transparent 70%),
        var(--z-925);
    border: 1px solid var(--amber-tint-30);
    border-radius: var(--r-xl);
    padding: 56px 52px;
    box-shadow: var(--shadow-lg);
}
.trial-copy .kicker { color: var(--amber); }
.trial-sub { margin: 18px 0 30px; color: var(--z-300); font-size: 17px; line-height: 1.6; }
.trial-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.trial-list li {
    padding-left: 28px; position: relative; font-size: 15px; color: var(--z-200); line-height: 1.5;
}
.trial-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: #1A1200; background: var(--amber);
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat { border-right: 0; padding: 18px 0; border-bottom: 1px dashed var(--z-850); }
    .hero-grid, .module, .impl-grid { grid-template-columns: 1fr; gap: 40px; }
    .module-flip .module-copy { order: 1; }
    .module-flip .module-visual { order: 2; }
    .strip-inner { grid-template-columns: 1fr; gap: 12px; }
    .extras-grid, .notify-grid, .pains-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .trial-box { grid-template-columns: 1fr; gap: 28px; padding: 40px 26px; }
    .nav-links { display: none; }
    .hero { padding-top: 56px; }
    .cta-box { padding: 48px 24px; }
    .tl-row { grid-template-columns: 64px 1fr; gap: 16px; }
}

@media (min-width: 921px) and (max-width: 1080px) {
    .extras-grid, .notify-grid, .pains-grid { grid-template-columns: repeat(2, 1fr); }
}
