/* LyzAtlas: un solo color claro (marfil) en todos sus tonos, verde bosque para las acciones y un toque dorado.
   Tipografías: Fraunces (títulos) y DM Sans (texto), alojadas en la propia web. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
:root {
  --bg: #f4eee3;           /* marfil: el color de toda la web */
  --surface: #f4eee3;      /* las tarjetas usan el mismo color, separadas por una línea fina */
  --surface-2: #ebe3d4;    /* el mismo marfil, un poco más oscuro (iconos, botones al pasar el ratón) */
  --text: #1d2a23;
  --muted: #6b675b;
  --border: #dcd1bd;
  --accent: #1e4d3b;       /* verde bosque */
  --accent-strong: #163a2c;
  --accent-soft: #e4e4d2;
  --accent-text: #f4eee3;
  --accent2: #8a6a2b;      /* dorado */
  --accent2-fill: #c9a45c;
  --accent2-soft: #efe3c8;
  --good: #2f6b3f;
  --good-soft: #dfe6d0;
  --bad: #9b3125;
  --bad-soft: #f0d9cc;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(60, 45, 20, .04);
  --shadow-hover: 0 1px 0 rgba(60, 45, 20, .04), 0 12px 28px -12px rgba(60, 45, 20, .22);
  --hero: #f4eee3;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* accesibilidad */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.theme-btn { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 5px 11px; font-size: .95rem; font-weight: 600; box-shadow: none; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.top-actions a.lang { color: var(--muted); text-decoration: none; font-weight: 700; border-radius: 8px; }
.top-actions a.lang:hover { color: var(--text); border-color: var(--muted); }
.top-actions a.lang { border: 1px solid var(--border); font-size: .8rem; padding: 4px 10px; margin-left: 4px; letter-spacing: .04em; }
.theme-btn:hover { border-color: var(--muted); background: var(--surface-2); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

header.site { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 9;
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.025em; display: inline-flex; align-items: center; gap: 10px; }
.logo img { border-radius: 8px; }
.logo span { font-weight: 600; color: var(--muted); }
nav.top { display: flex; gap: 4px; flex-wrap: wrap; font-size: .94rem; align-items: center; }
nav.top a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 550; transition: background .15s, color .15s; }
nav.top a:hover { color: var(--text); background: var(--surface-2); }
nav.top a.on { color: var(--text); background: var(--surface-2); }
header.site .wrap { flex-wrap: nowrap; } nav.top { margin-left: auto; }
@media (max-width: 640px) {
  header.site { position: static; }
  header.site .wrap { flex-wrap: wrap; }
  .top-actions { margin-left: auto; }
  header.site .wrap { padding-top: 10px; padding-bottom: 6px; gap: 6px; }
  .logo { font-size: 1.08rem; } .logo img { width: 30px; height: 30px; }
  nav.top { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -8px; scrollbar-width: none; }
  nav.top a { padding: 5px 10px; font-size: .9rem; white-space: nowrap; }
}

main { padding: 32px 0 56px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.025em; font-weight: 750; }
h2 { font-size: 1.3rem; margin: 36px 0 14px; letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 22px 0 6px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 24px; max-width: 720px; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

/* portada */
.hero { background: var(--hero); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: clamp(28px, 6vw, 56px); margin-bottom: 32px; position: relative; overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 1px); background-size: 22px 22px; background-position: -11px -11px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero) 35%, color-mix(in srgb, var(--hero) 60%, transparent)); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); max-width: 680px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 0; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin: 0 0 16px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; }
.hero-pills span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.hero-pills span b { color: var(--text); font-size: 1.05rem; margin-right: 4px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 8px; }
.trust > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.trust i { font-style: normal; font-size: 1.2rem; width: 38px; height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-2); }
.trust b { display: block; font-size: .95rem; } .trust span { font-size: .85rem; color: var(--muted); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--text); padding: 16px; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow-hover); }
.tile .ico { flex: 0 0 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.tile h3 { margin: 0 0 2px; color: var(--text); font-size: 1rem; font-weight: 650; }
.tile:hover h3 { color: var(--accent); }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cat-tile { padding: 22px; align-items: center; }
.cat-tile .ico { flex-basis: 54px; height: 54px; font-size: 1.7rem; border-radius: 12px; }
.cat-tile h3 { font-size: 1.15rem; }
.cat-tile .count { color: var(--accent); font-weight: 700; font-size: .75rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.cat { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 26px 0 10px; }

/* formularios */
.ctls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.ctl.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
label.chk { font-weight: 500; display: flex; gap: 8px; align-items: center; }
select, textarea, input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"] {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
select:focus, textarea:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
button, .btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-text); cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1); transition: background .15s, transform .1s, box-shadow .15s;
}
button:hover:not(:disabled), .btn:hover { background: var(--accent-strong); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button.ghost, .btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
button.ghost:hover:not(:disabled), .btn.ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--muted) 60%, var(--border)); }
button.small, .btn.small { padding: 6px 12px; font-size: .9rem; }
button.link { background: none; border: 0; padding: 0; color: inherit; font-weight: inherit; text-align: left; box-shadow: none; }
button.link:hover { background: none; color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; flex-wrap: wrap; background: var(--surface); }
.seg button { background: transparent; color: var(--muted); border-radius: 0; padding: 8px 14px; font-weight: 600; box-shadow: none; }
.seg button.on { background: var(--accent); color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; font-weight: 550; font-size: .92rem; box-shadow: none; }
.chips button:hover { background: var(--surface-2); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* marcadores y resultados */
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 14px; font-size: .9rem; color: var(--muted); }
.stat b { color: var(--text); font-size: 1.05rem; margin-left: 4px; }
.big { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.result { text-align: center; padding: 26px 18px; border-top: 3px solid var(--accent); }
.result p { color: var(--muted); margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.fact .n { font-size: 1.4rem; font-weight: 750; color: var(--text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.fact .l { color: var(--muted); font-size: .9rem; }
.ok { color: var(--good); }
.ko { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 12px; font-weight: 600; z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }

/* test de colores */
.cv-board { display: grid; gap: 6px; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.cv-board button { padding: 0; border-radius: 8px; min-width: 0; }
.cv-board button.cv-wrong { outline: 4px solid var(--bad); outline-offset: -4px; opacity: .55; }
.cv-board button.cv-right { outline: 4px solid var(--good); outline-offset: 2px; position: relative; z-index: 1; animation: cv-pulse .6s ease-in-out 3; }
@keyframes cv-pulse { 50% { transform: scale(1.15); } }
.cv-msg { text-align: center; font-weight: 600; margin: 12px 0 0; }
.cv-time {height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 0 auto 14px; width: min(100%, 440px); }
.cv-time i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2-fill)); transition: width .2s linear; }

/* sueldo */
.bars { display: grid; gap: 8px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; align-items: center; font-size: .92rem; }
.bar .track { height: 12px; background: var(--border); border-radius: 6px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar.me .track i { background: var(--accent2-fill); }
.bar.me { font-weight: 700; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bar { grid-template-columns: 100px 1fr 90px; font-size: .85rem; } }

/* quiz */
.quiz-q { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.quiz-a { display: grid; gap: 8px; }
.quiz-a button { text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.quiz-a button:hover { border-color: var(--accent); background: var(--accent-soft); }
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2-fill)); }

/* ruleta */
.wheel-box { position: relative; width: min(100%, 380px); margin: 0 auto; }
.wheel-box canvas { width: 100%; height: auto; display: block; }
.wheel-box .pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--text); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.wheel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 720px) { .wheel-layout { grid-template-columns: 1fr; } }

