/* =========================================================
   Rivadex — estilos del sitio (estilo editorial cálido)
   Breakpoints: escritorio ≥1200 · tablet 810–1199 · móvil <810
   El menú pasa a modo móvil por debajo de 1100 px.
   ========================================================= */

:root {
  --ivory: #FAF9F5;
  --pampas: #F0EEE6;
  --ink: #141413;
  --body: #3D3D3A;
  --muted: #6B6A64;
  --line: #DEDCD1;
  --line-strong: #C9C6BA;
  --clay: #D97757;
  --clay-deep: #A8502F;
  --danger: #B54A2F;
  --success: #2F6B3B;
  --dark2: #262624;
  --darkline: #3A3936;
  --on-dark-muted: #A8A69D;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-display: "Sora", "Geist", system-ui, sans-serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 40px;
  --maxw: 1120px;
  --nav-h: 72px;
  --radius-card: 16px;
  --radius-media: 12px;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 22px 44px -22px rgba(20, 20, 19, .28);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--clay); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 8px 14px; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía (tamaños fluidos entre móvil y escritorio) ---------- */
.t-statement { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.7vw, 44px); line-height: 1.18; letter-spacing: -0.015em; }
.statement-strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; }
.t-display { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.7vw, 56px); line-height: 1.06; letter-spacing: -0.035em; }
.t-videotitle { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ivory); text-align: center; }
.t-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.85vw, 34px); line-height: 1.15; letter-spacing: -0.025em; }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.t-h3--sm { font-size: 18px; }
.t-lead { font-family: var(--font-serif); font-weight: 400; font-size: clamp(19px, 1.85vw, 22px); line-height: 1.42; letter-spacing: -0.005em; }
.t-body { font-size: 15px; line-height: 1.6; color: var(--body); }
.t-small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.t-ui { font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--ink); }
.t-ui--sm { font-size: 13px; }
.t-eyebrow { font-weight: 500; font-size: 12px; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.on-dark { color: var(--ivory); }
.on-dark-muted { color: var(--on-dark-muted); }
.center { text-align: center; }

.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
.inline-link:hover { color: var(--clay-deep); }

.arrow { display: inline-block; transition: transform .25s var(--ease-out); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 0 var(--gutter) 96px; }
.section--first { padding-top: 64px; padding-bottom: 72px; }
.section--tight-top { padding-top: 0; }
.section--last { padding-bottom: 112px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; border-top: 1px solid var(--line); padding-top: 48px; }
.two-col__intro { display: flex; flex-direction: column; gap: 16px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Botones, chips y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-btn); border: 0; cursor: pointer;
  font-family: var(--font-sans); font-weight: 500; font-size: 14px; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--soft { background: var(--line); color: var(--ink); }
.btn--darkline { background: var(--darkline); color: var(--ivory); padding: 12px 22px; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 22px; border-radius: 100px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 100px;
  background: var(--pampas); border: 1px solid var(--line);
  font-weight: 500; font-size: 13px; line-height: 1.2; color: var(--ink); white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip.is-active { background: var(--line); border-color: var(--line-strong); }
.chip--app { background: transparent; }

.tag {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 7px; border-radius: 100px;
  background: rgba(217, 119, 87, .16); color: var(--clay-deep);
  font-family: var(--font-sans); font-weight: 600; font-size: 10px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle;
}
.tag--dark { background: rgba(217, 119, 87, .22); color: #F0A98F; }
[data-soon] { cursor: default; }

.dots { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 100px; background: var(--line); color: var(--body); font-size: 11px; letter-spacing: 1px; line-height: 1.6; }
.meta { display: flex; align-items: center; gap: 12px; }

/* Aviso breve (por ejemplo, «Sistema Contable estará disponible pronto») */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 70; width: fit-content; margin: 0 auto;
  padding: 11px 18px; border-radius: 100px; background: var(--ink); color: var(--ivory); border: 1px solid var(--darkline);
  font-weight: 500; font-size: 14px; line-height: 1.3; text-align: center;
  box-shadow: 0 10px 30px rgba(20, 20, 19, .22);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; padding: 0 var(--gutter);
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-scrolled, .nav.is-open { border-bottom-color: var(--line); }
.nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(20, 20, 19, .35); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 24px; align-items: center; }
.nav__left { display: flex; gap: 8px; }
.nav__right { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

.logo { display: block; position: relative; width: 150px; height: 26px; overflow: hidden; }
.logo img { position: absolute; left: -9px; top: -67px; width: 169px; height: 169px; max-width: none; }

.menu-btn { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: var(--radius-btn); background: var(--pampas); cursor: pointer; justify-self: end; }
.menu-btn span { position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.drawer { max-width: var(--maxw); margin: 0 auto; padding: 8px 0 24px; animation: drawer-in .3s var(--ease-out); }
.drawer[hidden] { display: none; }
.drawer__link { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.drawer__link.is-active { color: var(--clay-deep); }
.drawer__link[data-soon] { color: var(--muted); }
.drawer .btn { margin-top: 8px; padding: 13px 20px; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero con video ---------- */
.hero { position: relative; height: clamp(520px, 78vh, 720px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); padding: 0 var(--gutter); }
.media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 19, .28) 0%, rgba(20, 20, 19, .4) 45%, rgba(20, 20, 19, .64) 100%); }
.hero__content { position: relative; z-index: 1; width: 760px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__content .t-lead { max-width: 560px; }

/* ---------- Tarjetas de servicio ---------- */
.cards { padding-top: 40px; }
.card {
  position: relative; background: var(--pampas); border-radius: var(--radius-card); padding: 24px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card__top { display: flex; flex-direction: column; gap: 14px; }
.card__bottom { display: flex; flex-direction: column; gap: 16px; }
/* Toda la tarjeta lleva al servicio: el enlace del botón se estira sobre ella. */
.card .btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.rows__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows__row dd { text-align: right; }

/* ---------- Conoce más ---------- */
.rule-head { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.more__item { display: flex; flex-direction: column; gap: 12px; }
.more__media { overflow: hidden; border-radius: var(--radius-media); background: var(--pampas); aspect-ratio: 7 / 8; }
.more__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.more__item h3 { padding-top: 4px; transition: color .2s var(--ease); }
.more__item h3 + p { margin-top: -6px; }

/* ---------- Medios ---------- */
.media { position: relative; overflow: hidden; background: var(--pampas); border-radius: var(--radius-card); }
.media--wide { height: auto; aspect-ratio: 16 / 9; }
.media--md { height: 420px; border-radius: var(--radius-media); }
.media--story { flex: 1; height: 400px; border-radius: var(--radius-media); }
.caption { margin-top: 14px; }

/* ---------- Listas con línea superior ---------- */
.t-eyebrow + .ruled { margin-top: 20px; }
.ruled { gap: 40px 24px; }
.ruled__item { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); transition: border-color .3s var(--ease); }
.ruled__item:target { border-top-color: var(--clay); }
.ruled__item:target > :first-child { color: var(--clay-deep); }
.stats .ruled__item { padding-top: 20px; }
.stats .t-statement { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }

/* ---------- Paneles beige ---------- */
.panel { background: var(--pampas); border-radius: var(--radius-card); padding: 32px; display: flex; gap: 40px; align-items: flex-start; }
.panel__text { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.panel__media { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.caption-block { display: flex; flex-direction: column; gap: 6px; }
.panel--story { gap: 32px; }
.panel--story .panel__text { width: 260px; }
.panel__caption { width: 220px; flex-shrink: 0; height: 400px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }

/* ---------- Contacto ---------- */
.split--contact { gap: 64px; }
.info__row { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.info__row:last-child { border-bottom: 1px solid var(--line); }

.form-card { background: var(--pampas); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form-card__title { font-weight: 500; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font: 15px/1.4 var(--font-sans); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field ::placeholder { color: #8F8E87; opacity: 1; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 19, .08); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { font-size: 12px; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-state="ok"] { color: var(--success); font-weight: 500; }
.form-status[data-state="error"] { color: var(--danger); font-weight: 500; }
.form-hint { margin-top: -6px; }

.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; transition: color .2s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; font-family: var(--font-sans); font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease-out), color .2s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--clay-deep); }
.faq__item p { padding-bottom: 20px; max-width: 62ch; }
/* Apertura suave donde el navegador lo permite; en el resto se abre de golpe, como antes. */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* ---------- CTA y pie ---------- */
.cta-band { background: var(--dark2); padding: 96px var(--gutter); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta-band .t-h2 { max-width: 18ch; }

.footer { background: var(--ink); padding: 88px var(--gutter) 40px; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__rows li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--darkline); font-size: 13px; color: var(--on-dark-muted); transition: color .2s var(--ease); }
.footer__rows li:last-child a { border-bottom: 1px solid var(--darkline); }
.footer__bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin-top: 96px; }
.footer__bottom > div { display: flex; flex-direction: column; gap: 6px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--darkline); }
.footer__legal a { font-size: 13px; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }

/* Casillas de aceptación (Términos / Privacidad) */
.consent { display: flex; flex-direction: column; gap: 10px; }
.check__row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--body); cursor: pointer; }
.check__row input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.field.check.is-invalid .check__row { color: var(--danger); }

/* Ventana obligatoria al entrar (Términos y Privacidad) */
body.is-gated { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 20, 19, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.gate__card { width: 100%; max-width: 460px; margin: auto; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--ivory); border-radius: var(--radius-card); box-shadow: 0 24px 60px rgba(20, 20, 19, .3); animation: gate-in .45s var(--ease-out); }
.gate__error { color: var(--danger); font-weight: 500; }
.gate__error:empty { display: none; }
.gate .btn:disabled { opacity: .6; }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Páginas legales */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.legal__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal section p, .legal section li { font-size: 15px; line-height: 1.65; color: var(--body); }
.legal section ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal__table th, .legal__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--body); }
.legal__table th { background: var(--pampas); color: var(--ink); font-weight: 600; }
.legal__table tr:last-child td { border-bottom: 0; }

/* ---------- Aparición al hacer scroll (main.js añade .reveal solo a lo que está fuera de pantalla) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Estados al pasar el cursor (solo con ratón o trackpad) ---------- */
@media (hover: hover) {
  .btn--dark:hover { background: #32312E; }
  .btn--light:hover { background: #fff; }
  .btn--soft:hover { background: #D2CFC2; }
  .btn--darkline:hover { background: #4A4945; }
  .btn:hover .arrow, .drawer__link:hover .arrow, .footer__rows a:hover .arrow { transform: translateX(4px); }

  .chip:hover { border-color: var(--line-strong); background: var(--line); }
  .chip--app:hover { background: var(--pampas); }
  .chip[data-soon]:hover { background: transparent; border-color: var(--line); }

  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .card:hover .btn--soft { background: var(--ink); color: var(--ivory); }
  .card:hover .arrow { transform: translateX(4px); }

  .more__item:hover .more__img { transform: scale(1.045); }
  .more__item:hover h3 { color: var(--clay-deep); }

  .faq__item summary:hover { color: var(--clay-deep); }
  .footer__rows li a:hover, .footer__legal a:hover { color: var(--ivory); }
  .footer__rows li a[data-soon]:hover { color: var(--on-dark-muted); }
}

/* =========================================================
   Tablet (810–1199)
   ========================================================= */
@media (max-width: 1199px) {
  .split, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col { gap: 32px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; justify-content: flex-start; }
  .more__media { aspect-ratio: 6 / 5; }
  .panel, .panel--story { flex-direction: column; gap: 24px; }
  .panel__text, .panel--story .panel__text, .panel__caption, .panel__media { width: 100%; }
  .panel__caption { height: auto; }
  .media--story { flex: none; width: 100%; }
}

/* Menú móvil (<1100): los enlaces pasan al panel desplegable */
@media (max-width: 1099px) {
  .nav__inner { grid-template-columns: auto 1fr; }
  .nav__left, .nav__right { display: none; }
  .menu-btn { display: block; }
}

/* =========================================================
   Móvil (<810)
   ========================================================= */
@media (max-width: 809px) {
  :root { --gutter: 20px; --nav-h: 64px; }

  .section { padding-bottom: 67px; }
  .section--first { padding-top: 38px; padding-bottom: 50px; }
  .section--last { padding-bottom: 78px; }

  .logo { width: 130px; height: 23px; }
  .logo img { left: -8px; top: -58px; width: 146px; height: 146px; }
  .logo--footer { width: 150px; height: 26px; }
  .logo--footer img { left: -9px; top: -67px; width: 169px; height: 169px; }

  .hero { height: clamp(460px, 72vh, 560px); }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; gap: 28px; }
  .more { gap: 36px; }
  .more__media { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .media--md, .media--story { height: 220px; }
  .panel { padding: 20px; gap: 20px; }

  .form-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }

  .toast { bottom: 84px; }

  .cta-band { padding: 72px var(--gutter); }
  .footer { padding: 64px var(--gutter) 96px; }
  .footer__top, .footer__bottom { grid-template-columns: 1fr; gap: 28px; }
  .footer__top { gap: 40px; }
  .footer__bottom { margin-top: 56px; }
  .footer__legal { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
