:root {
  --teal: #0F3B49;
  --blue: #469DE6;
  --cyan: #BCF8FF;
  --mint: #00FFCC;
  --yellow: #FECB28;
  --ink: #1A1A1A;
  --muted: #4E6275;
  --gray: #F2F2F2;
  --bg: #F7F9FA;
  --white: #FFFFFF;
  --line: #DCE3E8;

  --d: #C0392B;
  --i: #2A4D72;
  --s: #1E8A63;
  --c: #B8801A;

  --font: 'Montserrat', 'Inter', 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 2px 10px rgba(15, 59, 73, .10);
  --shadow-hi: 0 10px 30px rgba(15, 59, 73, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--teal); }
p { margin: 0 0 .8em; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.mint { color: var(--mint); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 1rem/1 var(--font);
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s, opacity .15s, background .15s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-link { background: transparent; color: var(--teal); padding-left: .6rem; padding-right: .6rem; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: .55rem 1.1rem; min-height: 40px; font-size: .9rem; }
.btn:focus-visible, .word:focus-visible, .four-card:focus-visible, .deck-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.pill {
  display: inline-block; font: 600 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .9rem; border-radius: 999px; background: rgba(188, 248, 255, .16); color: var(--cyan);
}
.pill-blue { background: var(--blue); color: #fff; }
.pill-outline { background: transparent; border: 1.5px solid var(--yellow); color: var(--yellow); margin-top: .6rem; }
.kicker { display: block; font: 700 .72rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .7rem; }
.kicker-light { color: var(--cyan); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--teal); min-width: 0; }
.brand-logo { height: 30px; width: auto; }
.brand-x { color: var(--muted); font-weight: 400; }
.brand-pf { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 1.2rem; }
.topnav a:not(.btn) { color: var(--teal); text-decoration: none; font-weight: 600; font-size: .92rem; }
@media (max-width: 560px) {
  .topnav a:not(.btn) { display: none; }
  .brand-logo { height: 24px; }
  .brand-pf { font-size: .68rem; }
}
@media (max-width: 380px) { .brand-x, .brand-pf { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal); color: #fff; padding: 64px 0 120px; }
.circle { position: absolute; border-radius: 50%; background: rgba(70,157,230,.12); pointer-events: none; }
.c1 { width: 520px; height: 520px; top: -160px; right: -140px; }
.c2 { width: 340px; height: 340px; bottom: -120px; left: -100px; background: rgba(70,157,230,.08); }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } .hero { padding: 96px 0 150px; } }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.2rem); margin-top: 1rem; }
.title-underline { display: block; width: 88px; height: 5px; background: var(--yellow); border-radius: 3px; margin: 1rem 0 1.4rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: rgba(255,255,255,.85); }
.steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--teal); font-size: .75rem; margin-right: .4rem; }
.hero-lenses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lens-chip { position: relative; background: #fff; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.lens-chip img { width: 100%; height: 100%; object-fit: cover; }
.lens-chip b { position: absolute; left: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin: .8rem 0 .5rem; }
.section-head p { color: var(--muted); }

/* ---------- Deck (presentación embebida) ---------- */
.deck { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-hi); overflow: hidden; outline: none; }
.deck:focus-visible { box-shadow: 0 0 0 3px var(--blue), var(--shadow-hi); }
.deck-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.deck-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  min-height: 560px; background: #fff; display: flex; overflow: hidden;
}
@media (min-width: 900px) { .slide { min-height: 0; height: clamp(520px, calc(100vh - 230px), 640px); } }
.slide-inner { position: relative; z-index: 1; width: 100%; padding: 36px 22px 28px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
@media (min-width: 768px) { .slide-inner { padding: 48px 56px; } }
.slide-inner.center { align-items: center; text-align: center; }
.slide-inner.narrow { max-width: 820px; margin: 0 auto; }
.slide-inner.split { display: grid; gap: 28px; align-content: center; }
@media (min-width: 900px) { .slide-inner.split { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; } }
.slide h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 1.2rem; }
.slide h3.xl { font-size: clamp(2.6rem, 7vw, 5rem); color: #fff; margin: .2rem 0 .6rem; }
.slide .lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.slide .sub { color: var(--muted); margin-top: -.6rem; }
.slide-dark { background: var(--teal); }
.slide-teal { background: var(--teal); }
.slide-teal h3 { color: #fff; }
.slide-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.slide-dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,59,73,.35), rgba(15,59,73,.85)); }
.light { color: rgba(255,255,255,.92); }
.strong { font-weight: 700; font-size: 1.1rem; }
.author { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--blue); margin-top: .6rem; }
.author.light { color: var(--cyan); }
.big-letter-word { font-size: clamp(3.5rem, 9vw, 6rem) !important; letter-spacing: .04em; margin-bottom: .6rem !important; }
.callout { background: var(--gray); border-left: 5px solid var(--blue); border-radius: var(--r-md); padding: 26px; }
.callout-teal { background: var(--teal); border-left-color: var(--yellow); }
.quote-lg { font-size: clamp(1.6rem, 3.6vw, 2.8rem) !important; max-width: 24ch; }
.quote-md { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.4; }
.quote-mark { font-size: 5rem; line-height: .6; color: var(--yellow); font-weight: 800; height: 2.4rem; }
.ask { margin-top: 1.2rem; font-weight: 700; color: var(--teal); font-size: 1.1rem; }
.ask small { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: .4rem; }