/* cuenta atrás */
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cd h3 { margin: 0 0 2px; }
.cd .when { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.cd .units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.cd .units div:nth-child(odd) { background: var(--accent-soft); }
.cd .units div:nth-child(even) { background: var(--accent2-soft); }
.cd .units div { border-radius: 8px; padding: 6px 0; }
.cd .units b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cd .units span { font-size: .75rem; color: var(--muted); }

/* PAU */
.pau-row { display: grid; grid-template-columns: 1fr 110px 110px; gap: 8px; align-items: center; margin-bottom: 8px; }
.pau-row.head { font-size: .8rem; font-weight: 700; color: var(--muted); }
@media (max-width: 520px) { .pau-row { grid-template-columns: 1fr 80px 80px; } }

/* retos */
.challenge { margin: 0 0 14px; border-color: var(--accent2-fill); background: var(--accent2-soft); font-size: 1.02rem; }
.challenge.won { border-color: var(--good); background: var(--good-soft); }
.challenge.lost { border-color: var(--bad); background: var(--bad-soft); }
.rec { list-style: none; padding: 0; margin: 0; }
.rec li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
button.danger { background: var(--bad); color: var(--accent-text); }
.result-img { max-width: 100%; border-radius: 12px; margin-top: 12px; box-shadow: var(--shadow); }

/* calculadoras y utilidades */
.imc-bar { position: relative; height: 12px; border-radius: 6px; margin: 16px auto 4px; max-width: 420px;
  background: linear-gradient(90deg, #60a5fa 0 14%, #22c55e 14% 40%, #f59e0b 40% 60%, #ef4444 60%); }
.imc-bar i { position: absolute; top: -5px; width: 4px; height: 22px; background: var(--text); border-radius: 2px; transform: translateX(-2px); }
.imc-legend { display: flex; justify-content: space-between; max-width: 420px; margin: 0 auto; font-size: .75rem; color: var(--muted); }
.pw-out { display: flex; gap: 10px; align-items: center; }
.pw-out code { flex: 1; font-size: 1.2rem; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.clock-big { font-variant-numeric: tabular-nums; font-size: clamp(2.6rem, 12vw, 4.5rem); }
.dice { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 8px; min-height: 80px; }
.die3d { --s: 70px; width: var(--s); height: var(--s); perspective: 600px; position: relative; margin: 10px 8px 18px; }
.die3d .cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(25deg);
  transition: transform 1.1s cubic-bezier(.15, .75, .25, 1.02); }
.die3d .face { position: absolute; inset: 0; border-radius: 14px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 9px;
  background: radial-gradient(circle at 30% 25%, #ffffff, #eef0f7 55%, #d5d9e6); box-shadow: inset 0 0 0 1px rgba(20, 20, 40, .1), inset 0 -5px 10px rgba(20, 20, 60, .12);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.die3d .face i { width: 72%; aspect-ratio: 1; place-self: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5b5f72, #14151c 70%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25); }
.die3d .f1 i { width: 88%; background: radial-gradient(circle at 35% 30%, #ff7a6e, #c0261b 70%); }
.die3d .f1 { transform: translateZ(calc(var(--s) / 2)); } .die3d .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die3d .f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); } .die3d .f5 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f3 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); } .die3d .f4 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.die-shadow, .coin-shadow { position: absolute; left: 10%; right: 10%; bottom: -14px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .28); filter: blur(4px); }
.die3d.toss .cube { animation: die-hop 1.1s cubic-bezier(.3, .6, .3, 1) both; animation-delay: inherit; }
.die3d.toss .die-shadow { animation: shadow-hop 1.1s cubic-bezier(.3, .6, .3, 1) both; animation-delay: inherit; }
@keyframes die-hop { 0% { translate: 0 0; } 30% { translate: 0 -70px; } 60% { translate: 0 0; } 72% { translate: 0 -12px; } 84%, 100% { translate: 0 0; } }
@keyframes shadow-hop { 30% { transform: scale(.45); opacity: .35; } 60%, 100% { transform: none; opacity: 1; } }
.poly { width: 76px; height: 76px; margin: 10px 8px 18px; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(145deg, #8b7dff, #4f46e5 55%, #2a237f); color: #fff; font-weight: 800; font-size: 1.6rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  filter: drop-shadow(0 6px 8px rgba(30, 20, 90, .35)); font-variant-numeric: tabular-nums; }
.poly.d4 { clip-path: polygon(50% 4%, 97% 92%, 3% 92%); padding-top: 22px; }
.poly.d8 { clip-path: polygon(50% 2%, 98% 50%, 50% 98%, 2% 50%); }
.poly.d10 { clip-path: polygon(50% 2%, 96% 42%, 50% 98%, 4% 42%); }
.poly.d12 { clip-path: polygon(50% 2%, 98% 37%, 80% 96%, 20% 96%, 2% 37%); }
.poly.d20 { clip-path: polygon(50% 1%, 95% 26%, 95% 74%, 50% 99%, 5% 74%, 5% 26%); }
.poly.d100 { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a99fff, #4f46e5 60%, #2a237f); font-size: 1.35rem; }
.poly.toss { animation: poly-roll 1.1s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes poly-roll { 0% { transform: none; } 30% { transform: translateY(-60px) rotate(300deg) scale(.9); } 60% { transform: translateY(0) rotate(620deg); } 75% { transform: translateY(-10px) rotate(700deg); } 100% { transform: rotate(720deg); } }
.coin-stage { position: relative; width: 150px; height: 150px; margin: 20px auto 26px; perspective: 800px; }
.coin3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.25s cubic-bezier(.2, .7, .25, 1); }
.coin-face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 3px rgba(122, 79, 5, .35), inset 0 -4px 10px rgba(0, 0, 0, .2); overflow: hidden; }
.coin-face svg { width: 100%; height: 100%; display: block; }
.coin-face.back { transform: rotateX(180deg); }
.coin-shadow { bottom: -18px; left: 18%; right: 18%; }
.coin-stage.toss { animation: coin-hop 1.25s cubic-bezier(.3, .6, .3, 1); }
.coin-stage.toss .coin-shadow { animation: shadow-hop 1.25s cubic-bezier(.3, .6, .3, 1); }
@keyframes coin-hop { 0% { translate: 0 0; } 40% { translate: 0 -110px; } 75% { translate: 0 0; } 85% { translate: 0 -10px; } 100% { translate: 0 0; } }
.am-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.am-row b { flex: 1; min-width: 120px; }
.amigo-hide { cursor: pointer; font-size: 1.4rem; background: var(--accent2-soft); border-radius: 12px; padding: 16px; }
input[type="range"] { accent-color: var(--accent); }

.prose { max-width: 760px; }
.about { margin-top: 28px; }
details { border-bottom: 1px solid var(--border); padding: 10px 0; }
summary { font-weight: 600; cursor: pointer; }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

footer.site { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 28px; font-size: .9rem; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
.foot-cols h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols p { margin: 8px 0 0; max-width: 300px; line-height: 1.5; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .brand { font-weight: 750; color: var(--text); letter-spacing: -.02em; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; }
.rank-list li:nth-child(odd) { background: var(--bg); }

/* portada: buscador, novedades y guías */
.search { position: relative; margin-top: 26px; padding: 6px; border-radius: 12px; max-width: 600px; color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06); }
.search input { width: 100%; border: 0; background: transparent; font-size: 1.05rem; padding: 10px 12px 10px 38px; color: var(--text); box-shadow: none; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7085' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-list { list-style: none; margin: 4px 0 0; padding: 4px 0 0; border-top: 1px solid var(--border); }
.search-list a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.search-list a span { width: 1.6em; text-align: center; }
.search-list li.on a, .search-list a:hover { background: var(--accent-soft); }
.search.empty::after { content: "Nada por aquí. Prueba con otra palabra."; display: block; padding: 8px 12px; color: var(--muted); font-size: .9rem; }
:root[lang="en"] .search.empty::after { content: "Nothing found. Try another word."; }
.more { text-align: center; margin: 14px 0 0; }
.guide-tile p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* guías */
.guide { max-width: 760px; }
.guide h2 { margin-top: 28px; }
.guide .ex { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.tryit { margin: 0 0 18px; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* calculadoras nuevas */
.res3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; text-align: center; }
.res3 > div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 10px; }
.res3 span { display: block; font-size: .85rem; color: var(--muted); }
.res3 b { display: block; font-size: 1.35rem; margin-top: 2px; }
.res3 small { color: var(--muted); }
.res3 .hl { background: var(--accent-soft); border-color: var(--accent); }
.bar3 { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 14px; background: var(--border); }
.bar3 i:nth-child(1) { background: var(--accent); } .bar3 i:nth-child(2) { background: var(--accent2-fill); } .bar3 i:nth-child(3) { background: var(--muted); opacity: .45; }
.r3 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 1.1rem; font-weight: 600; }
.r3 input { width: 110px; text-align: center; font-size: 1.1rem; }
.r3x { min-width: 110px; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); }
.hrow { display: grid; grid-template-columns: 70px 1fr; gap: 8px; margin-bottom: 8px; max-width: 320px; }
.sleep-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.sleep-times div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; }
.sleep-times div.best { background: var(--accent-soft); border-color: var(--accent); }
.sleep-times b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.sleep-times span { font-size: .82rem; color: var(--muted); }
.sci { max-width: 460px; margin: 0 auto; }
.sci-screen { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; text-align: right; }
.sci-hist { min-height: 1.2em; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.sci-screen input { width: 100%; border: 0; background: transparent; text-align: right; font-size: 1.15rem; padding: 4px 0; box-shadow: none; color: var(--text); }
.sci-screen input:focus { outline: none; }
.sci-res { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sci-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sci-keys button { padding: 12px 0; font-size: 1rem; min-width: 0; border-radius: 10px; }
.sci-keys .n { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; font-weight: 700; }
.sci-keys .f { background: var(--accent-soft); color: var(--accent-strong); border: 0; box-shadow: none; }
.sci-keys .eq { grid-column: span 2; }

/* tests nuevos */
.quiz-a button.right, .quiz-a button.right:disabled { background: var(--good); border-color: var(--good); color: #fff; opacity: 1; }
.quiz-a button.wrong, .quiz-a button.wrong:disabled { background: var(--bad); border-color: var(--bad); color: #fff; opacity: 1; }
.quiz-a button:disabled { opacity: .6; }
.ty-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 12px; font-size: 1.05rem; }
.ty-stats b { font-variant-numeric: tabular-nums; }
.ty-text { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.15rem; line-height: 1.7; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; max-height: calc(4 * 1.7em + 28px); overflow: hidden; color: var(--muted); overflow-wrap: anywhere; }
.ty-text .ok { color: var(--good); } .ty-text .ko { color: var(--bad); background: var(--bad-soft); border-radius: 3px; }
.ty-text .cur { background: var(--accent2-fill); color: #111; border-radius: 3px; }
.typing textarea { width: 100%; font-size: 1.05rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; resize: none; }
.react { width: 100%; min-height: 260px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0;
  font-size: 1.6rem; color: #fff; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow); }
.react span { font-size: 1rem; font-weight: 500; opacity: .9; }
.react.idle, .react.shown, .react.end { background: linear-gradient(135deg, #3b35b5, #4f46e5); }
.react.wait { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.react.go { background: linear-gradient(135deg, #059669, #10b981); }
.react.early { background: linear-gradient(135deg, #b45309, #f59e0b); }
.react:hover:not(:disabled) { filter: brightness(1.05); }
.react-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.react-list li { background: var(--surface-2); border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; }

/* utilidades nuevas */
.cal-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head h2 { min-width: 4ch; text-align: center; }
.next-fest { padding: 12px 16px; margin: 0 0 14px; background: var(--accent2-soft); border-color: var(--accent2-fill); }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cal-m { padding: 12px 12px 14px; }
.cal-m h3 { margin: 0 0 8px; text-transform: capitalize; font-size: 1rem; }
.cal-m > .cal-days { display: grid; grid-template-columns: 22px repeat(7, 1fr); font-size: .72rem; color: var(--muted); text-align: center; gap: 2px; }
.cal-body { display: grid; grid-template-columns: 22px 1fr; gap: 2px; }
.cal-body .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-body span { text-align: center; font-size: .85rem; height: 26px; line-height: 26px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.wks { display: grid; gap: 2px; align-content: start; }
.wks span, .cal-days .wk { color: var(--muted); font-size: .68rem; opacity: .75; }
.cal-body .we { color: var(--muted); }
.cal-body .fest { background: var(--bad-soft); color: var(--bad); font-weight: 800; }
.cal-body .today { outline: 2px solid var(--accent); font-weight: 800; color: var(--accent-strong); }
.fancy { display: grid; gap: 8px; }
.fancy-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 14px; background: var(--surface); color: var(--text); width: 100%; box-shadow: none; font-weight: 400; }
.fancy-row:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.fancy-row .hint { margin: 0; font-size: .78rem; }
.fancy-row .fx { font-size: 1.25rem; overflow-wrap: anywhere; }
.names { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.name { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; font-size: 1.1rem; padding: 10px 16px; border-radius: 999px; }
.name.fav { background: var(--accent2-soft); border-color: var(--accent2-fill); }
.name span { color: var(--accent2); }
.color-main { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.color-main input[type=color] { width: 90px; height: 90px; border: 0; padding: 0; border-radius: 16px; background: none; cursor: pointer; }
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.code { display: flex; flex-direction: column; align-items: flex-start; background: var(--bg); color: var(--text); border: 1px solid var(--border); box-shadow: none; font-weight: 400; text-align: left; }
.code .hint { margin: 0; } .code b { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { flex: 1 1 70px; min-height: 60px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); box-shadow: none; font-size: .78rem; font-family: ui-monospace, Consolas, monospace; display: flex; align-items: flex-end; justify-content: center; padding: 6px; }
.sw:hover:not(:disabled) { transform: translateY(-2px); }
.pal { margin-bottom: 8px; } .pal .hint { margin: 0 0 4px; }
.notes-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; }
.notes-tabs button { white-space: nowrap; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; font-weight: 600; font-size: .9rem; padding: 6px 12px; }
.notes-tabs button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.card > textarea[data-txt] { width: 100%; min-height: 320px; font-size: 1.05rem; line-height: 1.6; resize: vertical; }
.notes-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; }
.notes-bar .hint { margin: 0; } .notes-bar .spacer { flex: 1; }
.emoji-cats { margin: 0 0 12px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.emo { font-size: 1.6rem; padding: 6px 0; background: transparent; border: 0; box-shadow: none; border-radius: 10px; min-width: 0; color: var(--text); font-weight: 400; }
.emo:hover:not(:disabled) { background: var(--accent-soft); }
.emo.wide { grid-column: span 3; font-size: 1.05rem; }
.emoji-tray { margin-bottom: 12px; padding: 12px 14px; }
.emoji-tray .hint { margin: 0 0 6px; display: block; }
.tray-row { display: flex; gap: 8px; align-items: stretch; }
.tray-row textarea { flex: 1; font-size: 1.3rem; resize: none; min-width: 0; }

/* imprimir el calendario */
@media print {
  header.site, footer.site, .crumbs, .lead, .cal-head button, .next-fest, .about, main h2, .grid, [data-list] { display: none !important; }
  .cal-head h2 { display: block !important; }
  .cal-grid { grid-template-columns: repeat(3, 1fr); }
  .card { box-shadow: none; break-inside: avoid; }
}

/* compartir y «seguir donde lo dejaste» */
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.sharebar a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .85rem; }
.sharebar a:hover { background: var(--surface-2); }
.sharebar button { font-size: .85rem; }
.recent { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.recent a { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.recent a:hover { border-color: var(--accent); }
.recent a span { font-size: 1.2rem; }

/* tercera tanda */
.love { color: #e11d48; }
.love-bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; max-width: 420px; margin: 10px auto 12px; }
.love-bar i { display: block; height: 100%; background: linear-gradient(90deg, #fb7185, #e11d48); border-radius: 6px; }
.roman-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.roman-table div { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 10px; text-align: center; }
.roman-table b { display: block; font-size: 1.1rem; letter-spacing: .04em; }
.roman-table span { color: var(--muted); font-size: .85rem; }
.ctls.fx { grid-template-columns: 1fr 1.4fr auto 1.4fr; align-items: end; }
.fx-swap button { padding: 10px 14px; }
@media (max-width: 640px) { .ctls.fx { grid-template-columns: 1fr; } .fx-swap { justify-self: center; } }
.fx-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.fx-quick div { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; }
.fx-quick span { color: var(--muted); font-size: .82rem; } .fx-quick b { font-variant-numeric: tabular-nums; }
.bar3.budget { height: 18px; }
.res3 small { display: block; margin-top: 4px; line-height: 1.35; }
@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust > div { padding: 12px; flex-direction: column; gap: 8px; }
  .trust i { width: 32px; height: 32px; flex-basis: 32px; font-size: 1rem; }
  .trust span { font-size: .8rem; line-height: 1.4; display: block; }
}
.quick { margin: 12px 0 0; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quick a { color: var(--text); text-decoration: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 11px; font-weight: 550; }
.quick a:hover { border-color: var(--accent); color: var(--accent); }

/* cuarta tanda */
.frac-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.frac-in { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.frac-in input { width: 84px; text-align: center; font-size: 1.15rem; }
.frac-in i { display: block; width: 84px; height: 2px; background: var(--text); }
#f-op { width: 64px; font-size: 1.2rem; text-align: center; }
.frac-eq { font-size: 1.6rem; }
.frac-res { min-width: 70px; font-size: 1.6rem; font-weight: 750; text-align: center; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.1; margin: 0 2px; }
.frac sup { border-bottom: 2px solid currentColor; padding: 0 4px; font-size: .8em; vertical-align: baseline; }
.frac sub { font-size: .8em; padding: 0 4px; vertical-align: baseline; }
.steps { line-height: 2.2; margin: 6px 0 0; }
.eq-show { font-size: 1.4rem; font-weight: 700; text-align: center; margin: 0 0 14px; font-family: "Cambria Math", "Times New Roman", serif; }
.pomo { text-align: center; }
.pomo-modes { justify-content: center; margin-bottom: 18px; }
.pomo-ring { position: relative; width: min(100%, 260px); margin: 0 auto; aspect-ratio: 1; }
.pomo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-ring circle { fill: none; stroke-width: 7; }
.pomo-ring .bg { stroke: var(--surface-2); }
.pomo-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.pomo[data-mode=short] .fg, .pomo[data-mode=long] .fg { stroke: var(--good); }
.pomo-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pomo-ring b { font-size: 3.2rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pomo-ring span { color: var(--muted); font-size: .9rem; }
.hear { text-align: center; }
.hear .warn { background: var(--accent2-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: .92rem; }
.hear-f { font-size: 1.1rem; color: var(--muted); margin-bottom: 10px; }
.hear-f b { font-size: 3rem; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.daily .quiz-a { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-bottom [data-install] { margin-left: 10px; }

/* estilo formal: iconos de línea, menos adornos */
:root { --radius: 10px; }
header.site { border-top: 3px solid var(--accent); }
.i { display: block; flex: none; }
.tile .ico { color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 8px; flex-basis: 40px; height: 40px; }
.cat-tile .ico { color: var(--accent); background: var(--accent-soft); flex-basis: 52px; height: 52px; border-radius: 10px; }
.tile h3 { font-weight: 600; letter-spacing: -.005em; }
.tile:hover h3 { color: var(--accent-strong); }
.card { border-radius: var(--radius); }
.hero { border-radius: 12px; }
.eyebrow { background: none; padding: 0; border-radius: 0; text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-weight: 700; letter-spacing: -.03em; }
h1 { font-weight: 700; }
h2, .sec-head h2 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
.sec-head { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.trust i { color: var(--accent); background: var(--accent-soft); }
.trust > div { border-radius: 10px; }
.search-list a span { color: var(--muted); display: flex; justify-content: center; }
.recent a span { color: var(--accent); display: flex; }
.quick a { border: 0; background: none; padding: 0; border-radius: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.quick a:hover { text-decoration-color: currentColor; }
.quick a + a::before { content: "·"; color: var(--muted); margin-right: 6px; text-decoration: none; display: inline-block; }
.sharebar a, .chips button, button, .btn { border-radius: 8px; }
.result { border-top-width: 2px; }
.crumbs { text-transform: none; font-size: .85rem; }

/* quinta tanda */
.glasses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.glasses i { width: 18px; height: 26px; border: 2px solid var(--accent); border-top: 0; border-radius: 0 0 5px 5px; background: linear-gradient(to top, var(--accent-soft) 75%, transparent 75%); }
.words { font-size: 1.3rem; font-weight: 600; line-height: 1.5; color: var(--text); margin: 0; }
.cps-pad { min-height: 280px; }
.cps-pad b { font-size: 2.2rem; }
.zodiac b { font-size: 1rem; }

/* foto del personaje en ¿Qué personaje eres? (cuadrada, centrada en la cara) */
.char-pic { margin: 12px auto 10px; width: min(220px, 70vw); }
.char-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.char-pic figcaption { font-size: .72rem; color: var(--muted); margin-top: 4px; }

/* nombre en tifinagh (alfabeto amazigh) junto a «Lyz» */
@font-face { font-family: "LyzTifinagh"; src: url("fonts/tifinagh.woff2") format("woff2"); font-display: swap; unicode-range: U+2D30-2D7F; }
.tif { font-family: "LyzTifinagh", "Noto Sans Tifinagh", "Ebrima", sans-serif; font-weight: 400; color: var(--accent); letter-spacing: .04em; }
.logo b .tif { font-size: .92em; margin-left: .4em; color: var(--accent); font-weight: 400; }
footer.site .brand .tif { margin-left: .15em; }

/* LyzAtlas: «Atlas» en verde junto a «Lyz» */
.logo span { color: var(--accent); font-weight: 650; }
.logo img { border-radius: 9px; box-shadow: 0 0 0 1px var(--border); }
footer.site .brand span { color: var(--accent); }

/* higher or lower */
.hl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.hl-card { text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 230px; }
.hl-card .em { font-size: 2.8rem; line-height: 1; }
.hl-pic { position: relative; width: min(100%, 230px); aspect-ratio: 1; margin: 0 auto 6px; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.hl-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; animation: hl-in .35s ease-out; }
.hl-pic .em-badge { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.hl-pic.no-pic { width: auto; aspect-ratio: auto; background: none; box-shadow: none; } .hl-pic.no-pic img { display: none; }
.hl-pic.no-pic .em-badge { position: static; width: auto; height: auto; background: none; box-shadow: none; font-size: 2.8rem; margin: 0 auto; }
@keyframes hl-in { from { opacity: 0; transform: scale(1.04); } }
@media (max-width: 640px) { .hl-pic { width: min(100%, 170px); } }
.hl-card h3 { margin: 10px 0 4px; font-size: 1.25rem; }
.hl-card .val { font-size: 1.6rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; min-height: 2.4rem; }
.hl-card .sub { color: var(--muted); font-size: .88rem; }
.hl-vs { align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--accent2-fill); color: #241500; }
.hl-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hl-card.win { border-color: var(--good); background: var(--good-soft); }
.hl-card.lose { border-color: var(--bad); background: var(--bad-soft); }
@media (max-width: 640px) { .hl { grid-template-columns: 1fr; } .hl-card { min-height: 0; } }


/* la foto se recorta dentro de su marco aunque se amplíe */
.char-pic .pic-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.char-pic .pic-box img { border: 0; border-radius: 0; }

/* Juegos con amigos */
.kn-url { width: 100%; font-size: .9rem; margin: 6px 0 10px; }
.kn-q { padding: 14px 16px; }
.kn-q .quiz-q { margin: 0 0 10px; }
.tod { text-align: center; min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; border-width: 2px; }
.tod[data-k="verdad"] { border-color: var(--accent); background: var(--accent-soft); }
.tod[data-k="reto"] { border-color: var(--bad); background: var(--bad-soft); }
.tod[data-k="conocer"] { border-color: var(--accent2-fill); background: var(--accent2-soft); }
.tod-k { font-weight: 800; letter-spacing: .08em; font-size: .85rem; }
.tod-t { font-size: 1.35rem; font-weight: 700; margin: 0; max-width: 520px; line-height: 1.35; }
.tod.flip { animation: tod-flip .35s ease; }
@keyframes tod-flip { from { transform: rotateY(90deg); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tod.flip { animation: none; } }

/* Herramientas para creadores */
.ht-out { font-size: 1.15rem; font-weight: 650; line-height: 1.6; word-break: break-word; color: var(--accent); }
.cr-list { list-style: none; padding: 0; margin: 0; }
.cr-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cr-list li:last-child { border-bottom: 0; }
.cr-list span { font-weight: 550; overflow-wrap: anywhere; }
.cr-list small { display: block; font-weight: 400; font-size: .8rem; margin-top: 2px; }
.cr-list button { flex: 0 0 auto; padding: 6px 12px; font-size: .88rem; }
.tp-screen { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; }
.tp-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 45vh 6vw 60vh; scrollbar-width: none; }
.tp-scroll::-webkit-scrollbar { display: none; }
.tp-text { white-space: pre-wrap; line-height: 1.45; font-weight: 600; max-width: 900px; margin: 0 auto; }
.tp-text.mirror { transform: scaleX(-1); }
.tp-line { position: absolute; left: 0; right: 0; top: 42vh; height: 3px; background: rgba(16, 185, 129, .6); pointer-events: none; }
.tp-bar { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; padding: 14px 16px 18px; background: linear-gradient(transparent, #000 35%); }
.tp-bar button { background: #1f2937; color: #fff; border: 1px solid rgba(255, 255, 255, .3); min-width: 48px; font-size: 1.1rem; box-shadow: none; }

.cc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cc-list li > div:first-child { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .92rem; margin-bottom: 4px; }
.cc-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: var(--accent); }
.cc-bar i.near { background: #f59e0b; } .cc-bar i.over { background: var(--bad); }
.wyr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.wyr button { min-height: 140px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; padding: 18px; background: var(--surface); color: var(--text); border: 2px solid var(--border); border-radius: 14px; box-shadow: none; }
.wyr button:hover { border-color: var(--accent); }
.wyr button.on, .wyr button.on:disabled { background: var(--accent); border-color: var(--accent); color: var(--accent-text); opacity: 1; }
.wyr-or { align-self: center; font-weight: 800; color: var(--muted, #6b7280); }
@media (max-width: 560px) { .wyr { grid-template-columns: 1fr; } .wyr button { min-height: 90px; } .wyr-or { text-align: center; } }

/* Test de memoria */
.mem { text-align: center; min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.mem-big { font-size: 3rem; line-height: 1; }
.mem-num { font-size: clamp(2rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; word-break: break-all; margin: 10px 0 14px; }
.mem .progress { width: 100%; max-width: 360px; }
.mem-bar { width: 100%; animation: mem-shrink linear forwards; }
@keyframes mem-shrink { from { width: 100%; } to { width: 0; } }
.mem-in { font-size: 1.6rem; text-align: center; letter-spacing: .08em; max-width: 360px; width: 100%; }

/* Índice de secciones en las páginas de categoría */
.chips.jump { margin: 4px 0 8px; }
.chips.jump a { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 550; font-size: .92rem; text-decoration: none; }
.chips.jump a:hover { border-color: var(--accent); }
.chips.jump small { color: var(--muted); font-weight: 600; margin-left: 2px; }
h2[id] { scroll-margin-top: 80px; }

/* Hueco reservado para cada herramienta mientras carga su JavaScript (alturas.json): evita que la página salte */
[data-tool]:empty { min-height: var(--h-m, 0); }
@media (min-width: 768px) { [data-tool]:empty { min-height: var(--h-d, 0); } }

/* Menú en pantallas estrechas: se desliza de lado y un degradado avisa de que hay más */
@media (max-width: 700px) {
  nav.top { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 24px; scrollbar-width: none; }
  nav.top::-webkit-scrollbar { display: none; }
}

/* ================================================================
   Estilo elegante (marfil, verde bosque y dorado)
   ================================================================ */
::selection { background: var(--accent2-soft); color: var(--text); }
h1, h2, h3, .logo b, .big, .hero h1, .tod-t, .quiz-q, .mem-num { font-family: var(--serif); font-optical-sizing: auto; }
h1 { font-weight: 560; letter-spacing: -.02em; }
h2 { font-weight: 560; letter-spacing: -.01em; font-size: 1.45rem; }
h3 { font-weight: 600; letter-spacing: 0; }
.tile h3, .cat-tile h3 { font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
.big { font-weight: 600; letter-spacing: -.02em; }

/* cabecera */
header.site { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); }
header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent2-fill) 30%, var(--accent2-fill) 70%, transparent); opacity: .55; }
header.site { position: sticky; }
.logo { gap: 11px; font-size: 1.32rem; letter-spacing: -.01em; }
.logo img { border-radius: 50%; }
.logo b { font-weight: 600; color: var(--text); }
.logo span { font-style: italic; font-weight: 500; color: var(--accent); }
nav.top a { font-weight: 500; color: var(--muted); border-radius: 999px; padding: 6px 14px; }
nav.top a:hover { background: var(--surface-2); color: var(--text); }
nav.top a.on { background: var(--accent); color: var(--accent-text); }

/* portada */
.hero { background: var(--bg); background-image: none; border: 1px solid var(--border); border-radius: 22px; text-align: center; padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 56px); }
.hero::before { background: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--accent2-fill) 22%, transparent), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--accent2-fill) 45%, transparent); border-radius: 16px; pointer-events: none; }
.hero h1 { margin-left: auto; margin-right: auto; max-width: 760px; font-weight: 520; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 480; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .search { max-width: 620px; margin-left: auto; margin-right: auto; text-align: left; }
.hero .quick, .hero-pills { justify-content: center; }
.eyebrow { padding: 6px 16px; border-radius: 999px; background: transparent; color: var(--accent2); border: 1px solid color-mix(in srgb, var(--accent2-fill) 60%, transparent); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.hero-pills span b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.trust > div { background: var(--bg); }
.trust i { background: var(--surface-2); color: var(--accent); border-radius: 50%; }
.sec-head { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sec-head h2::after { content: " ✦"; color: var(--accent2-fill); font-size: .7em; vertical-align: .15em; }

/* tarjetas y botones */
.card { background: var(--surface); }
.tile .ico { border-radius: 50%; background: var(--surface-2); border-color: transparent; color: var(--accent); }
.tile:hover { border-color: var(--accent2-fill); }
.tile:hover h3 { color: var(--accent); }
.cat-tile .count { color: var(--accent2); }
button, .btn { border-radius: 999px; padding: 10px 20px; font-weight: 600; letter-spacing: .01em; box-shadow: none; }
button.ghost, .btn.ghost { background: transparent; }
.chips button, .chips.jump a { border-radius: 999px; background: transparent; }
.chips button.on { background: var(--accent); color: var(--accent-text); }
select, textarea, input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"] { background: var(--bg); border-color: var(--border); border-radius: 10px; }
.result .big { color: var(--accent); }
.prose h2, .about h2 { font-size: 1.3rem; }
footer.site { border-top: 1px solid var(--border); background: var(--surface-2); }
footer.site h4 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
/* Rejillas: nunca más anchas que la pantalla, aunque sea muy estrecha */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
@media (max-width: 520px) { .hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.3rem); } }

/* Miniaturas de YouTube y redimensionar imágenes */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.yt-th { margin: 0; padding: 10px; }
.yt-th img { width: 100%; height: auto; border-radius: 10px; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.yt-th figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: .9rem; flex-wrap: wrap; }
.rz-canvas { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 10px; border: 1px solid var(--border); }
input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--accent2-fill); border-radius: 10px; background: var(--bg); font: inherit; }
input[type="color"] { width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 4px; }
/* En el móvil la cabecera no se queda fija: deja más sitio a la herramienta */
@media (max-width: 640px) { header.site { position: relative; } }

/* Cuentas atrás */
.fl { text-align: center; padding: 28px 16px; }
.fl-emoji { font-size: 3rem; line-height: 1; }
.fl-kicker { font-family: var(--serif); font-size: 1.3rem; margin: 10px 0 0; }
.fl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 540px; margin: 18px auto 8px; }
.fl-grid > div { border: 1px solid var(--border); border-radius: 14px; padding: 12px 4px; }
.fl-grid b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 7vw, 2.8rem); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.fl-grid span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.fl-today { grid-column: 1 / -1; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); }
.fl-when { color: var(--muted); }
.fl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.fl-list a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); padding: 14px 16px; }
.fl-list a:hover { border-color: var(--accent2-fill); }
.fl-list span { font-size: 1.4rem; } .fl-list small { color: var(--accent2); font-weight: 600; }
/* Calendario laboral 2027 */
.c7-t { margin: 0 0 16px; }
.c7-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.c7-m h3 { margin: 0 0 6px; font-size: 1rem; }
.c7-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .82rem; }
.c7-g b { color: var(--muted); font-weight: 600; font-size: .7rem; }
.c7-g i { font-style: normal; padding: 4px 0; border-radius: 6px; }
.c7-g i.we { color: var(--muted); background: var(--surface-2); }
.c7-g i.fe { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.c7-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 2px; }
.c7-key.fe { background: var(--accent); } .c7-key.we { background: var(--surface-2); border: 1px solid var(--border); }
@media print {
  .no-print, .share, .fl-list { display: none !important; }
  main h2.c7-t, .c7 h2 { display: block !important; }
  .c7-months { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .c7-g i.fe { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { border: 0; padding: 0; }
}
/* Citas APA y resultados */
.apa-out { font-family: "Times New Roman", Times, serif; font-size: 1.08rem; line-height: 1.7; padding-left: 2em; text-indent: -2em; text-align: left; margin: 0; overflow-wrap: anywhere; }
.result .big.ok { color: var(--good); } .result .big.ko { color: var(--bad); }

/* «Insertar en tu web» y modo insertado */
.embed-box { margin-top: 12px; font-size: .9rem; }
.embed-box summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.embed-box textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; margin-top: 8px; }
html.embed header.site, html.embed footer.site, html.embed .crumbs, html.embed .lead, html.embed .sharebar, html.embed .embed-box,
html.embed .about, html.embed main .wrap > h2, html.embed main .wrap > .grid, html.embed .skip { display: none !important; }
html.embed main { padding: 12px 0 44px; }
html.embed h1 { font-size: 1.3rem; margin-bottom: 12px; }
.embed-sign { position: fixed; right: 10px; bottom: 8px; display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; text-decoration: none;
  color: var(--accent); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }

/* Inflación por años */
.ipc-bars { display: grid; gap: 4px; }
.ipc-bars > div { display: grid; grid-template-columns: 44px 1fr 56px; gap: 8px; align-items: center; font-size: .85rem; }
.ipc-bars i { display: block; height: 10px; border-radius: 5px; background: var(--accent); }
.ipc-bars i.neg { background: var(--accent2-fill); }
.ipc-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.on td { background: var(--accent-soft); font-weight: 700; }

/* Portada: los recuadros de confianza van al final, separados de las guías */
body[data-home] .trust { margin-top: 28px; }

/* Precio de la luz */
.luz-tabs { margin-bottom: 12px; }
.luz-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.luz-top .card { padding: 14px 16px; }
.luz-top span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.luz-top b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-top: 2px; }
.luz-top small { color: var(--muted); }
.luz-now.barato { border-color: var(--good); } .luz-now.caro { border-color: var(--bad); } .luz-now.medio { border-color: var(--accent2-fill); }
.luz-bars { display: grid; gap: 3px; }
.luz-bars > div { display: grid; grid-template-columns: 38px 1fr 64px; gap: 8px; align-items: center; font-size: .82rem; padding: 1px 4px; border-radius: 6px; }
.luz-bars > div.now { background: var(--accent-soft); font-weight: 700; }
.luz-bars i { display: block; height: 12px; border-radius: 6px; }
.luz-bars .barato i, .luz-key.barato { background: var(--good); }
.luz-bars .medio i, .luz-key.medio { background: var(--accent2-fill); }
.luz-bars .caro i, .luz-key.caro { background: var(--bad); }
.luz-bars b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.luz-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 8px; }
/* Optimizador de vacaciones */
.c7-g i.va { background: var(--accent2-fill); color: #1d2a23; font-weight: 700; }
.c7-key.va { background: var(--accent2-fill); }

/* Pie de página: marca arriba, cinco columnas y barra legal */
footer.site { padding: 48px 0 28px; font-size: .92rem; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid color-mix(in srgb, var(--accent2-fill) 45%, var(--border)); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.foot-brand img { border-radius: 50%; }
.foot-brand b { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.foot-brand b span { font-style: italic; font-weight: 500; color: var(--accent); }
.foot-top p { margin: 0; max-width: 520px; line-height: 1.55; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; margin-bottom: 34px; }
.foot-cols > div:first-child { grid-column: auto; }
.foot-cols h4 { margin: 0 0 14px; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.foot-cols h4 a { color: var(--text); }
.foot-cols h4::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--accent2-fill); }
.foot-cols ul { gap: 9px; }
.foot-cols li a { display: inline-block; line-height: 1.35; }
.foot-cols li.more a { color: var(--accent); font-weight: 600; font-size: .88rem; }
.foot-bottom { font-size: .86rem; }
@media (max-width: 1000px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; } .foot-top { flex-direction: column; align-items: flex-start; } }
.foot-cols li.more { text-align: left; margin: 2px 0 0; }
/* El pie siempre abajo, aunque la página tenga poco contenido */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* Tablas de las guías: si no caben en el móvil, se desplazan dentro de su caja en vez de ensanchar la página */
.prose table.tbl { display: block; max-width: 100%; overflow-x: auto; }

/* Convertidor de archivos */
.ar-tabs { margin-bottom: 12px; }
.ar-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 30px 16px; border: 2px dashed var(--accent2-fill); border-radius: 16px; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.ar-drop:hover, .ar-drop.over { background: var(--accent2-soft); border-color: var(--accent); }
.ar-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ar-drop b { font-size: 1.05rem; color: var(--accent); }
.ar-drop span { font-size: .85rem; color: var(--muted); }
.ar-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ar-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.ar-list img, .ar-ico { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ar-list div { flex: 1; min-width: 0; } .ar-list b { display: block; overflow-wrap: anywhere; } .ar-list small { color: var(--muted); }
.ar-pages { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.ar-pages li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-pages li > span:first-child { overflow-wrap: anywhere; }
.ar-ord { display: flex; gap: 4px; flex: 0 0 auto; } .ar-ord button { padding: 4px 10px; }
.ar-code { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }

/* Deslizadores: ocupan todo el ancho del campo y usan el verde de la web */
.ctl input[type="range"] { width: 100%; accent-color: var(--accent); margin-top: 10px; }
