/* Sitio de Misidoku: mismos colores, letras y relieve que la app (docs/ESTILO_VISUAL.md del juego). */
:root {
  --bg: #F6F4FF;
  --sky: #CFC7FF;
  --surface: #FFFFFF;
  --text: #2B2D42;
  --muted: #4B4F66;
  --accent: #7C3AED;
  --on-accent: #FFFFFF;
  --accent-edge: #5B21B6;
  --accent-soft: #F3F0FF;
  --surface-edge: #D6CEF8;
  --rim: #FFFFFF;
  --doku: #EA7A1A;
  --ear-inner: #F7B6B2;
  --cloud: #FFFFFF;
  --cloud-shade: #E7E2FF;
  --paw: rgba(255, 255, 255, .55);
  --gold: #FBBF24; --gold-edge: #D97706;
  --violet: #8F63FA; --violet-edge: #6D28D9;
  --orange: #FB923C; --orange-edge: #C2410C;
  --gain: #15803D;
  --error: #EF4444;
  --warn-bg: #FFF3CF; --warn-line: #F3D28C; --warn-text: #6B4520;
  /* Iguales en modo claro y oscuro, como en la app */
  --tray: #463C74; --tray-edge: #2F2853;
  --r0: #F7B6B2; --r1: #F9D29D; --r2: #FBEA9C; --r3: #C6E5A3; --r4: #A6DCCF;
  --r5: #A9CDEB; --r6: #C3B6EA; --r7: #E9B8DD; --r8: #D9C7B0;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 20px;
  color-scheme: light;
}
/* Modo oscuro: el del equipo, salvo que la persona elija otro con el botón (data-theme en <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F2233; --sky: #2A2450; --surface: #2A2F45; --text: #F8FAFC; --muted: #A7B0C0;
    --accent: #A78BFA; --on-accent: #1F2233; --accent-edge: #6D28D9; --accent-soft: #34385A;
    --surface-edge: #161929; --rim: #3B4163; --doku: #FDBA74;
    --cloud: #2A2F45; --cloud-shade: #252840; --paw: rgba(255, 255, 255, .08);
    --gain: #34D399; --error: #F87171;
    --warn-bg: #3B3222; --warn-line: #7A5B2A; --warn-text: #F3D28C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1F2233; --sky: #2A2450; --surface: #2A2F45; --text: #F8FAFC; --muted: #A7B0C0;
  --accent: #A78BFA; --on-accent: #1F2233; --accent-edge: #6D28D9; --accent-soft: #34385A;
  --surface-edge: #161929; --rim: #3B4163; --doku: #FDBA74;
  --cloud: #2A2F45; --cloud-shade: #252840; --paw: rgba(255, 255, 255, .08);
  --gain: #34D399; --error: #F87171;
  --warn-bg: #3B3222; --warn-line: #7A5B2A; --warn-text: #F3D28C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.05rem; line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; border-radius: 12px; }
.skip:focus { top: 1rem; }

.wrap {
  max-width: 72rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band.alt { background: var(--surface); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.section-head { display: grid; gap: .6rem; max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); font-weight: 600; }

/* Botones con canto (relieve) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  padding: .85rem 1.4rem; border-radius: var(--radius); border: 0; cursor: pointer;
  text-decoration: none; transition: transform .08s, box-shadow .08s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-edge); }
.btn-secondary { background: var(--surface); color: var(--accent); box-shadow: 0 5px 0 var(--surface-edge); }
.btn:active { transform: translateY(3px); }
.btn-primary:active { box-shadow: 0 2px 0 var(--accent-edge); }
.btn-secondary:active { box-shadow: 0 2px 0 var(--surface-edge); }
.btn.soon { cursor: default; }
.btn.soon:active { transform: none; box-shadow: 0 5px 0 var(--accent-edge); }
.btn-secondary.soon:active { box-shadow: 0 5px 0 var(--surface-edge); }
.btn small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .04em; opacity: .85; text-transform: uppercase; }
.btn .stack { display: grid; text-align: left; line-height: 1.15; }
.btn svg { width: 22px; height: 22px; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; justify-self: start;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: .25rem .75rem; font-weight: 800; font-size: .85rem;
}

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--sky) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top, 0px); }
.site-header.on-bg { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; padding-block: .7rem; position: relative; }
.logo { display: block; width: 132px; flex: none; }
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.lang { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: 0 3px 0 var(--surface-edge); }
.lang > * { padding: .15rem .6rem; border-radius: 999px; font-weight: 800; font-size: .8rem; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--accent); }
.lang .on { background: var(--accent); color: var(--on-accent); }
.header-cta { padding: .55rem 1rem; font-size: .95rem; }
.header-cta svg { width: 16px; height: 16px; }
/* En el celular no cabe junto al menú; el botón grande de "Jugar" queda justo debajo. */
@media (max-width: 520px) { .header-cta { display: none; } }
.theme-btn { width: 40px; height: 40px; flex: none; border-radius: 14px; border: 0; background: var(--surface); box-shadow: 0 3px 0 var(--surface-edge); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.theme-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--surface-edge); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--surface); box-shadow: 0 4px 0 var(--surface-edge); color: var(--accent); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { gap: .6rem; }
  .site-header .wrap { gap: .6rem; }
  .logo { width: 116px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + .25rem);
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--radius);
    box-shadow: 0 5px 0 var(--surface-edge), 0 20px 40px rgba(47, 40, 83, .2); padding: .5rem;
  }
  .nav-links a { padding: .75rem 1rem; border-radius: 14px; font-size: 1.05rem; }
  .nav-links a:hover { background: var(--accent-soft); }
  .site-header.open .nav-links { display: flex; }
}

