/* ============================================================================
   SOS Vecinos — Guía del cliente  ·  /tutorial
   ----------------------------------------------------------------------------
   Una sola página, para que buscar sea fácil: el Ctrl+F del navegador funciona,
   todo está a un scroll y nunca cambias de pantalla ni pierdes dónde ibas.
   Pero nace TODO PLEGADO: al abrir ves catorce títulos, no una muralla de texto.
   Tocas el que te interesa y se abre ahí mismo.

   · En computador: menú lateral FIJO (position: fixed, no depende del scroll).
   · En celular: barra fija abajo, al alcance del pulgar → Índice, Avance, Arriba.
   Móvil primero: casi todo el mundo abre esto desde el mismo celular donde
   tiene la app.
   ============================================================================ */

:root {
  --bg-primary:    #0A0A0F;
  --bg-secondary:  #101018;
  --bg-card:       rgba(255, 255, 255, 0.035);
  --bg-elevated:   #15151f;
  --bg-glass:      rgba(10, 10, 15, 0.92);
  --border-glass:  rgba(255, 255, 255, 0.09);
  --border-soft:   rgba(255, 255, 255, 0.06);
  --text-primary:  #FFFFFF;
  --text-secondary:#B2B2C4;
  --text-muted:    #6E6E85;
  --accent-red:    #E53935;
  --accent-red-soft: rgba(229, 57, 53, 0.13);
  --accent-cyan:   #00E5FF;
  --accent-cyan-soft: rgba(0, 229, 255, 0.11);
  --accent-green:  #00E676;
  --accent-green-soft: rgba(0, 230, 118, 0.11);
  --accent-amber:  #FFB74D;
  --accent-amber-soft: rgba(255, 183, 77, 0.11);
  --accent-violet: #B388FF;
  --font-heading:  'Inter', system-ui, -apple-system, sans-serif;
  --font-body:     'Outfit', system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --top-h:  56px;
  --barra-h: 60px;
  --hueco: calc(var(--barra-h) + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 14px);
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(0, 229, 255, .12);
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); }
[id] { scroll-margin-top: calc(var(--top-h) + 14px); }

/* ═══════════════════════════════════════════════════════════════════════════
   1. BARRA DE ARRIBA — fija, con el buscador siempre a la vista
   ═══════════════════════════════════════════════════════════════════════════ */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--top-h);
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.top__marca { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: #fff; }
.top__marca:hover { text-decoration: none; }
.top__marca img { width: 27px; height: 27px; border-radius: 50%; }
.top__marca span { display: none; }
.top__tag { display: none; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; color: var(--accent-cyan); border: 1px solid rgba(0,229,255,.35); background: var(--accent-cyan-soft); padding: 3px 7px; border-radius: 20px; text-transform: uppercase; }

.lupa { position: relative; flex: 1; min-width: 0; max-width: 460px; }
.lupa__ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; opacity: .75; }
.lupa input {
  width: 100%; height: 40px; padding: 0 38px 0 38px;
  background: var(--bg-elevated); border: 1px solid var(--border-glass);
  border-radius: 22px; color: #fff; font-family: var(--font-body); font-size: 14.5px; outline: none;
}
.lupa input::placeholder { color: var(--text-muted); }
.lupa input:focus { border-color: var(--accent-cyan); }
.lupa__x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--text-muted); font-size: 15px; cursor: pointer; display: none; border-radius: 50%; }
.lupa__x.on { display: block; }
.lupa__x:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   2. ESTRUCTURA
   ═══════════════════════════════════════════════════════════════════════════ */
.lienzo { padding-top: var(--top-h); }
.cuerpo { max-width: 860px; margin: 0 auto; padding: 20px 16px calc(var(--hueco) + 40px); }

/* ═══════════════════════════════════════════════════════════════════════════
   3. MENÚ LATERAL — solo en computador, y clavado de verdad
   ═══════════════════════════════════════════════════════════════════════════ */
