/* Tipografías propias: sin pedirle nada a Google, así nada bloquea el primer dibujado. */
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* Consorcio Vigía · página comercial — TucBBS
   Identidad: tinta #0E0E10, papel #F5F3F0, rojo de marca #E51A24.
   Tipografías: Outfit (títulos y cifras) + Figtree (texto). */

:root {
  --ink: #0e0e10;
  --ink-2: #18181c;
  --ink-3: #232329;
  --paper: #f5f3f0;
  --paper-2: #ebe8e3;
  --red: #e51a24;
  --red-dark: #b3121a;
  --ok: #1fa35b;
  --warn: #e89a0c;
  --water: #2f74b5;

  /* Superficies de los mockups de la plataforma */
  --app-bg: #111217;
  --app-2: #1b1d24;
  --app-3: #262933;
  --app-line: #2e313b;
  --app-dim: #9c9fab;

  --text-dark: #1a1a1e;
  --text-soft: #52525b;
  --line-light: #d9d5cf;

  --title: "Outfit", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--title); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 16px; }
h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4.2vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; font-weight: 600; }
.steps h3, .chart-head h3, .desk-side h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 18px; max-width: 68ch; }
a { color: inherit; }
img, svg { max-width: 100%; }
strong { font-weight: 700; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .15s;
}
.skip:focus { top: 12px; }

.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- secciones */