/* Portada */
.hero { position: relative; background: linear-gradient(var(--sky), color-mix(in srgb, var(--sky) 55%, var(--bg)) 70%, var(--bg)); overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: 2.5rem 1rem; }
.hero-copy { display: grid; gap: 1.4rem; align-content: start; padding-bottom: 2rem; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -.01em; }
.hero h1 .misi { color: var(--accent); }
.hero h1 .doku { color: var(--doku); }
.hero .lead { font-size: 1.15rem; color: var(--muted); font-weight: 600; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.facts li { background: var(--surface); border-radius: 999px; padding: .3rem .8rem; font-weight: 800; font-size: .85rem; color: var(--muted); box-shadow: 0 3px 0 var(--surface-edge); }
.paws { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.paws svg { position: absolute; width: 30px; height: auto; aspect-ratio: 1; fill: var(--paw); }
.clouds { position: relative; z-index: 1; margin-top: -3rem; height: 150px; }
.clouds svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: max(100%, 1200px); height: 150px; }
.cat-row {
  position: relative; z-index: 3; display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(.25rem, 2vw, 1.5rem); margin-top: -118px; padding-bottom: 1rem;
  background: linear-gradient(transparent 118px, var(--cloud) 118px);
}
.cat-row img { width: clamp(64px, 10vw, 112px); height: auto; animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.cat-row img:nth-child(2) { animation-delay: -.8s; }
.cat-row img:nth-child(3) { animation-delay: -1.6s; width: clamp(84px, 13vw, 140px); }
.cat-row img:nth-child(4) { animation-delay: -2.2s; }
.cat-row img:nth-child(5) { animation-delay: -.4s; }
.cat-row img:nth-child(6) { animation-delay: -2.8s; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .975); } }