.lado { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. PORTADA
   ═══════════════════════════════════════════════════════════════════════════ */
.portada { text-align: center; padding: 14px 0 6px; }
.portada__logo { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 10px 30px rgba(229,57,53,.32); }
.portada h1 { font-family: var(--font-heading); font-size: 29px; line-height: 1.14; font-weight: 900; letter-spacing: -1px; margin: 0 0 10px; }
.portada h1 em { font-style: normal; color: var(--accent-red); }
.portada p { color: var(--text-secondary); font-size: 15px; margin: 0 auto; max-width: 580px; }
.portada__chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 15px; }
.t-chip { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-glass); padding: 6px 12px; border-radius: 20px; }

/* — Seguir donde ibas — */
.sigues { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(0,229,255,.11), rgba(179,136,255,.08)); border: 1px solid rgba(0,229,255,.3); border-radius: var(--radius-lg); padding: 14px 16px; margin: 24px 0 0; text-align: left; }
.sigues__ico { font-size: 25px; line-height: 1; }
.sigues__txt { flex: 1; min-width: 160px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.sigues__txt b { display: block; color: #fff; font-family: var(--font-heading); font-size: 15px; margin-bottom: 2px; }
.sigues__go { background: var(--accent-cyan); color: #04222b; font-family: var(--font-heading); font-weight: 800; font-size: 13.5px; padding: 10px 17px; border-radius: 22px; border: 0; cursor: pointer; white-space: nowrap; }
.sigues__go:hover { filter: brightness(1.1); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. HERRAMIENTAS SOBRE EL ÍNDICE
   ═══════════════════════════════════════════════════════════════════════════ */
.herr { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.herr__t { flex: 1; font-family: var(--font-heading); font-size: 11px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-muted); }
.herr button { font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border-glass); padding: 7px 13px; border-radius: 18px; cursor: pointer; white-space: nowrap; }
.herr button:hover { color: #fff; border-color: var(--accent-cyan); }

/* ═══════════════════════════════════════════════════════════════════════════
   6. LAS SECCIONES — plegadas de entrada, se abren en su sitio
   ═══════════════════════════════════════════════════════════════════════════ */
.t-sec { margin: 0 0 11px; }

.sec {
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  background: var(--bg-card); overflow: hidden;
  transition: border-color .2s, background .2s;
}
.sec:hover { border-color: rgba(255,255,255,.16); }
.sec[open] { border-color: rgba(0,229,255,.28); background: rgba(255,255,255,.02); }

.sec > summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 15px 44px 15px 15px;
}
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:hover { background: rgba(255,255,255,.02); }
.sec > summary::after {
  content: ''; position: absolute; right: 19px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .22s, border-color .22s;
}
.sec[open] > summary::after { transform: rotate(225deg); margin-top: -2px; border-color: var(--accent-cyan); }

.sec__n {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  background: var(--tono, var(--bg-elevated)); color: var(--borde, #fff);
  border: 1px solid var(--borde, var(--border-glass));
}
.sec__t { flex: 1; min-width: 0; font-family: var(--font-heading); font-weight: 800; font-size: 16.5px; line-height: 1.25; color: #fff; }
.sec__t small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec.visto .sec__n { background: var(--accent-green-soft); border-color: rgba(0,230,118,.5); color: var(--accent-green); }

.sec__cuerpo { padding: 6px 16px 16px; border-top: 1px solid var(--border-soft); }

/* Cierre de cada sección */
.pieSec { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.visto {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border-glass); color: var(--text-secondary);
  font-family: var(--font-heading); font-weight: 700; font-size: 13.5px;
  padding: 10px 16px; border-radius: 22px; transition: all .2s;
}
.visto:hover { color: #fff; border-color: rgba(0,230,118,.5); }
.visto .caja { width: 18px; height: 18px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 10px; color: transparent; transition: all .2s; }
.visto.on { background: var(--accent-green-soft); border-color: rgba(0,230,118,.5); color: #69F0AE; }
.visto.on .caja { background: var(--accent-green); border-color: var(--accent-green); color: #04190b; }
.pieSec a { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border-glass); padding: 9px 14px; border-radius: 20px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pieSec a:hover { text-decoration: none; color: #fff; border-color: var(--accent-cyan); }

/* ═══════════════════════════════════════════════════════════════════════════
   7. BARRA DE ABAJO (celular) Y HOJA DESLIZANTE
   ═══════════════════════════════════════════════════════════════════════════ */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  height: var(--barra-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bg-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-soft);
}
.barra button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; cursor: pointer; color: var(--text-secondary);
  font-family: var(--font-heading); font-size: 10.5px; font-weight: 700; padding: 0; position: relative;
}
.barra button i { font-style: normal; font-size: 19px; line-height: 1; }
.barra button:active { color: var(--accent-cyan); }
.barra__globo { position: absolute; top: 7px; right: 50%; margin-right: -20px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent-green); color: #04180c; font-size: 10px; font-weight: 800; line-height: 17px; }

.velo { position: fixed; inset: 0; z-index: 96; background: rgba(0,0,0,.66); opacity: 0; pointer-events: none; transition: opacity .25s; }
.velo.on { opacity: 1; pointer-events: auto; }

.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 97;
  max-height: 82vh; display: flex; flex-direction: column;
  background: var(--bg-secondary); border-top: 1px solid var(--border-glass);
  border-radius: 22px 22px 0 0; box-shadow: 0 -14px 50px rgba(0,0,0,.6);
  transform: translateY(102%); transition: transform .3s cubic-bezier(.2,.85,.3,1);
}
.hoja.on { transform: none; }
.hoja__tira { width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 9px auto 4px; flex-shrink: 0; }
.hoja__cabeza { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; flex-shrink: 0; }
.hoja__cabeza b { flex: 1; font-family: var(--font-heading); font-size: 16px; font-weight: 800; }
.hoja__x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-glass); background: var(--bg-elevated); color: #fff; font-size: 15px; cursor: pointer; }
.hoja__cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 0 10px calc(var(--hueco) + 20px); -webkit-overflow-scrolling: touch; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. ÍNDICE (sirve igual en la hoja del celular y en el lateral del PC)
   ═══════════════════════════════════════════════════════════════════════════ */
.ix a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14.5px; line-height: 1.35; }
.ix a:hover { background: var(--bg-card); color: #fff; text-decoration: none; }
.ix a.aqui { background: var(--accent-red-soft); color: #fff; font-weight: 700; }
.ix .n { font-family: var(--font-heading); font-size: 12px; font-weight: 800; color: var(--text-muted); min-width: 16px; text-align: center; flex-shrink: 0; }
.ix a.hecho .n { color: var(--accent-green); }
.ix__sub { margin: 1px 0 8px 30px; padding-left: 11px; border-left: 1px solid var(--border-glass); }
.ix__sub a { padding: 6px 10px; font-size: 13px; color: var(--text-muted); }
.ix__sub a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   9. AVANCE
   ═══════════════════════════════════════════════════════════════════════════ */
.avance { padding: 14px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.avance__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.avance__t { font-family: var(--font-heading); font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.avance__n { font-family: var(--font-heading); font-size: 13.5px; font-weight: 800; color: var(--accent-green); font-variant-numeric: tabular-nums; }
.avance__barra { height: 7px; border-radius: 20px; background: rgba(255,255,255,.07); overflow: hidden; }
.avance__fill { display: block; height: 100%; width: 0; border-radius: 20px; background: linear-gradient(90deg, var(--accent-red), var(--accent-green)); transition: width .5s cubic-bezier(.4,0,.2,1); }
.avance__pie { margin-top: 9px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.avance__reset { background: none; border: 0; padding: 0; margin-top: 7px; cursor: pointer; text-decoration: underline; color: var(--text-muted); font-family: var(--font-body); font-size: 11.5px; }
.avance__reset:hover { color: var(--accent-red); }

.medallas { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.medalla { font-family: var(--font-heading); font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-muted); }
.medalla.on { color: #69F0AE; background: var(--accent-green-soft); border-color: rgba(0,230,118,.45); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. BUSCADOR — resultados
   ═══════════════════════════════════════════════════════════════════════════ */
.resultados { display: none; }
.resultados.on { display: block; }
.res { display: block; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 10px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; }
.res:hover { border-color: var(--accent-cyan); }
.res__donde { font-family: var(--font-heading); font-size: 10.5px; font-weight: 800; letter-spacing: .6px; color: var(--accent-cyan); text-transform: uppercase; margin-bottom: 4px; }
.res__frag { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.res mark { background: rgba(255,183,77,.32); color: #FFD8A0; border-radius: 3px; padding: 0 2px; }
.contador { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 14px; }
.contador button { background: none; border: 0; padding: 0; color: var(--accent-cyan); font-family: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.vacio { text-align: center; color: var(--text-muted); padding: 34px 10px 26px; }
.vacio__ico { font-size: 38px; margin-bottom: 8px; }
.sug { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.sug__t { flex-basis: 100%; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.sug button { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--accent-cyan); background: var(--accent-cyan-soft); border: 1px solid rgba(0,229,255,.28); padding: 6px 13px; border-radius: 20px; }
.sug button:hover { background: rgba(0,229,255,.19); }

/* ═══════════════════════════════════════════════════════════════════════════
   11. AVISITO Y DESTELLO
   ═══════════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--hueco) + 14px); z-index: 140;
  transform: translate(-50%, 200%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 26px);
  background: var(--bg-elevated); border: 1px solid rgba(0,230,118,.45); border-radius: 30px;
  padding: 11px 20px 11px 16px; box-shadow: 0 16px 44px rgba(0,0,0,.7);
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: #fff;
  transition: transform .38s cubic-bezier(.2,.9,.3,1.25);
}
.toast.on { transform: translate(-50%, 0); }
.toast__ico { font-size: 20px; line-height: 1; }
.toast small { display: block; font-weight: 500; font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.conf { position: fixed; inset: 0; z-index: 135; pointer-events: none; overflow: hidden; }
.conf i { position: absolute; top: -16px; width: 8px; height: 13px; border-radius: 2px; animation: caer linear forwards; }
@keyframes caer { to { transform: translateY(108vh) rotate(680deg); opacity: .1; } }

.destacado { animation: destello 1.6s ease-out; border-radius: var(--radius-sm); }
@keyframes destello {
  0%, 30% { background: rgba(0,229,255,.15); box-shadow: 0 0 0 8px rgba(0,229,255,.09); }
  100%    { background: transparent; box-shadow: 0 0 0 8px transparent; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. EL CONTENIDO — los estilos de siempre
   ═══════════════════════════════════════════════════════════════════════════ */
.t-sec__num { display: none; }
.t-sec h2 { display: none; }           /* el título ya lo muestra la cabecera */
.t-sec > p.intro { color: var(--text-secondary); font-size: 15px; margin: 12px 0 18px; }

h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin: 30px 0 10px; }
h4 { font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; color: var(--text-secondary); margin: 22px 0 8px; }
h5 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #fff; display: flex; align-items: center; gap: 8px; }
p  { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: #fff; font-weight: 700; }
hr.t-div { border: 0; border-top: 1px solid var(--border-soft); margin: 28px 0; }

.t-pasos { list-style: none; padding: 0; margin: 18px 0; counter-reset: paso; }
.t-pasos > li { position: relative; padding: 0 0 20px 44px; margin: 0 0 0 15px; border-left: 2px solid var(--border-glass); }
.t-pasos > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.t-pasos > li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; left: -16px; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-red); color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bg-primary);
}
.t-pasos > li > b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; font-family: var(--font-heading); }

.t-box { border-radius: var(--radius-md); padding: 14px 16px; margin: 18px 0; border: 1px solid; font-size: 14.5px; }
.t-box p:last-child { margin-bottom: 0; }
.t-box__t { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 7px; }
.t-box--ojo  { background: var(--accent-amber-soft); border-color: rgba(255,183,77,.35); }
.t-box--ojo  .t-box__t { color: var(--accent-amber); }
.t-box--stop { background: var(--accent-red-soft); border-color: rgba(229,57,53,.42); }
.t-box--stop .t-box__t { color: #FF8A80; }
.t-box--tip  { background: var(--accent-cyan-soft); border-color: rgba(0,229,255,.3); }
.t-box--tip  .t-box__t { color: var(--accent-cyan); }
.t-box--ok   { background: var(--accent-green-soft); border-color: rgba(0,230,118,.3); }
.t-box--ok   .t-box__t { color: var(--accent-green); }

.t-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
.t-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 15px; }
.t-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.t-tabla { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.t-tabla table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 14px; }
.t-tabla th { background: var(--bg-elevated); text-align: left; padding: 11px 13px; font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: #fff; border-bottom: 1px solid var(--border-glass); white-space: nowrap; }
.t-tabla td { padding: 11px 13px; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); vertical-align: top; }
.t-tabla tr:last-child td { border-bottom: 0; }
.t-tabla__nota { font-size: 12px; color: var(--text-muted); margin: -10px 0 18px; }

/* Capturas: con techo, para que no se inflen en el computador */
.t-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); justify-content: center; gap: 20px 18px; margin: 20px 0; }
.t-shot { margin: 0; position: relative; }
.t-shot img { width: 100%; padding: 7px; border-radius: 24px; background: linear-gradient(160deg, #1e1e2b, #0e0e15); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.t-shot::before { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 32%; height: 5px; border-radius: 20px; background: rgba(255,255,255,.13); z-index: 2; pointer-events: none; }
.t-shot figcaption { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 8px; line-height: 1.4; }

.tecla { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--bg-elevated); border: 1px solid var(--border-glass); font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.tecla--rojo  { background: rgba(229,57,53,.18); border-color: rgba(229,57,53,.5); color: #FF8A80; }
.tecla--verde { background: rgba(0,230,118,.14); border-color: rgba(0,230,118,.4); color: #69F0AE; }

.t-faq { border: 1px solid var(--border-glass); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; background: var(--bg-card); }
.t-faq > summary { padding: 15px 44px 15px 16px; cursor: pointer; position: relative; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: #fff; list-style: none; line-height: 1.45; }
.t-faq > summary::-webkit-details-marker { display: none; }
.t-faq > summary::after { content: '+'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent-cyan); line-height: 1; }
.t-faq[open] > summary::after { content: '−'; }
.t-faq[open] > summary { border-bottom: 1px solid var(--border-soft); }
.t-faq__body { padding: 15px 16px 4px; font-size: 14.5px; color: var(--text-secondary); }
.t-faq__body p:last-child { margin-bottom: 14px; }

.t-casos { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0 12px; }
.t-caso { display: block; padding: 16px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-glass); color: inherit; transition: border-color .2s, transform .2s; }
.t-caso:hover { text-decoration: none; border-color: var(--accent-cyan); transform: translateY(-2px); }
.t-caso__ico { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.t-caso__t { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 4px; }
.t-caso__d { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.t-caso__go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-cyan); }

.t-ayuda { background: linear-gradient(135deg, rgba(229,57,53,.13), rgba(0,229,255,.08)); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 24px 18px; text-align: center; margin: 30px 0; }
.t-ayuda h3 { margin: 0 0 8px; font-size: 20px; }
.t-ayuda p { color: var(--text-secondary); margin-bottom: 16px; }
.t-cta { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #062; font-weight: 800; font-family: var(--font-heading); padding: 13px 24px; border-radius: 30px; font-size: 15px; }
.t-cta:hover { text-decoration: none; filter: brightness(1.08); }

.t-pie { border-top: 1px solid var(--border-glass); margin-top: 34px; padding: 24px 0 10px; text-align: center; color: var(--text-muted); font-size: 12.5px; }
.t-pie a { color: var(--text-secondary); }
.t-pie__links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   13. COMPUTADOR
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1000px) {
  .top { padding: 0 20px; gap: 16px; }
  .top__marca span { display: inline; }
  .top__tag { display: inline-block; }

  /* Fijo de verdad: no es sticky, no depende de ningún ancestro */
  .lado {
    display: block; position: fixed; z-index: 90;
    top: var(--top-h); left: 0; bottom: 0; width: 300px;
    background: var(--bg-secondary); border-right: 1px solid var(--border-soft);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 16px 10px 40px;
  }
  .lado__t { font-family: var(--font-heading); font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-muted); padding: 14px 12px 6px; }

  .lienzo { padding-left: 300px; }
  .cuerpo { padding: 28px 44px 90px; }
  .barra, .hoja, .velo { display: none !important; }

  .portada h1 { font-size: 38px; }
  .sec__t { font-size: 17.5px; }
  .t-cards { grid-template-columns: repeat(2, 1fr); }
  .t-casos { grid-template-columns: repeat(2, 1fr); }
  .t-tabla table { min-width: 0; }
  :root { --hueco: 0px; }
}

@media (min-width: 1400px) {
  .t-casos { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. IMPRESIÓN — el manual del vigilante se pega en la garita
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  .top, .lado, .barra, .hoja, .velo, .toast, .conf, .herr, .sigues,
  .pieSec, .resultados, .portada__chips, .t-ayuda { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .lienzo { padding: 0 !important; }
  .cuerpo { max-width: none; padding: 0; }
  .sec, .t-faq { background: #fff !important; border-color: #bbb !important; }
  .sec > summary::after { display: none; }
  .sec__cuerpo { display: block !important; }
  .t-sec h2 { display: block; color: #000; font-size: 18pt; }
  .t-faq[open] .t-faq__body, .t-faq .t-faq__body { display: block !important; }
  a { color: #000; text-decoration: underline; }
  h2, h3, h4, h5, strong { color: #000; }
  p, li, td { color: #111; }
  .t-box { border-color: #999 !important; background: #f4f4f4 !important; }
  .t-card, .t-caso { background: #fff !important; border-color: #bbb !important; }
  .t-tabla th { background: #eee; color: #000; }
  .t-tabla td { color: #222; }
  .t-shot img { box-shadow: none; background: #fff; border-color: #bbb; }
  .t-shot::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. Menos movimiento, para quien lo pide
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. SIN JAVASCRIPT — la guía se lee completa igual
   ---------------------------------------------------------------------------
   Las secciones son <details> de verdad, así que se abren y se cierran solas
   con un toque aunque el script no cargue. Aquí solo escondemos los mandos que
   no funcionarían sin él y devolvemos los títulos originales.
   ═══════════════════════════════════════════════════════════════════════════ */
html:not(.js) .lupa,
html:not(.js) .barra,
html:not(.js) .hoja,
html:not(.js) .velo,
html:not(.js) .herr,
html:not(.js) .lado { display: none !important; }
html:not(.js) .lienzo { padding-left: 0; }
html:not(.js) .t-sec h2 { display: block; font-family: var(--font-heading); font-size: 25px; font-weight: 900; margin: 30px 0 8px; }
html:not(.js) .t-sec__num { display: inline-block; font-family: var(--font-heading); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--accent-red); background: var(--accent-red-soft); padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
html:not(.js) .cuerpo { padding-bottom: 60px; }
