/* ==========================================================================
   YieldPip · base del sitio
   Colores = los del panel en modo oscuro (Panel/assets/css/app.css).
   El verde y el rojo solo se usan cuando significan algo (ganancia, pérdida,
   estado), igual que en el panel. Lo principal va en el blanco roto del panel.
   ========================================================================== */

:root {
    --bg: #0e1012;          /* panel --bg */
    --bg-2: #121417;
    --surface: #15181b;     /* panel --surface */
    --surface-2: #1a1d21;   /* panel --surface-2 */
    --line: #22262b;
    --line-2: #2c3036;
    --tx: #e9e7e2;          /* panel --ink */
    --tx-2: #a9adb3;        /* panel --ink-2 */
    --tx-3: #6f747b;        /* panel --ink-3 */
    --up: #45b37e;          /* panel --pos */
    --up-soft: rgba(69, 179, 126, .12);
    --dn: #ec6a5a;          /* panel --neg */
    --amber: #d9a24a;       /* panel --warn */
    --focus: #7d9ef0;       /* panel --focus */

    /* Marca: los valores los pone assets/js/brand.js (selector «Marca»). La web es
       oscura, así que usa siempre la variante oscura de la paleta. */
    --brand: var(--brand-d, #e9e7e2);
    --on-brand: var(--on-brand-d, #0e1012);
    --brand-ink: var(--tx);
    --brand-ink-3: #4b5058;

    --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;

    --w: 1200px;
    --pad: clamp(20px, 4vw, 32px);
    --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01" 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.up { color: var(--up); } .dn { color: var(--dn); } .muted { color: var(--tx-3); }

.w { max-width: calc(var(--w) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* --- botones --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--brand); color: var(--on-brand); font-weight: 600; }   /* como .btn-primary del panel */
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: var(--surface-2); border-color: var(--line-2); color: var(--tx); }
.btn-secondary:hover { border-color: #3d424a; background: #1f2227; }
.btn-text { color: var(--tx-2); padding: 0 6px; }
.btn-text:hover { color: var(--tx); }
.arrow::after { content: "→"; transition: transform .15s; }
.arrow:hover::after { transform: translateX(2px); }

/* --- navegación --- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(10, 12, 15, .8); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; height: 64px; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.logo img, .logo-mark { width: 24px; height: 24px; flex: none; }
.logo-mark { display: inline-flex; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 14px; color: var(--tx-2); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--tx); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
/* Selector de idioma: inglés en la raíz, español en es/. */
.lang-switch { display: inline-flex; padding: 2px; margin-right: 4px; border: 1px solid var(--line-2); border-radius: 8px; }
.lang-switch a { padding: 4px 8px; border-radius: 6px; font: 500 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--tx-3); transition: color .15s, background-color .15s; }
.lang-switch a:hover { color: var(--tx); }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--tx); }
@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-in { justify-content: space-between; }
    .nav-cta .btn-text { display: none; }
}

/* --- tipografía de sección --- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13.5px; font-weight: 500; color: var(--brand); }
.h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.6; color: var(--tx-2); }
.body { color: var(--tx-2); }

/* --- captura del panel --- */
.frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0f1114; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 80px -40px rgba(0,0,0,.9); }
.frame img { width: 100%; }

/* --- tabla de bots --- */
.bots-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bots-table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--tx-3); padding: 0 16px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.bots-table td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bots-table tbody tr { transition: background-color .15s; }
.bots-table tbody tr:hover { background: var(--bg-2); }
.bots-table .name { font-weight: 600; font-size: 15.5px; }
.bots-table .desc { margin-top: 4px; color: var(--tx-3); font-size: 13.5px; max-width: 46ch; }
.bots-table .num { font-family: var(--mono); white-space: nowrap; text-align: right; }
.bots-table th.num { text-align: right; }
.sym { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--tx-2); margin: 0 4px 4px 0; }
.table-wrap { overflow-x: auto; }
.table-wrap .bots-table { min-width: 720px; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--tx-3); }

/* --- preguntas --- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--tx-3); border-bottom: 1.5px solid var(--tx-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { padding: 0 40px 22px 0; color: var(--tx-2); font-size: 15px; max-width: 70ch; }

/* --- pie --- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--tx-3); max-width: 32ch; font-size: 14px; }
.foot h4 { font-size: 13px; font-weight: 500; color: var(--tx); margin-bottom: 14px; }
.foot li + li { margin-top: 10px; }
.foot li a { color: var(--tx-3); transition: color .15s; }
.foot li a:hover { color: var(--tx); }
.foot-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--tx-3); font-size: 12.5px; line-height: 1.7; }
.foot-legal p + p { margin-top: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