/* Teléfono de la portada */
.phone { justify-self: center; width: min(320px, 100%); background: var(--tray-edge); border-radius: 44px; padding: 12px; box-shadow: 0 10px 0 color-mix(in srgb, var(--tray-edge) 60%, #000), 0 30px 60px rgba(47, 40, 83, .25); position: relative; z-index: 2; }
.screen { border-radius: 34px; overflow: hidden; background: linear-gradient(var(--sky), var(--bg)); padding: 1.1rem .9rem 1.4rem; display: grid; gap: .8rem; }
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-align: center; }
.screen-title small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 800; color: var(--accent); }
.icon-btn { width: 34px; height: 34px; border-radius: 11px; background: var(--surface); box-shadow: 0 3px 0 var(--surface-edge); display: grid; place-items: center; color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }
.status-card { background: var(--surface); border-radius: 16px; box-shadow: 0 4px 0 var(--surface-edge); padding: .5rem .75rem; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .85rem; }
.hearts { display: flex; gap: 2px; }
.heart { width: 18px; height: 18px; fill: var(--error); stroke: color-mix(in srgb, var(--error) 55%, #000); stroke-width: 1.5; }
.heart.empty { fill: color-mix(in srgb, var(--muted) 25%, transparent); stroke: color-mix(in srgb, var(--muted) 50%, transparent); }
.timer { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .1rem .55rem; font-variant-numeric: tabular-nums; }
.tools { display: flex; justify-content: center; gap: 1.1rem; }
.tool { display: grid; justify-items: center; gap: .25rem; font-size: .68rem; font-weight: 800; color: var(--muted); }
.tool i { width: 42px; height: 42px; border-radius: 13px; background: var(--surface); box-shadow: 0 4px 0 var(--surface-edge); display: grid; place-items: center; color: var(--accent); font-style: normal; }
.tool i svg { width: 20px; height: 20px; }
.tool.gold i { background: var(--gold); box-shadow: 0 4px 0 var(--gold-edge); color: #2B2D42; }

/* Tablero "Fichas con puentes" (lo dibuja assets/main.js) */
/* .board es el contenedor que miden las unidades cqw; la bandeja va adentro para medirse contra él. */
.board { container-type: inline-size; width: 100%; max-width: 100%; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.board-tray { background: var(--tray); border-radius: 7cqw; box-shadow: 0 2.2cqw 0 var(--tray-edge); padding: 4cqw; margin-bottom: 2.2cqw; }
.board-grid { position: relative; width: 100%; aspect-ratio: 1; }
.bridge, .tile { position: absolute; }
.bridge { background: var(--rc); }
.tile {
  background: var(--rc); border-radius: 22%;
  box-shadow: inset 0 -1.6cqw 0 color-mix(in srgb, var(--rc) 72%, #3b2f66), inset 0 1.2cqw 0 rgba(255, 255, 255, .5);
  border: 0; padding: 0; margin: 0; cursor: default; font: inherit; color: inherit;
}
.board.playable .tile { cursor: pointer; }
.board.playable .tile:hover { filter: brightness(1.04); }
.board.playable .tile:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.tile .x { position: absolute; inset: 26%; }
.tile .x::before, .tile .x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 118%; height: 20%; border-radius: 99px;
  background: color-mix(in srgb, var(--rc) 50%, #000);
  box-shadow: 0 .5cqw 0 rgba(255, 255, 255, .75);
  transform: translate(-50%, -50%) rotate(45deg);
}
.tile .x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tile.red .x::before, .tile.red .x::after { background: #EF4444; }
.tile img { position: absolute; left: 6%; top: 4%; width: 88%; height: 88%; filter: drop-shadow(1.2cqw 1.4cqw 0 rgba(47, 40, 83, .3)); pointer-events: none; }
.tile.pop img { animation: pop .35s ease-out; }
.tile.shake { animation: shake .4s; }
@keyframes pop { 0% { transform: scale(.4) translateY(10%); } 60% { transform: scale(1.12) translateY(-8%); } 100% { transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6%); } 40%, 80% { transform: translateX(6%); } }

/* Cómo se juega */
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rule { background: var(--bg); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .7rem; align-content: start; }
.rule h3 { font-size: 1.15rem; }
.rule p { font-size: .95rem; color: var(--muted); font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 96px; }
.mini span { aspect-ratio: 1; border-radius: 5px; background: color-mix(in srgb, var(--muted) 14%, transparent); position: relative; }
.mini .hl { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.mini .rg { background: var(--r1); }
.mini .no { background: color-mix(in srgb, var(--error) 22%, transparent); }
.mini .cat::after { content: ""; position: absolute; inset: 8%; background: url("img/cat-face.webp") center / contain no-repeat; }
.mini.three { grid-template-columns: repeat(3, 1fr); width: 72px; }
.try { background: var(--bg); border-radius: 28px; padding: 1.5rem; display: grid; gap: 1rem; min-width: 0; }
.try-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.try-head h3 { font-size: 1.4rem; }
.try .board { max-width: 380px; justify-self: center; }
.controls { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; font-weight: 700; color: var(--muted); }
.controls b { color: var(--text); }
.try-status { min-height: 1.6em; font-weight: 800; text-align: center; }
.try-status.win { color: var(--gain); }
.try-status.lose { color: var(--error); }
.reset { justify-self: center; padding: .5rem 1rem; font-size: .95rem; }

/* Modos */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mode {
  border-radius: 24px; border: 3px solid var(--rim); box-shadow: 0 6px 0 var(--surface-edge);
  padding: 1.4rem; display: grid; gap: .8rem; align-content: start;
  background: linear-gradient(140deg, color-mix(in srgb, var(--m1) 42%, var(--surface)), color-mix(in srgb, var(--m2) 32%, var(--surface)));
}
.mode img { width: 120px; height: 120px; object-fit: contain; }
.mode h3 { font-size: 1.5rem; }
.mode p { color: var(--muted); font-weight: 600; font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.chips span { background: var(--surface); border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; font-weight: 800; color: var(--text); }
.extras { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; color: var(--muted); font-weight: 700; }
.extras b { color: var(--text); }

/* Reto diario */
.daily { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; margin-block: 1.5rem; padding: 0; list-style: none; }
.day { background: var(--surface); border-radius: 14px; box-shadow: 0 4px 0 var(--surface-edge); overflow: hidden; text-align: center; min-width: 0; }
.band.alt .day { background: var(--bg); }
.day .band-top { background: var(--doku); color: #2B2D42; font-family: var(--font-display); font-weight: 600; font-size: .8rem; padding: .15rem 0; }
.day .size { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; padding-top: .35rem; font-variant-numeric: tabular-nums; }
.day .lvl { font-size: .68rem; font-weight: 800; color: var(--muted); padding-bottom: .45rem; }
.day.today { box-shadow: 0 0 0 3px var(--accent), 0 4px 0 var(--surface-edge); }
.daily-rules { display: grid; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.daily-rules li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.daily-rules svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: .1rem; }
.podium-card { display: grid; gap: 1rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .6rem; }
.place { display: grid; justify-items: center; gap: .35rem; }
.av { width: 64px; height: 64px; border-radius: 50%; background: var(--avbg); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ring); overflow: hidden; display: grid; place-items: end center; }
.av img { width: 86%; height: 86%; object-fit: contain; transform: translateY(8%); }
.place .name { font-weight: 800; font-size: .85rem; }
.place .meta { font-size: .72rem; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.block { width: 100%; border-radius: 14px 14px 6px 6px; background: var(--pc); box-shadow: 0 5px 0 var(--pe); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 2rem; display: grid; place-items: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.p1 { --pc: var(--gold); --pe: var(--gold-edge); --ring: var(--gold); }
.p2 { --pc: var(--violet); --pe: var(--violet-edge); --ring: var(--violet); }
.p3 { --pc: var(--orange); --pe: var(--orange-edge); --ring: var(--orange); }
.p1 .block { height: 120px; } .p2 .block { height: 88px; } .p3 .block { height: 66px; }
.sample { font-size: .8rem; color: var(--muted); font-weight: 700; text-align: center; }

/* Croquetas */
.eco-head { display: flex; gap: 1.25rem; align-items: center; }
.eco-head svg { width: 72px; height: auto; flex: none; }
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.eco-item { display: grid; gap: .6rem; align-content: start; padding-top: 1.1rem; border-top: 3px solid var(--surface-edge); }
.eco-item h3 { font-size: 1.3rem; }
.eco-item p { color: var(--muted); font-weight: 600; font-size: .97rem; }
.eco-item ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.redline { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; background: var(--warn-bg); border: 2px dashed var(--warn-line); color: var(--warn-text); border-radius: 18px; padding: 1rem 1.25rem; font-weight: 800; }
.redline svg { width: 44px; height: auto; flex: none; }

/* Juego limpio */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar { display: grid; gap: .6rem; align-content: start; }
.pillar .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); color: var(--on-accent); display: grid; place-items: center; }
.pillar .ic svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Novedades */
.news { display: grid; gap: 1rem; max-width: 48rem; }
.news-item { background: var(--surface); border-radius: var(--radius); box-shadow: 0 5px 0 var(--surface-edge); padding: 1.1rem 1.35rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.news-item time { font-weight: 800; color: var(--muted); font-size: .9rem; }
.news-item h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.news-item p { color: var(--muted); font-weight: 600; font-size: .95rem; }
.news-item .btn { margin-top: .75rem; padding: .55rem 1rem; font-size: .95rem; }
.news-item .btn svg { width: 16px; height: 16px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .1rem .55rem; margin-bottom: .4rem; background: var(--accent-soft); color: var(--accent); }

/* Preguntas */
.faq { display: grid; gap: .75rem; max-width: 48rem; }
.faq details { background: var(--bg); border-radius: 18px; padding: .2rem 1.25rem; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; padding: .85rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; color: var(--muted); font-weight: 600; }

/* Contacto */
.contact { background: var(--accent); color: var(--on-accent); border-radius: 28px; box-shadow: 0 6px 0 var(--accent-edge); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; align-items: center; }
.contact img { width: 170px; height: auto; align-self: end; margin-bottom: calc(-1 * clamp(1.5rem, 4vw, 2.5rem)); }
.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.contact p { font-weight: 600; opacity: .92; margin-top: .4rem; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.mail { background: var(--accent-soft); color: var(--text); border-radius: .6rem; padding: .15rem .55rem; font-weight: 800; user-select: all; overflow-wrap: anywhere; }
.contact .mail { background: var(--surface); border-radius: 14px; padding: .55rem .9rem; text-decoration: none; }
.copy { background: var(--surface); color: var(--accent); border: 0; border-radius: 14px; box-shadow: 0 4px 0 var(--surface-edge); padding: .55rem .9rem; font: inherit; font-weight: 800; cursor: pointer; }

/* Pie */
.footer { padding-block: 3rem 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer .logo { width: 150px; margin-bottom: .75rem; }
.footer p, .footer li { color: var(--muted); font-weight: 600; font-size: .92rem; }
.footer h4 { font-size: 1rem; margin-bottom: .5rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer a { text-decoration: none; }
.legal-note { grid-column: 1 / -1; border-top: 2px solid var(--surface-edge); padding-top: 1.25rem; font-size: .82rem; }
.footer.slim { padding-block: 2rem; }
.footer.slim .legal-note { border: 0; padding: 0; }

/* Páginas legales */
.legal-hero { background: linear-gradient(var(--sky), var(--bg)); padding-block: 2.5rem 2rem; }
.legal-hero .wrap { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.updated { color: var(--muted); font-weight: 700; margin-top: .4rem; }
.legal-hero img { width: 150px; height: auto; margin-bottom: -2rem; }
.crumbs { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { text-decoration: none; }
.legal { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 3rem; padding-block: 2rem 4rem; }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: .15rem; }
.toc h2 { font-size: 1rem; margin-bottom: .5rem; }
.toc a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; padding: .3rem .7rem; border-radius: 10px; }
.toc a:hover { background: var(--accent-soft); color: var(--accent); }
.legal-body { display: grid; gap: 1rem; min-width: 0; }
.legal-body > h2 { font-size: 1.35rem; margin-top: 1.25rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 5px 0 var(--surface-edge); padding: 1.25rem 1.5rem; display: grid; gap: .75rem; min-width: 0; }
.card h2 { font-size: 1.35rem; }
.card ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.note { background: var(--warn-bg); border: 2px dashed var(--warn-line); color: var(--warn-text); border-radius: 14px; padding: .7rem 1rem; font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; }
.steps li::before { content: counter(s); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-edge); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.delete-page { max-width: 62rem; padding-block: 2rem 4rem; display: grid; gap: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.not-found { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-block: 4rem; }
.not-found img { width: 200px; height: auto; }

@media (max-width: 900px) {
  .hero > .wrap, .howto, .daily { grid-template-columns: 1fr; }
  .hero > .wrap { gap: 1.5rem; }
  .modes, .eco { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; gap: 1rem; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: .4rem; }
  .toc h2 { width: 100%; }
  .toc a { background: var(--surface); box-shadow: 0 3px 0 var(--surface-edge); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .rules, .pillars, .split { grid-template-columns: 1fr; }
  .week { gap: .3rem; }
  .day .size { font-size: .95rem; }
  .day .lvl { font-size: .58rem; }
  .news-item { grid-template-columns: 1fr; gap: .25rem; }
  .contact { grid-template-columns: 1fr; }
  .contact img { display: none; }
  .cat-row img:nth-child(1), .cat-row img:nth-child(6) { display: none; }
  .legal-hero img { width: 96px; margin-bottom: -1rem; }
}
