/* Arbolapea (negocio ficticio) — demo de Kairos Intelligence Agency. Colores y tipografías en :root.
   Fuentes OFL servidas desde assets/fonts (licencias al lado). */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/dm-serif-display-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/dm-serif-display-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); }
:root {
  --accent: #2F5D46;
  --on-accent: #F7F4EC;
  --deep: #17241D;
  --warm: #D9B26A;
  --soft: #EDF0E8;
  --paper: #FBFAF6;
  --ink: #121A15;
  --muted: #5F6B63;
  --line: #DFE3DA;
  --hero-em: #E4C27C;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --serif-weight: 400;
  --wrap: 1240px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --section: clamp(84px, 11vw, 168px);
  --radius: 22px;
  --ease: cubic-bezier(.2,.7,.15,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--paper); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 10px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: var(--serif-weight, 400); letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 0 0 .4em; text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 52ch; margin: 0; }
.num { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--on-accent); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn--line:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Cabecera ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.top.is-solid { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__inner { display: flex; align-items: center; gap: 36px; height: 86px; transition: height .5s var(--ease); }
.top.is-solid .top__inner { height: 70px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.brand__place { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .9; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top__call { min-height: 44px; padding: 0 20px; border-color: currentColor; color: inherit; }
.top__call:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 32%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.78) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero .eyebrow { color: #fff; }
.hero__title { font-family: var(--serif); font-weight: var(--serif-weight, 400); font-size: clamp(3.2rem, 8.6vw, 8.4rem); line-height: .96; letter-spacing: -.035em; margin: 0 0 28px; max-width: 12ch; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--hero-em, #fff); }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); max-width: 46ch; margin: 0 0 36px; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--line { color: #fff; }
.hero .btn--line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero__aside { display: grid; gap: 14px; justify-items: end; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .88rem; font-weight: 500; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #d8d8d8; }
.status.is-open .status__dot { background: #7ED38C; box-shadow: 0 0 0 0 rgba(126,211,140,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(126,211,140,0); } 100% { box-shadow: 0 0 0 0 rgba(126,211,140,0); } }
.rating { display: grid; gap: 4px; }
.rating b { font-family: var(--serif); font-weight: 400; font-size: 3.6rem; line-height: .9; }
.rating span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.stars { letter-spacing: .2em; font-size: .9rem; color: var(--hero-em, #fff); }
.photo-tag { position: absolute; z-index: 3; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .photo-tag { bottom: auto; top: 100px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 1px; height: 44px; background: rgba(255,255,255,.4); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 60%, 100% { transform: translateY(100%); } }

/* ---------- Cinta ---------- */
.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; border-block: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__track span { display: flex; align-items: center; gap: 36px; padding: 22px 18px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); white-space: nowrap; }
.ticker__track span i { font-style: normal; font-size: .8em; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Historia ---------- */
.story { padding: var(--section) 0; }
.story__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.story__media { position: relative; }
.story__media .ph { aspect-ratio: 4 / 5; }
.story__media > .ph:first-child .photo-tag { top: 14px; left: 14px; right: auto; bottom: auto; }
.story__media .ph--small { position: absolute; width: 46%; aspect-ratio: 1; right: -8%; bottom: -10%; border: 10px solid var(--paper); }
.story__text p { margin: 0 0 1.2em; color: var(--muted); max-width: 54ch; }
.story__text p:first-of-type { font-size: 1.22rem; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.stats div { padding: 26px 18px 0 0; }
.stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.stats dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.02em; }

/* ---------- Fotos ---------- */
.ph { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.045); }

/* ---------- Lo que hacemos ---------- */
.offer { padding: 0 0 var(--section); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 76px); }
.head .display { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(16px, 2.2vw, 30px); }
.card { display: grid; gap: 20px; align-content: start; }
.card .ph { aspect-ratio: 4 / 5; }
.card:nth-child(2) { margin-top: clamp(0px, 5vw, 70px); }
.card h3 { font-family: var(--serif); font-weight: var(--serif-weight, 400); font-size: 1.75rem; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card__idx { font-size: .78rem; font-weight: 600; letter-spacing: .18em; color: var(--accent); }

/* ---------- Bloque oscuro (encargos / día / menú) ---------- */
.feature { background: var(--deep); color: var(--paper); padding: var(--section) 0; position: relative; overflow: hidden; }
.feature .eyebrow { color: var(--warm); }
.feature .display em { color: var(--warm); }
.feature .lead { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.feature__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.steps li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--warm); }
.steps h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 600; }
.steps p { margin: 0; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.feature__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.price-badge { display: inline-grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); text-align: center; margin-top: 34px; }
.price-badge b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--warm); }
.price-badge span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* ---------- Carta ---------- */
.carta { padding: var(--section) 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 0 40px; border-radius: 999px; background: var(--soft); width: max-content; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 600 .95rem var(--sans); color: var(--ink); background: transparent; border: 0; border-radius: 999px; min-height: 46px; padding: 0 22px; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; }
.board__note { grid-column: 1 / -1; margin: 0 0 14px; color: var(--accent); font-weight: 500; }
.dish { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dish__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.dish__dots { border-bottom: 1px dotted color-mix(in srgb, var(--ink) 30%, transparent); transform: translateY(-6px); }
.dish__price { font-family: var(--serif); font-size: 1.45rem; color: var(--accent); white-space: nowrap; }
.dish__tbd { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dish__desc { grid-column: 1 / -1; margin: -4px 0 0; font-size: .95rem; color: var(--muted); }
.board.is-swapping { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Galería ---------- */
.gallery { padding: 0 0 var(--section); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 200px); gap: clamp(10px, 1.6vw, 22px); }
.mosaic .ph:nth-child(1) { grid-column: 1 / 6; grid-row: span 3; }
.mosaic .ph:nth-child(2) { grid-column: 6 / 10; grid-row: span 2; }
.mosaic .ph:nth-child(3) { grid-column: 10 / 13; grid-row: span 2; }
.mosaic .ph:nth-child(4) { grid-column: 6 / 9; grid-row: span 2; }
.mosaic .ph:nth-child(5) { grid-column: 9 / 13; grid-row: span 2; }
.mosaic .ph:nth-child(6) { grid-column: 1 / 6; grid-row: span 1; }

/* ---------- Opiniones ---------- */
.voices { background: var(--soft); padding: var(--section) 0; }
.voices__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.score { display: flex; align-items: baseline; gap: 18px; margin: 10px 0 18px; }
.score b { font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 10vw, 8.5rem); line-height: .85; letter-spacing: -.04em; color: var(--accent); }
.score span { color: var(--muted); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.quotes li { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px); }
.quotes blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; }
.quotes cite { font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); max-width: 40ch; margin: 22px 0 0; }

/* ---------- Redes ---------- */
.social { padding: var(--section) 0; text-align: center; }
.social .display { max-width: 16ch; margin-inline: auto; }
.social .lead { margin: 0 auto 36px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 16px); margin-top: 56px; }
.strip .ph { aspect-ratio: 1; border-radius: 16px; }

/* ---------- Preguntas ---------- */
.faq { padding: 0 0 var(--section); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 60ch; }

/* ---------- Visítanos ---------- */
.visit { background: var(--deep); color: var(--paper); padding: var(--section) 0; }
.visit .eyebrow { color: var(--warm); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit__addr { font-size: 1.2rem; color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 0 0 40px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); font-weight: 400; }
.hours td { text-align: right; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--warm); }
.hours tr.is-today th::after { content: "  · hoy"; font-size: .85em; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.map { position: sticky; top: 100px; }
.map__draw { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.map a { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--warm); text-underline-offset: 5px; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: color-mix(in srgb, var(--paper) 70%, transparent); padding: clamp(60px, 8vw, 110px) 0 calc(36px + env(safe-area-inset-bottom)); }
.foot__big { font-family: var(--serif); font-size: clamp(3rem, 11vw, 10rem); line-height: .9; letter-spacing: -.04em; color: var(--paper); margin: 0 0 50px; }
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 30px; border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent); font-size: .95rem; }
.foot__grid p { margin: 0 0 6px; }
.foot a { color: inherit; text-underline-offset: 4px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__credit { margin-top: 40px; font-size: .8rem; opacity: .7; }

/* ---------- Barra móvil ---------- */
.dock { display: none; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .top__call { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: end; gap: 24px; }
  .story__grid, .feature__grid, .voices__grid, .faq__grid, .visit__grid, .head { grid-template-columns: 1fr; }
  .story__media .ph--small { right: 4%; }
  .cards { --cols: 2; }
  .card:nth-child(2) { margin-top: 0; }
  .board { grid-template-columns: 1fr; }
  .map { position: static; }
  .map__draw { aspect-ratio: 4 / 3; }
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .mosaic .ph:nth-child(n) { grid-column: span 3; grid-row: span 2; }
  .mosaic .ph:nth-child(1) { grid-column: 1 / -1; grid-row: span 3; }
}
@media (max-width: 640px) {
  body { padding-bottom: 78px; }
  .top__call { display: none; }
  .top__inner, .top.is-solid .top__inner { height: 64px; }
  .hero { min-height: 92svh; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__actions .btn { flex: 1; }
  .hero .photo-tag { top: 80px; }
  .rating b { font-size: 2.8rem; }
  .cards { --cols: 1; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats div + div { padding-left: 12px; }
  .stats dd { font-size: 1.7rem; }
  .steps li { grid-template-columns: 64px 1fr; gap: 14px; }
  .steps b { font-size: 2rem; }
  .strip { grid-template-columns: 1fr 1fr; }
  .tabs { width: auto; border-radius: 18px; }
  .foot__grid { grid-template-columns: 1fr; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 120; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-weight: 600; text-decoration: none; }
  .dock__a { background: var(--accent); color: var(--on-accent); }
  .dock__b { background: var(--ink); color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* ---------- Aviso legal ---------- */
.page-legal .top { position: sticky; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.legal { padding: clamp(60px, 9vw, 120px) 0 var(--section); }
.legal__body { max-width: 70ch; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); margin: 0 0 .5em; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 2.2rem 0 .5rem; }
.legal p { margin: 0 0 1em; color: var(--muted); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
.legal mark { background: var(--soft); color: var(--ink); padding: 0 6px; border-radius: 4px; }
.legal a { color: var(--accent); }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 12px; } body.page-legal { padding-bottom: 0; } }

/* Final del titular que rota (idea de React Bits «Rotating Text») */
.rota { display: inline-grid; vertical-align: top; overflow: hidden; }
.rota span { grid-area: 1 / 1; transform: translateY(105%); opacity: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s; white-space: nowrap; }
.rota span.ya { transform: none; opacity: 1; }
.rota span.fue { transform: translateY(-105%); opacity: 0; }
@media (max-width: 640px) { .rota span { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .rota span { transition: none; } }

/* Demo: aviso de lo que haría cada botón en la web real */
.foot__credit a { color: inherit; text-underline-offset: 3px; }
.demo-toast { position: fixed; left: 50%; bottom: 96px; z-index: 200; width: min(92vw, 440px); margin: 0; padding: 14px 18px; border-radius: 14px; font: 600 15px/1.4 var(--sans); color: var(--on-accent); background: var(--deep); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border: 1px solid var(--warm); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .demo-toast { transition: none; } }

/* Botones fijos del móvil: escondidos en la portada y el horario, aparecen al bajar (José, 16/11) */
.dock { transform: translateY(120%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.dock.is-on { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .dock, .dock.is-on { transition: none; } }