.four-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .four-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.four-card {
  position: relative; text-align: left; font-family: var(--font); background: #fff; border: 1px solid var(--line);
  border-top: 5px solid var(--c); border-radius: var(--r-md); padding: 0 0 14px; cursor: pointer; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.four-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.four-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.four-card b { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.25rem; }
.fc-name { display: block; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; padding: 12px 14px 4px; }
.fc-lema { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; padding: 0 14px; line-height: 1.35; }

/* lens detail slide */
.lens-head { display: flex; align-items: center; gap: 18px; margin-bottom: 1.2rem; }
.lens-letter { flex: none; width: 72px; height: 72px; line-height: 1; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--c); color: #fff; font-size: 2.4rem; font-weight: 800; }
.lens-head h3 { margin: 0 0 .2rem !important; color: var(--c) !important; }
.lens-lema { font-weight: 700; color: var(--ink); }
.lens-desc { color: var(--muted); font-weight: 500; margin: 0; }
.lens-body { display: grid; gap: 14px; }
@media (min-width: 900px) { .lens-body { grid-template-columns: 1fr 1fr 1fr; } }
.lens-box { background: var(--gray); border-radius: var(--r-sm); padding: 14px 16px; }
.lens-box h4, .f-page h4 { margin: 0 0 .35rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.lens-box p { margin: 0; font-size: .95rem; }
.lens-box.comm { background: var(--c-soft); border-left: 4px solid var(--c); }
.lens-box.risk { border: 1.5px dashed var(--c); background: #fff; }
.lens-img { position: absolute; right: -40px; top: -10px; width: 280px; opacity: .14; z-index: 0; pointer-events: none; }
@media (min-width: 900px) { .lens-body .comm { grid-column: span 2; } }
.lens-count { position: absolute; top: 16px; right: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); z-index: 2; }

.row4 { display: grid; gap: 12px; }
@media (min-width: 700px) { .row4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .row4 { grid-template-columns: repeat(4, 1fr); } }
.r4 { border-radius: var(--r-md); padding: 18px; background: var(--gray); border-top: 5px solid var(--c); }
.r4 b.l { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c); color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.r4 .t { display: block; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: .3rem; }
.r4 ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.r4 p { margin: 0; font-size: .95rem; }

.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--line); }
.matrix { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .9rem; }
.matrix th, .matrix td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--teal); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.matrix tbody th { white-space: nowrap; font-weight: 800; }
.matrix-list { display: none; gap: 10px; }
.ml-item { background: var(--gray); border-left: 4px solid var(--c); border-radius: var(--r-sm); padding: 12px 14px; }
.ml-head { font-weight: 800; color: var(--teal); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ml-item p { margin: 0 0 3px; font-size: .9rem; }
.ml-item p span { font-weight: 700; color: var(--c); }
.ml-item p.same { font-weight: 700; }
@media (max-width: 700px) { .matrix-wrap { display: none; } .matrix-list { display: grid; } }
.matrix td.same { background: var(--gray); font-weight: 600; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; line-height: 1; vertical-align: middle; padding: 0 6px; border-radius: 7px; color: #fff; font-weight: 800; font-size: .85rem; margin-right: 4px; }

.rules { display: grid; gap: 16px; align-items: center; margin: .8rem 0; }
@media (min-width: 800px) { .rules { grid-template-columns: 1fr auto 1fr; } }
.rule { border-radius: var(--r-md); padding: 26px; background: var(--gray); }
.rule p { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: var(--teal); margin: 0; }
.rule-hi { background: var(--teal); }
.rule-hi p { color: #fff; }
.rule-tag { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.rule-hi .rule-tag { color: var(--yellow); }
.rule-arrow { font-size: 2.2rem; color: var(--blue); text-align: center; font-weight: 800; }
@media (max-width: 799px) { .rule-arrow { transform: rotate(90deg); } }

.think { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .think { grid-template-columns: 1fr 1fr; } }
.think li { color: #fff; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); }

.rules-list { list-style: none; padding: 0; margin: .4rem 0 1.4rem; display: grid; gap: 10px; text-align: left; }
.rules-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rules-list b, .how b.n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--teal); flex: none; }

.deck-controls { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.deck-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--teal); font-size: 1.6rem; line-height: 1; cursor: pointer; font-family: var(--font); }
.deck-btn:hover:not(:disabled) { background: var(--teal); color: #fff; border-color: var(--teal); }
.deck-btn:disabled { opacity: .3; cursor: default; }
.deck-meta { flex: 1; display: flex; align-items: center; gap: 12px; }
.deck-bar { flex: 1; height: 6px; background: var(--gray); border-radius: 3px; overflow: hidden; }
.deck-bar span { display: block; height: 100%; width: 5%; background: var(--blue); border-radius: 3px; transition: width .3s; }
.deck-count { font-weight: 700; font-size: .85rem; color: var(--teal); min-width: 56px; text-align: right; }

/* ---------- Test ---------- */
.test-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 18px; box-shadow: var(--shadow); max-width: 860px; }
@media (min-width: 768px) { .test-card { padding: 36px 40px; } }
.note, .how { background: var(--gray); border-radius: var(--r-md); padding: 18px 20px; margin: 16px 0; }
.note { border-left: 5px solid var(--yellow); }
.note p, .how p { margin: 0 0 .5em; }
.example { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ex-word { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 600; font-size: .9rem; }
.ex-word i { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .8rem; }
.field { display: block; margin: 20px 0 8px; }
.field span { display: block; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--muted); }
.field input { width: 100%; max-width: 420px; font: 500 1rem var(--font); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(70,157,230,.2); }
.test-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.progress-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; font-weight: 700; color: var(--teal); }
.progress-hint { font-weight: 500; color: var(--muted); }
.progress-bar { height: 8px; border-radius: 4px; background: var(--gray); margin: 10px 0 22px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--mint)); transition: width .35s; }
.words-viewport { overflow: hidden; }
.words { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.words.slide-in { animation: slideIn .32s ease both; }
.words.slide-back { animation: slideBack .32s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.word {
  position: relative; min-height: 104px; border-radius: var(--r-md); border: 2px solid var(--line); background: #fff;
  font: 700 clamp(1.05rem, 2.6vw, 1.35rem) var(--font); color: var(--teal); cursor: pointer; padding: 18px 12px;
  transition: border-color .15s, background .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.word:hover { border-color: var(--blue); }
.word:active { transform: scale(.98); }
.word .score {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .9rem; font-weight: 800; color: #fff; background: var(--teal);
  opacity: 0; transform: scale(.5); transition: all .18s;
}
.word.ranked { border-color: var(--teal); background: rgba(188,248,255,.35); }
.word.ranked .score { opacity: 1; transform: none; }
.word.rk4 .score { background: var(--teal); }
.word.rk3 .score { background: var(--blue); }
.word.rk2 .score { background: #7FB6E6; }
.word.rk1 .score { background: #9AA8B4; }
.test-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.test-nav #nextBtn { margin-left: auto; }

/* ---------- Result ---------- */
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ficha { display: grid; gap: 20px; }
.f-page { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.f-head { background: var(--teal); color: #fff; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; overflow: hidden; }
.f-head .circle { width: 220px; height: 220px; right: -70px; top: -90px; }
.f-head h3 { color: #fff; font-size: 1.35rem; font-weight: 800; }
.f-head .f-meta { font-size: .85rem; color: var(--cyan); margin-top: 4px; }
.f-head img { height: 28px; width: auto; position: relative; }
.f-body { padding: 22px 24px 26px; }
@media (min-width: 768px) { .f-body { padding: 28px 34px 32px; } }
.f-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .f-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.f-sec-title { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tot { border-radius: var(--r-sm); padding: 10px 6px; text-align: center; background: var(--gray); border-top: 4px solid var(--c); }
.tot b { display: block; font-size: 1.05rem; color: var(--c); }
.tot span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.tot small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); }
.tot.up { background: var(--c-soft); }
.tot-sum { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.verdict { border-radius: var(--r-md); padding: 18px 20px; background: var(--gray); margin-top: 20px; }
.verdict .big { display: flex; align-items: center; gap: 14px; }
.verdict .lens-letter { width: 64px; height: 64px; font-size: 2rem; }
.verdict h4 { margin: 0; font-size: 1.3rem; color: var(--teal); text-transform: none; letter-spacing: 0; }
.verdict p { margin: .6rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: .85rem; background: #fff; border: 1px solid var(--line); }
.chip .badge { flex: none; }
.badge { display: block; flex: none; }
.verdict .big .badge + .badge { margin-left: -4px; }
.f-seen th { width: 32px; }
.f-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.f-detail-head h3 { color: var(--c); font-size: 1.5rem; font-weight: 800; }
.f-detail-head p { margin: 2px 0 0; }
.f-cols { display: grid; gap: 12px; }
@media (min-width: 820px) { .f-cols { grid-template-columns: 1fr 1fr; } }
.f-box { background: var(--gray); border-radius: var(--r-sm); padding: 12px 14px; }
.f-box p, .f-box li { font-size: .92rem; margin: 0; }
.f-box .li { position: relative; padding-left: 14px; margin: 0 0 3px; }
.f-box .li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.f-box.hl { background: var(--c-soft); border-left: 4px solid var(--c); }
.f-box.full { grid-column: 1 / -1; }
.f-seen td, .f-seen th { font-size: .88rem; padding: 6px 4px; text-align: left; vertical-align: top; }
.f-seen { border-collapse: collapse; width: 100%; }
.f-seen tr + tr td, .f-seen tr + tr th { border-top: 1px solid var(--line); }
.f-foot { border-top: 1px solid var(--line); padding: 14px 24px; font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.f-platinum { background: var(--teal); color: #fff; border-radius: var(--r-md); padding: 16px 18px; margin-top: 16px; }
.f-platinum b { color: var(--yellow); display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

/* PDF stage: fixed A4-width off-screen render */
#pdfStage { position: fixed; left: -10000px; top: 0; width: 794px; }
#pdfStage .f-page { width: 794px; border-radius: 0; box-shadow: none; border: 0; min-height: 1123px; display: flex; flex-direction: column; }
#pdfStage .f-body { padding: 30px 38px; flex: 1; }
#pdfStage .f-grid { grid-template-columns: 1fr 1fr; }
#pdfStage .f-cols { grid-template-columns: 1fr 1fr; }
#pdfStage .f-head { padding: 26px 38px; }
#pdfStage .f-foot { padding: 14px 38px; }

/* ---------- Footer ---------- */
.footer { background: var(--teal); color: rgba(255,255,255,.85); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: grid; gap: 8px; }
.footer-logo { height: 32px; width: auto; margin-bottom: 10px; }
.footer .small { font-size: .8rem; color: rgba(255,255,255,.65); }
.footer-url { color: var(--cyan); font-weight: 600; text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 100; box-shadow: var(--shadow-hi); max-width: calc(100% - 32px); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .words.slide-in, .words.slide-back { animation: none; }
}

/* PDF: espaciado compacto */
#pdfStage .f-cols { gap: 10px; }
#pdfStage .f-box { padding: 10px 14px; }
#pdfStage .f-box p, #pdfStage .f-box td, #pdfStage .f-box th { font-size: .85rem; line-height: 1.4; }
#pdfStage .f-detail-head { margin-bottom: 12px; }
#pdfStage .f-box .li::before { top: .75em; }
