/* ============================================================================
   ROSSTRA — Political Intelligence · Landing
   Editorial, oscura, seguridad de nivel electoral.
   ========================================================================== */

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --bg:        #0a0a0b;
  --bg-2:      #0c0c0e;
  --surface:   #101012;
  --surface-2: #16161a;
  --surface-3: #1c1c21;
  --border:        rgba(255,255,255,.07);
  --border-2:      rgba(255,255,255,.11);
  --border-strong: rgba(255,255,255,.16);

  --text:      #edeae2;
  --text-2:    #b7b4ab;
  --dim:       #8a887f;
  --muted:     #6a685f;
  --faint:     #4c4a44;

  --live:      #4ade80;
  --live-soft: rgba(74,222,128,.13);
  --live-text: #7fe3a6;
  --amber:     #d9a441;
  --amber-soft:rgba(217,164,65,.13);
  --amber-text:#e3ba69;
  --blue-text: #95a3f2;
  --blue-soft: rgba(124,140,248,.13);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  --container: 1220px;
  --section-y: clamp(76px, 9vw, 132px);
  --nav-h: 76px;
  --r: 14px;
}

/* ---- Base ----------------------------------------------------------------- */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }

/* Silver-gradient emphasis for serif headlines */
.grad {
  background: linear-gradient(102deg, #f1efe8 4%, #a9a69c 46%, #6f6d64 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic;
}
em.grad { font-style: italic; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); display: inline-flex; gap: .6em; align-items: center;
}
.eyebrow .num { color: var(--muted); }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Status tags ---------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3em .6em; border-radius: 6px; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-live    { color: var(--live-text); }
.tag-live::before { box-shadow: 0 0 8px var(--live); animation: pulse 2s ease-in-out infinite; }
.tag-fav     { color: var(--live-text); background: var(--live-soft);  border: 1px solid rgba(74,222,128,.2); }
.tag-risk    { color: var(--amber-text); background: var(--amber-soft); border: 1px solid rgba(217,164,65,.25); }
.tag-neutral { color: var(--blue-text);  background: var(--blue-soft);  border: 1px solid rgba(124,140,248,.22); }
.tag-ok      { color: var(--live-text); background: var(--live-soft);  border: 1px solid rgba(74,222,128,.22); }
.tag-demora  { color: var(--amber-text); background: var(--amber-soft); border: 1px solid rgba(217,164,65,.28); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.badge-solid {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .32em .6em; border-radius: 6px; background: #d6a441; color: #17130a;
}
.badge-solid::before { content:""; width:5px; height:5px; border-radius:50%; background: currentColor; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 15px; font-weight: 600; letter-spacing: .005em;
  padding: 14px 22px; border-radius: 9px; transition: .2s ease;
  border: 1px solid transparent;
}
.btn .icon { width: 17px; height: 17px; stroke-width: 2; }
.btn-primary { background: #f3f1ea; color: #0c0c0d; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.015); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--border-2); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: .3s ease;
}
.nav.scrolled {
  background: rgba(10,10,11,.82); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .16em; }
.brand-sep { width: 1px; height: 22px; background: var(--border-strong); }
.brand-tag { font-size: 11px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.nav-menu { display: flex; gap: 34px; }
.nav-menu a { font-size: 15px; color: var(--text-2); transition: color .2s; }
.nav-menu a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { background: #f3f1ea; color: #0c0c0d; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: .2s; }
.nav-cta:hover { background: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--border-2); border-radius: 8px; }

/* ---- Grid backdrop -------------------------------------------------------- */
.grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 78%);
}

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-2); padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,.02); margin-bottom: 34px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 10px var(--live); animation: pulse 2s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: 1.02; font-weight: 500; }
.hero h1 .grad { display: inline; }
.hero-sub { margin: 30px auto 0; max-width: 620px; font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-2); line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-trust { margin-top: 52px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-trust .sep { color: var(--faint); }

/* ---- Section scaffolding -------------------------------------------------- */
section { position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 3.9vw, 3.4rem); line-height: 1.06; margin-top: 18px; }
.section-head p { margin-top: 20px; color: var(--text-2); font-size: 17px; line-height: 1.6; }