section { padding: clamp(64px, 9vw, 120px) 0; }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h2, section.dark h3 { color: #fff; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; color: var(--text-soft); }
.dark .lead { color: #c3c3cb; }
.kicker { font-family: var(--title); font-size: 15px; font-weight: 600; color: var(--red-dark); margin: 0 0 10px; }
.dark .kicker { color: #ff6b70; }

/* ---------------------------------------------------------------- botones */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 16px/1 var(--body);
  padding: 15px 24px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-small { padding: 11px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  transition: background .25s, box-shadow .25s;
}
.site-header.solid { background: rgba(14, 14, 16, .96); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand .mark { color: #fff; flex: none; }
.brand-names { display: grid; line-height: 1.15; }
.brand-names b { font-family: var(--title); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand-names span { font-size: 12px; color: #b9b9c2; display: flex; align-items: center; gap: 6px; }
.brand-names img { height: 13px; width: auto; }
.site-nav { display: none; margin-inline: auto; gap: 26px; }
.site-nav a { color: #d6d6dd; text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.header-cta { margin-left: auto; }
.site-header .btn-primary { box-shadow: 0 6px 20px rgba(229, 26, 36, .35); }

@media (min-width: 980px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 120px 0 64px; overflow: hidden; background: var(--ink); color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; animation: kenburns 26s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14, 14, 16, .96) 0%, rgba(14, 14, 16, .82) 42%, rgba(14, 14, 16, .55) 100%);
}
/* En el celular el texto cae sobre la parte iluminada de la foto: el velo va parejo y más denso. */
@media (max-width: 979px) {
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(14, 14, 16, .93) 0%, rgba(14, 14, 16, .86) 55%, rgba(14, 14, 16, .93) 100%);
  }
}
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); } }

.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(36px, 6vw, 64px); }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.hero h1 { margin-bottom: 10px; }
.hero .tagline { font-family: var(--title); font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; color: #fff; margin: 0 0 18px; line-height: 1.2; }
.hero p { color: #cfcfd7; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 26px; font-size: 14px; color: #c9c9d2; display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 163, 91, .7); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(31, 163, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 163, 91, 0); } }

/* ---------------------------------------------------------------- teléfono mockup */

.phone {
  width: min(310px, 78vw); margin-inline: auto; background: #05050a; border-radius: 34px; padding: 11px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .09);
}
.phone-screen { background: var(--app-bg); border-radius: 25px; overflow: hidden; color: #e7e8ee; font-size: 13px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; font-size: 11px; color: var(--app-dim); }
.phone-body { padding: 0 12px 16px; display: grid; gap: 9px; }
.phone-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  background: var(--app-2); border: 1px solid var(--app-line); border-radius: 11px; padding: 11px 12px;
}
.phone-row b { font-weight: 600; font-size: 14px; }
.phone-row small { grid-column: 1; color: var(--app-dim); font-size: 11.5px; }
.phone-row .val { grid-column: 2; grid-row: 1 / span 2; font-family: var(--title); font-size: 20px; font-weight: 700; text-align: right; }
.phone-row.alarm { border-color: rgba(229, 26, 36, .55); background: #241014; }
.phone-row.alarm .val { color: #ff8b8b; }
.state-ok { color: #57d493; } .state-warn { color: #f0b24a; } .state-bad { color: #ff7a7a; }

.toast {
  position: absolute; left: 50%; transform: translate(-50%, -18px); bottom: 26px; width: min(300px, 82vw);
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; display: flex; gap: 11px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
  font-size: 13.5px; line-height: 1.4; text-align: left;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-top: 5px; flex: none; }
.phone-wrap { position: relative; }

/* ---------------------------------------------------------------- bloques editoriales */

.split { display: grid; gap: clamp(30px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.narrow-media { grid-template-columns: 1fr .8fr; } }
/* Cualquier foto, esté donde esté: si el alto queda librado al atributo del HTML,
   la imagen se estira. Antes solo valía dentro de .split y las de las escenas salían deformadas. */
img.photo { border-radius: 14px; width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--text-soft); margin-top: 10px; }
.dark figcaption { color: #9a9aa4; }

.steps { counter-reset: step; display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step); font-family: var(--title); font-weight: 700; font-size: 16px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff;
}
.steps h3 { margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 16px; }
.dark .steps p { color: #b6b6bf; }

/* ---------------------------------------------------------------- tablas */

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
table.data thead th { font-family: var(--title); font-weight: 600; font-size: 14px; }
table.data tbody th { font-weight: 600; text-align: left; }
table.data tr:last-child td { border-bottom: none; }
.dark table.data th, .dark table.data td { border-color: #2c2c33; }
table.data .hl { font-weight: 600; }
.dark table.data .hl { color: #fff; }

@media (max-width: 760px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack tbody th { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--line-light); border-radius: 12px; padding: 6px 4px; margin-bottom: 14px; }
  .dark table.stack tr { border-color: #2c2c33; }
  table.stack td, table.stack tbody th { border: none; padding: 8px 14px; }
  table.stack td::before, table.stack tbody th::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
  .dark table.stack td::before, .dark table.stack tbody th::before { color: #9a9aa4; }
}

/* ---------------------------------------------------------------- tablero simulado */

.desk {
  background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 16px; overflow: hidden;
  color: #e7e8ee; box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.desk-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 18px; background: var(--app-2); border-bottom: 1px solid var(--app-line); }
.desk-top .site-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-top button.tab {
  background: var(--app-3); border: 1px solid var(--app-line); color: #d7d8e0; font: 500 13px var(--body);
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.desk-top button.tab[aria-pressed="true"] { background: #fff; color: #14141a; border-color: #fff; font-weight: 600; }
.desk-clock { margin-left: auto; font-family: var(--title); font-size: 15px; color: #fff; }
.demo-flag { font-size: 12px; color: var(--app-dim); border: 1px dashed var(--app-line); border-radius: 999px; padding: 4px 11px; }

.desk-grid { display: grid; gap: 1px; background: var(--app-line); }
@media (min-width: 860px) { .desk-grid { grid-template-columns: 1.6fr 1fr; } }
.desk-main, .desk-side { background: var(--app-bg); padding: 16px; }
.mods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mod { background: var(--app-2); border: 1px solid var(--app-line); border-radius: 12px; padding: 13px; display: grid; gap: 9px; }
.mod-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--app-dim); }
.mod-head .tag { font-family: var(--title); font-weight: 600; color: #cfd0d8; background: var(--app-3); border-radius: 5px; padding: 2px 7px; letter-spacing: .04em; }
.mod-head .led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: auto; flex: none; }
.mod-head .led.warn { background: var(--warn); } .mod-head .led.bad { background: var(--red); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.mod b { font-size: 15px; font-weight: 600; }
.mod .read { display: flex; align-items: baseline; gap: 7px; font-family: var(--title); }
.mod .read .big { font-size: 27px; font-weight: 700; }
.mod .read .unit { font-size: 13px; color: var(--app-dim); }
.mod .read .sub { margin-left: auto; font-size: 13px; color: var(--app-dim); font-family: var(--body); }
.mod.alarm { border-color: rgba(229, 26, 36, .6); background: #221115; }
.mod .bar { height: 7px; border-radius: 4px; background: #0c0d12; overflow: hidden; border: 1px solid var(--app-line); }
.mod .bar span { display: block; height: 100%; background: var(--water); transition: width .6s; }
.mod .bar.low span { background: var(--warn); } .mod .bar.crit span { background: var(--red); }
.tank { width: 52px; height: 62px; }

.desk-side h3 { font-size: 13px; text-transform: none; color: var(--app-dim); margin: 0 0 10px; font-weight: 600; }
.alarm-list, .audit-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.alarm-list li { border: 1px solid rgba(229, 26, 36, .5); background: #200f13; border-radius: 10px; padding: 10px 11px; display: grid; gap: 4px; }
.alarm-list li.warn { border-color: rgba(232, 154, 12, .5); background: #201806; }
.alarm-list li.ack { border-style: dashed; opacity: .75; }
.alarm-list li.closed { border-color: var(--app-line); background: var(--app-2); opacity: .7; }
.alarm-list time, .audit-list time { color: var(--app-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.audit-list li { border-bottom: 1px dashed var(--app-line); padding-bottom: 7px; color: #c8c9d2; }
.empty-note { color: var(--app-dim); font-size: 13px; }

.desk-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; background: var(--app-2); border-top: 1px solid var(--app-line); align-items: center; }
.desk-actions .btn { padding: 12px 18px; font-size: 14px; }
.desk-actions .hint { font-size: 13px; color: var(--app-dim); }
.link-quiet { background: none; border: none; color: var(--app-dim); font: 500 13px var(--body); text-decoration: underline; cursor: pointer; padding: 6px; }
.link-quiet:hover { color: #fff; }

/* hoja de confirmación del tablero */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(6, 6, 9, .72); display: grid; place-items: center; z-index: 80; padding: 18px; }
.sheet {
  background: var(--app-2); color: #e7e8ee; border: 1px solid var(--app-line); border-top: 3px solid var(--red);
  border-radius: 14px; padding: 22px; width: min(440px, 100%); display: grid; gap: 14px;
}
.sheet h4 { font-size: 19px; margin: 0; }
.sheet .warnbox { background: #2a1a05; border: 1px solid #6b4a0d; border-radius: 10px; padding: 12px; font-size: 14px; }
.sheet label { display: grid; gap: 6px; font-size: 13px; color: var(--app-dim); }
.sheet textarea {
  font: 400 14px var(--body); color: #e7e8ee; background: #0d0e13; border: 1px solid var(--app-line);
  border-radius: 8px; padding: 10px; min-height: 68px; resize: vertical;
}
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* gráfico */
.chart-card { margin-top: 14px; background: var(--app-2); border: 1px solid var(--app-line); border-radius: 12px; padding: 14px; }
.chart-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.chart-head h3 { margin: 0; }
.chart-head .ranges { margin-left: auto; display: flex; gap: 6px; }
.chart svg { width: 100%; height: 170px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--app-dim); margin-top: 8px; }
.legend i { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 6px; }

/* ---------------------------------------------------------------- conectividad (bloque rojo) */

.red-block { background: var(--red); color: #fff; }
.red-block h2, .red-block h3 { color: #fff; }
.red-block .lead { color: #ffe0e1; }
.red-block table.data th, .red-block table.data td { border-color: rgba(255, 255, 255, .28); }
.red-block .checklist li::before { background: #fff; }
.red-block .btn-ghost:hover { background: rgba(255, 255, 255, .18); }

.checklist { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; max-width: 76ch; }
.checklist li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------------------------------------------------------------- listas con ícono */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.feature-list svg { width: 21px; height: 21px; color: var(--red-dark); margin-top: 3px; }
.dark .feature-list svg { color: #ff6b70; }
.feature-list b { display: block; font-weight: 600; margin-bottom: 2px; font-family: var(--title); font-size: 17px; }
.feature-list span { color: var(--text-soft); font-size: 16px; }
.dark .feature-list span { color: #b6b6bf; }
.feature-cols { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .feature-cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- escenas */

.scene { display: grid; gap: clamp(26px, 4vw, 52px); align-items: center; padding: clamp(34px, 5vw, 56px) 0; border-top: 1px solid #2c2c33; }
@media (min-width: 900px) { .scene { grid-template-columns: 1fr 1fr; } .scene.flip .scene-media { order: -1; } }
.scene h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.scene .time { font-family: var(--title); color: var(--red-dark); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.dark .scene .time { color: #ff6b70; }
.scene .before { font-size: 15px; color: #9a9aa4; border-left: 2px solid #3a3a42; padding-left: 14px; margin-top: 18px; }
.scene-chart { background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 14px; padding: 16px; }
.scene-chart svg { width: 100%; height: 200px; }
.draw path.line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.draw.in path.line { animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- automatizaciones */

.switcher { display: inline-flex; background: var(--app-3); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.switcher button { background: none; border: none; color: #c9cad3; font: 600 14px var(--body); padding: 9px 16px; border-radius: 7px; cursor: pointer; }
.switcher button[aria-pressed="true"] { background: #fff; color: #14141a; }
.mode-demo { background: var(--app-2); border: 1px solid var(--app-line); border-radius: 12px; padding: 18px; color: #d9dae2; font-size: 15px; }
.mode-demo .msg { display: flex; gap: 12px; align-items: start; }
.mode-demo .msg svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.auto-group h3 { font-size: 19px; margin-bottom: 12px; }
.auto-cols { display: grid; gap: clamp(26px, 4vw, 40px); margin-top: 32px; }
@media (min-width: 900px) { .auto-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- roles / auditoría */

.audit-sample { background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 12px; padding: 16px; font-size: 14px; color: #ced0d8; }
.audit-sample div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--app-line); }
.audit-sample div:last-child { border: none; }
.audit-sample time { color: var(--app-dim); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- preguntas */

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line-light); border-radius: 12px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-family: var(--title); font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--red-dark); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--text-soft); }

/* ---------------------------------------------------------------- planes */

.plans { display: grid; gap: 18px; margin: 30px 0; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line-light); border-radius: 14px; padding: 24px; background: #fff; display: grid; gap: 10px; align-content: start; }
.plan.featured { border-color: var(--red); border-width: 2px; }
.plan h3 { margin: 0; }
.plan .price { font-family: var(--title); font-weight: 600; font-size: 17px; color: var(--red-dark); }
.plan ul { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 16px; }
.pilot { background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(26px, 4vw, 42px); margin-top: 20px; }
.pilot h3 { color: #fff; }
.pilot p { color: #c3c3cb; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #c3c3cb; padding: clamp(50px, 7vw, 80px) 0 40px; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: #e7e7ee; }
.site-footer a.btn-primary { color: #fff; }
.site-footer .logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid #26262d; margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: #85858f; display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------------------------------------------------------------- anexo */

.annex { border: 1px solid var(--line-light); border-radius: 12px; background: #fff; }
.annex summary { cursor: pointer; padding: 18px 20px; font-family: var(--title); font-weight: 600; font-size: 18px; }
.annex .annex-body { padding: 0 20px 20px; }

/* ---------------------------------------------------------------- reveal + motion */

.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }   /* sin JS el texto se ve igual */
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: scale(1.04); }
}

/* El navegador no gasta tiempo maquetando lo que todavía está lejos de la pantalla.
   Se excluyen el hero y el tablero simulado, que sí se ven o se miden enseguida. */
@supports (content-visibility: auto) {
  main > section:not(.hero):not(#cambios):not(#problema):not(#tablero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;   /* cerca del alto real: así el scroll no pega saltos */
  }
  @media print {
    main > section { content-visibility: visible; }
  }
}