/* ---- Dashboard mockup ----------------------------------------------------- */
.platform { padding: clamp(20px,4vw,52px) 0 var(--section-y); }
.dash-wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.dash {
  border: 1px solid var(--border-2); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #121215, #0d0d0f);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
}
.dash-chrome { display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; display: block; }
.chrome-path { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.chrome-path b { color: var(--text-2); font-weight: 500; }
.chrome-right { margin-left: auto; display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dash-body { display: grid; grid-template-columns: 210px 1fr; min-height: 420px; }
.dash-side { border-right: 1px solid var(--border); padding: 20px 14px;
  /* Desenfocado A PROPÓSITO: el público general ve que hay una lista densa de módulos
     (intriga, "hay mucho aquí") pero no puede leer qué es cada función del sistema.
     El resto del dashboard queda nítido para que se lea como velado, no como un bug. */
  filter: blur(3.5px); -webkit-filter: blur(3.5px); user-select: none; pointer-events: none; }
.side-group + .side-group { margin-top: 16px; }
.side-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-2); margin-bottom: 1px; white-space: nowrap; }
.side-item .icon { width: 15px; height: 15px; color: var(--dim); flex-shrink: 0; }
.side-item.active { background: rgba(255,255,255,.05); color: var(--text); }
.side-item .side-badge { margin-left: auto; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.side-dot { width: 6px; height: 6px; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.side-dot.g { background: var(--live); box-shadow: 0 0 7px var(--live); }
.side-dot.a { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.dash-main { padding: 26px 28px; position: relative; }
.metric-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.metric-row { display: flex; align-items: baseline; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.metric-value { font-family: var(--serif); font-size: clamp(48px, 6vw, 74px); line-height: .9; font-weight: 500; }
.metric-value small { font-size: .5em; color: var(--text-2); }
.metric-delta { font-size: 14px; color: var(--live-text); font-weight: 500; }
.chart { position: relative; margin-top: 20px; }
.chart svg { width: 100%; height: auto; }
.chart-tip { position: absolute; top: 2px; right: 0; font-size: 12px; font-family: var(--mono);
  background: #17171b; border: 1px solid var(--border-2); border-radius: 7px; padding: 6px 10px; color: var(--text); }
.chart-tip b { color: var(--live-text); }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.dash-insight { display: flex; align-items: center; gap: 10px; margin-top: 16px;
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.012); }
.dash-insight .icon { width: 15px; height: 15px; color: var(--live-text); flex-shrink: 0; }
.dash-insight b { color: var(--text); font-weight: 600; }
.mini-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 12px; background: rgba(255,255,255,.012); }
.mini-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-top .up { color: var(--live-text); font-family: var(--mono); letter-spacing: 0; }
.mini-val { font-family: var(--serif); font-size: 30px; margin-top: 10px; }
.mini-val small { font-size: .5em; color: var(--dim); }
.spark { margin-top: 8px; }
.spark svg { width: 100%; height: 40px; }

/* Floating cards */
.float { position: absolute; z-index: 3; background: #17171b; border: 1px solid var(--border-2);
  border-radius: 12px; padding: 15px 17px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); width: 260px; }
.float-risk { top: 76px; right: -26px; }
.float-brief { bottom: -30px; right: -26px; } /* abajo-derecha: el sidebar ahora ocupa toda la columna izquierda */
.float-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.float-title { font-size: 13px; font-weight: 600; color: var(--text); }
.float-body { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.float-kicker { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---- Feature strip -------------------------------------------------------- */
.strip { padding: 0 0 var(--section-y); text-align: center; }
.strip-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.strip-chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 26px; }
.chip { display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: rgba(255,255,255,.012); }
.chip .icon { color: var(--text-2); flex-shrink: 0; }
.chip span { font-size: 14.5px; }
.chip b { font-weight: 600; color: var(--text); }
.chip i { font-style: normal; color: var(--dim); }

/* ---- Split pillar sections ------------------------------------------------ */
.pillar { padding: var(--section-y) 0; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.pillar.reverse .pillar-visual { order: -1; }
.pillar-text h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; margin-top: 20px; }
.pillar-text p { margin-top: 20px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.checklist { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--text-2); }
.check .icon { width: 18px; height: 18px; color: var(--live-text); stroke-width: 2; flex-shrink: 0; }

/* generic product card */
.card { border: 1px solid var(--border-2); border-radius: 16px; background: linear-gradient(180deg,#111114,#0d0d10);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.75); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* Feed de señales */
.feed-list { padding: 6px 4px; }
.feed-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 16px; }
.feed-item + .feed-item { border-top: 1px solid var(--border); }
.feed-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-2); }
.feed-ic .icon { width: 16px; height: 16px; }
.feed-ic.fav { color: var(--live-text); border-color: rgba(74,222,128,.3); background: var(--live-soft); }
.feed-ic.risk { color: var(--amber-text); border-color: rgba(217,164,65,.3); background: var(--amber-soft); }
.feed-ic.neutral { color: var(--blue-text); border-color: rgba(124,140,248,.28); background: var(--blue-soft); }
.feed-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.feed-time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.feed-text { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.term { font-family: var(--mono); font-size: 12.5px; background: #1a1a1f; border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 7px; color: var(--text); white-space: nowrap; }

/* Cobertura territorial */
.cover { padding: 26px; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); width: 150px; height: 150px; }
.ring-track { stroke: rgba(255,255,255,.08); }
.ring-prog { stroke: #f2f0ea; stroke-linecap: round; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-family: var(--serif); font-size: 34px; display: block; }
.ring-label span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row .bar-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.bar-row .bar-top b { font-weight: 600; }
.bar-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,#8f8d86,#f2f0ea); }

/* Copiloto chat */
.chat { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.msg-av { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--border-2); color: var(--dim); }
.msg-av.ai { background: #f2f0ea; color: #0c0c0d; border-color: transparent; font-family: var(--serif); }
.msg-name { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.msg-text { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.msg-text em { color: var(--text); font-style: italic; font-family: var(--serif); }
.msg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* 3 big stat cards */
.statcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.stat { border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; background: rgba(255,255,255,.012); }
.stat-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat-big { font-family: var(--serif); font-size: 52px; line-height: 1; margin-top: 14px; }
.stat-big small { font-size: .42em; color: var(--dim); }
.stat-sub { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.stat-rows { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.stat-r { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.stat-r .d { width: 7px; height: 7px; border-radius: 50%; }
.stat-r .d.g { background: var(--live); } .stat-r .d.a { background: var(--amber); } .stat-r .d.m { background: #55545c; }
.stat-r .lab { color: var(--text-2); } .stat-r .v { margin-left: auto; font-weight: 600; }
.stat-r .chg { font-family: var(--mono); font-size: 12px; color: var(--live-text); width: 54px; text-align: right; white-space: nowrap; }
.stat-r .chg.dn { color: var(--live-text); }

/* ---- Doctrine + platform intro -------------------------------------------- */
.doctrine { padding: var(--section-y) 0 clamp(30px,5vw,60px); text-align: center; position: relative; overflow: hidden; }
.quote { max-width: 860px; margin: 0 auto; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.28; color: var(--text); }
.quote-cite { margin-top: 30px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.intro { text-align: center; padding: clamp(40px,6vw,80px) 0 0; }
.intro-icon { width: 74px; height: 74px; margin: 0 auto 30px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg,#1a1a1f,#0f0f12); border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.intro-icon .icon { width: 30px; height: 30px; color: var(--text); }
.intro h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 18px; }
.intro p { max-width: 560px; margin: 20px auto 0; color: var(--text-2); font-size: 17px; }

/* ---- Six pillars grid ----------------------------------------------------- */
.pillars { padding: clamp(46px,6vw,74px) 0 var(--section-y); }
.pillars-grid { border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: repeat(3,1fr); background: var(--border); gap: 1px; }
.pcell { background: var(--bg); padding: 34px 30px; transition: background .25s; }
.pcell:hover { background: #0f0f12; }
.pcell-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border-2); background: rgba(255,255,255,.02); margin-bottom: 22px; }
.pcell-icon .icon { width: 22px; height: 22px; color: var(--text); }
.pcell h3 { font-size: 20px; font-weight: 600; font-family: var(--serif); }
.pcell p { margin-top: 12px; font-size: 14.5px; color: var(--dim); line-height: 1.55; }

/* ---- Why Rosstra ---------------------------------------------------------- */
.why { padding: var(--section-y) 0; }
.why-head { max-width: 620px; }
.why-head h2 { font-size: clamp(2.1rem,3.9vw,3.3rem); line-height: 1.08; margin-top: 18px; }
.why-head p { margin-top: 20px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.why-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 52px; }
.why-card { border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); transition: .25s; }
.why-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.why-card .why-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border-2); margin-bottom: 44px; }
.why-card .why-ic .icon { width: 21px; height: 21px; color: var(--text); }
.why-card h3 { font-size: 17px; font-weight: 600; font-family: var(--sans); }
.why-card p { margin-top: 12px; font-size: 13.5px; color: var(--dim); line-height: 1.55; }

/* ---- Día D ---------------------------------------------------------------- */
.diad { padding: var(--section-y) 0; position: relative; }
.consola { }
.consola-top { padding: 24px 26px; border-bottom: 1px solid var(--border); position: relative; }
.consola-big { font-family: var(--serif); font-size: 58px; line-height: 1; }
.consola-big small { font-size: .4em; color: var(--dim); }
.consola-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  font-family: var(--mono); margin-top: 8px; }
.consola-chart { position: absolute; right: 26px; top: 26px; width: 46%; }
.consola-chart svg { width: 100%; height: auto; }
.consola-tip { position: absolute; top: -6px; right: 0; font-family: var(--mono); font-size: 12px;
  background: #17171b; border: 1px solid var(--border-2); border-radius: 7px; padding: 5px 9px; }
.consola-tip b { color: var(--live-text); }
.consola-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-top: 6px; }
.reg { padding: 6px 4px; }
.reg-title { padding: 14px 18px 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.reg-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 18px; font-family: var(--mono); font-size: 13px; }
.reg-row + .reg-row { border-top: 1px solid var(--border); }
.reg-time { color: var(--muted); }
.reg-text { color: var(--text-2); }
.reg-text b { color: var(--text); font-weight: 500; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { padding: var(--section-y) 0; }
.faq-list { max-width: 880px; margin: 52px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; text-align: left; font-size: clamp(16px,1.6vw,18px); font-weight: 600; color: var(--text); }
.faq-sign { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; background: var(--text-2);
  top: 50%; left: 50%; transform: translate(-50%,-50%); transition: .25s; }
.faq-sign::before { width: 14px; height: 1.5px; }
.faq-sign::after { width: 1.5px; height: 14px; }
.faq-item.open .faq-sign::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 4px 26px; max-width: 680px; color: var(--dim); font-size: 15.5px; line-height: 1.6; }

/* ---- CTA ------------------------------------------------------------------ */
.cta { padding: var(--section-y) 0 clamp(60px,7vw,90px); text-align: center; position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.4rem,4.6vw,4rem); margin-top: 30px; line-height: 1.04; }
.cta p { max-width: 540px; margin: 24px auto 0; color: var(--text-2); font-size: 17px; }
.cta-note { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* ---- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: #0b0b0c; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { font-size: 24px; }
.footer-brand .brand-tag { display: block; margin-top: 20px; }
.footer-col h4 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: var(--text-2); margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); }

/* ---- Reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.chart-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.in .chart-line { animation: draw 1.8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .float { display: none; }
  .strip-chips, .why-cards { grid-template-columns: repeat(2,1fr); }
  .statcards { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2,1fr); }
  .consola-chart { position: static; width: 100%; margin-top: 18px; }
  .consola-tip { display: none; }
}
@media (max-width: 820px) {
  .container { padding: 0 22px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillar.reverse .pillar-visual { order: 0; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-stats { grid-template-columns: 1fr; }
  .cover { grid-template-columns: 1fr; text-align: center; }
  .ring { margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .strip-chips, .why-cards, .pillars-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .btn { width: 100%; justify-content: center; }
  .reg-row { grid-template-columns: 64px 1fr; }
  .reg-row .tag { grid-column: 2; justify-self: start; }
}

/* ---- Mobile menu ---------------------------------------------------------- */
.mobile-menu { display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(9,9,10,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  padding: 20px 22px 28px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 8px; font-size: 17px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* Nav "Ingresar" + enlaces legales del footer (integración Laravel) */
.nav-login { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-login:hover { color: var(--text); }
.footer-legal { display: inline-flex; gap: 18px; }
.footer-legal a { color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--text-2); }

/* ---- Selector de idioma (ES/EN) con banderas ------------------------------ */
.lang-switch { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--border-2);
  border-radius: 9px; padding: 3px; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); transition: .2s; }
.lang-btn .flag { width: 20px; height: 13px; border-radius: 2px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.lang-btn:hover { color: var(--text-2); }
.lang-btn.active { background: rgba(255,255,255,.09); color: var(--text); }

/* Logo (imagen) del nav y del footer */
.brand-logo { height: 24px; width: auto; display: block; }
.footer-brand .brand-logo { height: 28px; }

@media (max-width: 560px) {
  .brand-sep, .brand-tag { display: none; }
  .brand-logo { height: 21px; }
  .lang-btn span { display: none; }   /* solo banderas en pantallas chicas */
  .lang-btn { padding: 6px; }
}
