/* ==========================================================
   Adrià González · Consultor de turismo rural
   Paleta y tipografía de marca: Montserrat + Lato
   ========================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* colour roles */
  --bg: #FFFFFF;        /* fondo */
  --surface: #F1F1EF;   /* un paso de tono, piedra clara */
  --ink: #231E1A;       /* texto */
  --muted: #5C4F45;     /* texto secundario */
  --brand: #614021;     /* marrón principal: campos y acción */
  --mid: #93673A;       /* marrón medio */
  --sand: #E2BF99;      /* arena */
  --accent: var(--brand);

  /* type */
  --display: "Montserrat", system-ui, sans-serif;
  --text: "Lato", system-ui, sans-serif;
  --s-mono: clamp(150px, 15vw, 230px);      /* monumento */
  --s-d2: clamp(40px, 5.6vw, 88px);         /* titular de sección */
  --s-h: clamp(24px, 2.2vw, 32px);          /* subtítulo */
  --s-body: clamp(17px, 1.2vw, 18px);
  --s-lead: clamp(19px, 1.55vw, 22px);
  --s-small: 15px;

  /* frame */
  --m: clamp(16px, 2.2vw, 32px);            /* márgenes exteriores */
  --gap-sec: clamp(96px, 13vw, 200px);
  --head: clamp(72px, 6.4vw, 92px);         /* alto de la cabecera */

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--s-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: 12px; }

.display-2 {
  font-family: var(--display); font-weight: 700; font-size: var(--s-d2);
  line-height: .98; letter-spacing: -.035em; text-wrap: balance;
}
.h-sec { font-family: var(--display); font-weight: 700; font-size: var(--s-h); letter-spacing: -.02em; line-height: 1.1; }

/* ---------- buttons ---------- */
.btn {
  --btn-fill: var(--ink); --btn-fill-text: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-family: var(--display); font-weight: 600; font-size: var(--s-body); text-decoration: none;
  transition: transform .35s var(--ease-out), color .3s;
}
/* relleno que sube desde abajo al pasar el cursor */
.btn::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 0; bottom: 0; z-index: -1;
  background: var(--btn-fill); border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(105%); transition: transform .5s var(--ease-out), border-radius .5s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); color: var(--btn-fill-text); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:active { transform: translateY(-1px) scale(.97); transition-duration: .12s; }
@media (hover: none) { .btn:hover { transform: none; } }

/* ==========================================================
   CABECERA
   ========================================================== */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--m); background: var(--bg); color: var(--ink);
  transition: transform .45s var(--ease-out), background-color .35s, color .35s;
}
.site-head__logo { display: grid; flex: none; }
.site-head__logo img { grid-area: 1 / 1; height: clamp(50px, 4.4vw, 64px); width: auto; transition: opacity .35s; }
.site-head .logo-n { opacity: 0; }
.site-head.on-hero { background: transparent; color: #fff; }
.site-head.on-hero .logo-n { opacity: 1; }
.site-head.on-hero .logo-c { opacity: 0; }
.site-head.is-hidden { transform: translateY(-100%); }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.site-nav > ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.site-nav > ul a {
  position: relative; display: block; padding: 10px 0; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 16px; color: inherit;
}
.site-nav > ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--sand);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.site-nav > ul a:hover::after, .site-nav > ul a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.btn--nav { min-height: 46px; padding: 0 20px; }
.lang { position: relative; }
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px 0 10px;
  border: 0; border-radius: 999px; cursor: pointer; color: inherit; background: rgba(127, 110, 95, .14);
  font-family: var(--display); font-weight: 600; font-size: 14px;
  transition: background-color .25s, transform .3s var(--ease-out);
}
.on-hero .lang__btn { background: rgba(255, 255, 255, .16); }
.lang__btn:hover { transform: translateY(-2px); background: rgba(127, 110, 95, .24); }
.on-hero .lang__btn:hover { background: rgba(255, 255, 255, .26); }
.lang__chev { width: 11px; height: 8px; transition: transform .3s var(--ease-out); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 190px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 6px;
  box-shadow: 0 14px 40px rgba(35, 30, 26, .18);
  display: none; transform-origin: top right;
}
.lang.is-open .lang__menu { display: block; animation: dropIn .25s var(--ease-out); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang__menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
  transition: background-color .2s;
}
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--surface); }
.lang__menu a[aria-current="page"] { color: var(--brand); }
.lang__menu a[aria-current="page"]::after {
  content: ""; margin-left: auto; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px);
}
.on-hero .btn--nav { background: var(--sand); color: var(--ink); --btn-fill: #fff; --btn-fill-text: var(--ink); }
.menu-btn { display: none; }

/* ==========================================================
   PORTADA — foto a pantalla completa
   ========================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--head) + 24px) var(--m) clamp(28px, 5vh, 48px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* velo neutro bajo el texto (arriba para la cabecera, abajo para el titular) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(18, 13, 9, .55) 0%, rgba(18, 13, 9, 0) 22%),
    linear-gradient(to top, rgba(18, 13, 9, .78) 0%, rgba(18, 13, 9, .35) 45%, rgba(18, 13, 9, 0) 75%);
}
.hero__content { align-self: end; max-width: 1100px; }
.hero__title {
  font-family: var(--display); font-weight: 700; font-size: clamp(52px, 7.6vw, 124px);
  line-height: .95; letter-spacing: -.04em; max-width: 15ch; text-wrap: balance;
}
.hero__lede { margin-top: clamp(24px, 3vh, 36px); font-size: var(--s-lead); line-height: 1.45; max-width: 46ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.btn--sand { background: var(--sand); color: var(--ink); --btn-fill: #fff; --btn-fill-text: var(--ink); }
.link-arrow { font-family: var(--display); font-weight: 600; font-size: var(--s-body); text-decoration: none; color: var(--brand); }
.link-arrow--light { color: #fff; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

/* Entrada de la portada */
.js .hero__media img { transform: scale(1.12); animation: settle 9s cubic-bezier(.16, 1, .3, 1) forwards; }
.js .hero__title, .js .hero__lede, .js .hero__actions { opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease-out) forwards; }
.js .hero__title { animation-delay: .15s; }
.js .hero__lede { animation-delay: .3s; }
.js .hero__actions { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: scale(1); } }

/* ==========================================================
   INTRO — titular sobre panorama
   ========================================================== */
.intro { margin-top: clamp(64px, 9vw, 140px); }
.intro__head {
  padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
}
.intro__head h2 { grid-column: 1 / 9; }
.intro__captions { grid-column: 9 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: var(--s-small); line-height: 1.45; color: var(--ink); }
.intro__pano { margin-top: 40px; overflow: hidden; aspect-ratio: 21 / 9; }
.intro__pano img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); }

/* ==========================================================
   ÍNDICE — Qué hago
   ========================================================== */
.index { padding: var(--gap-sec) var(--m) 0; }
.index__grid {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; row-gap: 48px;
}
.index__col h3 { font-family: var(--display); font-weight: 700; font-size: var(--s-body); letter-spacing: -.01em; margin-bottom: 18px; }
.index__col h3 a { text-decoration: none; }
.index__col h3 a:hover { color: var(--mid); }
.index__col li {
  font-size: var(--s-body); line-height: 1.3; color: var(--muted); padding: 4px 0; cursor: default;
  transition: color .2s, transform .25s var(--ease-out);
}
.index__col li:hover, .index__col li:focus-visible { color: var(--ink); transform: translateX(4px); }
.index__sum { margin-top: 20px; font-size: var(--s-small); color: var(--ink); max-width: 30ch; }
.index__desc {
  margin-top: clamp(40px, 5vw, 72px); min-height: 3.2em;
  font-family: var(--display); font-weight: 600; font-size: var(--s-h); letter-spacing: -.02em; line-height: 1.2;
  max-width: 34ch; color: var(--brand);
}

/* ==========================================================
   MÉTODO — un verbo cada vez
   ========================================================== */
.verbs { margin-top: var(--gap-sec); padding: 0 var(--m); }
.verbs__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.verbs__head p { max-width: 36ch; font-size: var(--s-lead); line-height: 1.4; color: var(--muted); }
.verbs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.verb {
  position: relative; overflow: hidden; color: #fff; aspect-ratio: 3 / 4; max-height: 68svh;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 2vw, 32px);
}
.verb > img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55) saturate(.9); transition: transform 1.2s var(--ease-out), filter .6s;
}
.verb { isolation: isolate; }
.verb:hover > img { transform: scale(1.05); filter: brightness(.45) saturate(.9); }
.verb__word {
  margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 2.8vw, 46px);
  letter-spacing: -.035em; line-height: 1;
}
.verb__line { font-size: var(--s-body); line-height: 1.45; max-width: 32ch; }

/* ==========================================================
   SERVICIOS — placa cuadrada, texto escaso
   ========================================================== */
.plate {
  margin-top: var(--gap-sec); background: var(--surface);
  padding: clamp(64px, 7vw, 112px) var(--m);
}
.plate__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.plate__media { position: sticky; top: calc(var(--head) + 24px); align-self: start; aspect-ratio: 1; overflow: hidden; }
.plate__media > [data-for] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out);
}
.plate__media > .is-on { opacity: 1; transform: scale(1); }
.plate__media > figure:not(.mock) > img { width: 100%; height: 100%; object-fit: cover; }

/* Nombre del alojamiento sobre cada foto */
.tag {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: .01em;
  pointer-events: none;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.intro__pano { position: relative; }
.tag--hero { right: var(--m); bottom: clamp(28px, 5vh, 48px); background: rgba(255, 255, 255, .16); color: #fff; }
.tag--hero::before { background: var(--sand); }

/* Mockup de portátil (Web e IA) */
.mock {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--surface); padding: 2%;
}
.mock__laptop { width: 100%; }
.mock__screen {
  background: #16120F; padding: 2.2% 2.2% 3%; border-radius: 14px 14px 0 0;
  margin: 0 7%;
}
.mock__screen img { display: block; width: 100%; height: auto; aspect-ratio: 1538 / 962; object-fit: cover; object-position: top; border-radius: 3px; }
.mock__base {
  position: relative; height: 16px; background: #CFCBC6; border-radius: 0 0 14px 14px;
}
.mock__base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%);
  background: #B4AFA9; border-radius: 0 0 8px 8px;
}
.mock figcaption { color: var(--ink); font-size: var(--s-small); text-align: center; }
.mock.is-on .mock__laptop { animation: mockUp .9s var(--ease-out); }
@keyframes mockUp { from { transform: translateY(24px); } to { transform: none; } }
.plate__body { display: flex; flex-direction: column; justify-content: center; }
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 auto clamp(40px, 5vw, 72px);
}
.tabs button {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  min-height: 48px; padding: 0 24px; background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: var(--s-body);
  transition: background-color .3s, color .3s, transform .35s var(--ease-out);
}
.tabs button:hover { transform: translateY(-3px); background: var(--sand); }
.tabs button:active { transform: scale(.96); transition-duration: .12s; }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tabs button[aria-selected="true"]:hover { background: var(--brand); }
.panel h3 { font-family: var(--display); font-weight: 700; font-size: var(--s-h); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; margin-bottom: 32px; }
.panel p { max-width: 52ch; }
.panel p + p { margin-top: 16px; }
.panel__for { color: var(--muted); }
.panel h4 {
  font-family: var(--display); font-weight: 700; font-size: var(--s-body); color: var(--brand);
  letter-spacing: -.01em; margin: 28px 0 12px;
}
.panel__list { display: grid; gap: 8px; max-width: 56ch; }
.panel__list li { position: relative; padding-left: 26px; line-height: 1.5; }
.panel__list li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.panel__list + p { margin-top: 24px; }
.panel.is-entering { animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   EASYRURAL
   ========================================================== */
.er {
  margin-top: var(--gap-sec); background: var(--brand); color: #fff;
  padding: clamp(80px, 10vw, 160px) var(--m);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start;
}
.er__intro { grid-column: 1 / 6; position: sticky; top: calc(var(--head) + 32px); }
.er__intro h2 { margin-bottom: 36px; }
.er__intro p { max-width: 44ch; }
.er__intro p + p { margin-top: 18px; }
.er__honest { color: var(--sand); }
.er__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.er__list { grid-column: 7 / 13; display: grid; gap: clamp(36px, 4vw, 56px); padding-top: 12px; }
.er__list li { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; transition: transform .35s var(--ease-out); }
.er__list li:hover { transform: translateX(6px); }
.ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .1); color: var(--sand);
  transition: transform .45s var(--ease-out), background-color .3s, color .3s;
}
.ico svg { width: 26px; height: 26px; }
.er__list li:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--sand); color: var(--brand); }
.er__list h3 { font-family: var(--display); font-weight: 700; font-size: var(--s-h); line-height: 1.1; letter-spacing: -.025em; color: var(--sand); margin-bottom: 10px; }
.er__list p { max-width: 48ch; }

/* ==========================================================
   QUIÉN SOY
   ========================================================== */
.about {
  padding: var(--gap-sec) var(--m) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
}
.about__media { grid-column: 1 / 6; aspect-ratio: 4 / 5; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.4s var(--ease-out); }
.about__media:hover img { transform: scale(1.03); }
.about__body { grid-column: 7 / 13; }
.about__body h2 { margin-bottom: 36px; }
.about__body > p { max-width: 54ch; }
.about__body > p + p { margin-top: 18px; }
.about__body a { color: var(--brand); text-underline-offset: 3px; }
.about__rules { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.about__rules li { background: var(--surface); padding: 22px 22px 24px; font-size: var(--s-body); line-height: 1.45; }
.about__rules strong { display: block; font-family: var(--display); font-size: var(--s-body); margin-bottom: 6px; color: var(--brand); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { padding: var(--gap-sec) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.faq__title { grid-column: 1 / -1; font-family: var(--display); font-weight: 700; font-size: var(--s-d2); letter-spacing: -.035em; line-height: 1; }
.faq__list { grid-column: 1 / 9; margin-top: 64px; display: grid; gap: 12px; }
.faq details { padding: 18px 24px; margin: 0 calc(-1 * min(24px, var(--m))); transition: background-color .3s; }
.faq details[open] { background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--text); font-size: var(--s-lead); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--brand); }
.faq details p { margin-top: 16px; max-width: 58ch; font-size: var(--s-body); }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact {
  margin-top: var(--gap-sec); background: var(--surface);
  padding: clamp(72px, 9vw, 140px) var(--m);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start;
}
.contact__info { grid-column: 1 / 6; }
.contact__lede { margin-top: 28px; font-size: var(--s-lead); line-height: 1.45; max-width: 36ch; }
.contact__ways { margin-top: 44px; display: grid; gap: 28px; }
.contact__ways li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.contact__ways .ico { background: #fff; color: var(--brand); width: 52px; height: 52px; }
.contact__ways li:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.contact__k { font-family: var(--display); font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.contact__ways a { color: var(--ink); text-underline-offset: 3px; font-weight: 700; }
.contact__ways a:hover { color: var(--brand); }

.contact__form {
  grid-column: 7 / 13; background: #fff; border-radius: 24px;
  padding: clamp(24px, 3vw, 48px); display: grid; gap: 22px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.f-field { display: grid; gap: 8px; min-width: 0; }
.f-field label, .f-choice legend { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.f-field label span { font-weight: 400; color: var(--muted); }
.f-field input, .f-field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 2px solid transparent; border-radius: 14px; padding: 13px 16px;
  transition: border-color .25s, background-color .25s;
}
.f-field textarea { resize: vertical; min-height: 130px; }
.f-field input:hover, .f-field textarea:hover { background: #ECEBE8; }
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.f-choice { border: 0; padding: 0; margin: 0; }
.f-choice legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); font-family: var(--display); font-weight: 600; font-size: 15px;
  transition: background-color .25s, color .25s, transform .3s var(--ease-out);
}
.chips label:hover span { transform: translateY(-2px); background: var(--sand); }
.chips input:checked + span { background: var(--brand); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--mid); outline-offset: 2px; }
.contact__form .btn { justify-self: start; }
.f-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.f-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.f-consent a { color: var(--brand); text-underline-offset: 3px; }
.f-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.f-status { font-size: 15px; line-height: 1.4; max-width: 40ch; }
.f-status:empty { display: none; }
.f-status.is-ok { color: #2F6B3A; font-weight: 700; }
.f-status.is-error { color: #A2381E; }
.f-status a { color: inherit; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; margin-left: 10px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--brand); color: var(--sand);
  display: grid; grid-template-rows: auto auto auto; padding: 40px var(--m) 24px;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; font-size: var(--s-body); line-height: 1.6; }
.footer .f-head { color: var(--bg); font-family: var(--display); font-weight: 600; margin-bottom: 6px; }
.footer address { font-style: normal; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.footer__mark { margin-top: clamp(96px, 14vw, 220px); }
.footer__mark img { display: block; width: min(100%, 1040px); height: auto; transition: transform .5s var(--ease-out); }
.footer__mark a:hover img { transform: translateY(-4px); }
.footer__legal { margin-top: 20px; font-size: var(--s-small); display: grid; gap: 8px; }
.footer__legal .credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================
   ENTRADAS (solo con JS; sin JS todo es visible)
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   TABLET
   ========================================================== */
@media (max-width: 1024px) {
  .verbs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verb { max-height: none; aspect-ratio: 4 / 3; }
  .site-nav > ul { gap: 18px; }
  .site-nav > ul li:nth-child(n+4) { display: none; }
  .intro__head h2 { grid-column: 1 / -1; }
  .intro__captions { grid-column: 1 / 10; margin-top: 28px; }
  .index__grid { grid-template-columns: 1fr 1fr; }
  .er__intro, .er__list { grid-column: 1 / -1; }
  .contact__info, .contact__form { grid-column: 1 / -1; }
  .er__intro { position: static; }
  .about__media { grid-column: 1 / 6; }
  .about__body { grid-column: 6 / 13; }
  .about__rules { grid-template-columns: 1fr; }
  .faq__list { grid-column: 1 / -1; }
}

/* ==========================================================
   MÓVIL
   ========================================================== */
@media (max-width: 720px) {
  :root { --s-mono: 34vw; --sq: 46vw; --s-d2: clamp(34px, 9.6vw, 52px); }
  .site-head__logo img { height: 44px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
    border: 0; background: none; color: inherit; cursor: pointer;
    font-family: var(--display); font-weight: 600; font-size: 16px; position: relative; z-index: 2;
  }
  .menu-btn__icon { display: grid; gap: 6px; width: 22px; }
  .menu-btn__icon i { display: block; height: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
  .menu-open .menu-btn__icon i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn__icon i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 40px;
    padding: var(--head) var(--m) 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
  .site-nav > ul { flex-direction: column; gap: 4px; }
  .site-nav > ul li:nth-child(n+4) { display: block; }
  .site-nav > ul a { font-size: 32px; letter-spacing: -.02em; padding: 8px 0; }
  .site-nav > ul a::after { display: none; }
  .btn--nav { min-height: 56px; }
  /* en el menú del móvil las tres banderas se ven siempre */
  .lang__btn { display: none; }
  .lang__menu, .lang.is-open .lang__menu { position: static; box-shadow: none; background: var(--surface); display: flex; gap: 4px; min-width: 0; animation: none; }
  .lang__menu li { flex: 1; }
  .lang__menu a { justify-content: center; font-size: 15px; padding: 12px 8px; }
  .lang__menu a[aria-current="page"] { background: #fff; }
  .lang__menu a[aria-current="page"]::after { display: none; }
  .site-head.menu-open { background: var(--bg); color: var(--ink); }
  .menu-open .logo-n { opacity: 0; }
  .menu-open .logo-c { opacity: 1; }
  .menu-open .site-nav { color: var(--ink); }
  .menu-open .site-head__logo { position: relative; z-index: 2; }

  .hero__title { font-size: 10.4vw; }
  .hero__lede { font-size: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__media img { object-position: 42% 60%; }

  .intro__head { display: block; }
  .intro__captions { grid-template-columns: 1fr; gap: 12px; font-size: var(--s-small); }
  .intro__pano { aspect-ratio: 4 / 5; }

  .index__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .index__col li { font-size: 18px; line-height: 1.4; }
  .index__desc { display: none; }

  .verbs__grid { grid-template-columns: 1fr; gap: 10px; }
  .verb { aspect-ratio: auto; min-height: 210px; padding: 20px; }
  .verb__word { font-size: 30px; }

  .plate__inner { grid-template-columns: 1fr; }
  .plate__media { position: relative; top: auto; }
  .tabs { gap: 8px; }
  .tabs button { padding: 0 18px; min-height: 44px; }


  .about { display: block; }
  .about__media { aspect-ratio: 4 / 5; }
  .about__body { margin-top: 40px; }

  .faq { display: block; }
  .faq__list { margin-top: 40px; }
  .faq details { margin: 0 calc(var(--m) * -1); padding: 18px var(--m); }

  .f-row { grid-template-columns: 1fr; }
  .contact__form { border-radius: 18px; }
  .contact__form .btn { justify-self: stretch; }
  .er__list li { column-gap: 16px; }
  .ico { width: 48px; height: 48px; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :last-child { grid-column: 1 / -1; }
}

/* ==========================================================
   MOVIMIENTO REDUCIDO
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__media img, .js .hero__title, .js .hero__lede, .js .hero__actions { opacity: 1; transform: none; animation: none; }
  .site-head, .site-head__logo img { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .intro__pano img { transform: none; }
  .plate__media > [data-for] { transition: opacity .2s; transform: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================
   PÁGINAS LEGALES
   ========================================================== */
.legal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--m); background: var(--surface);
}
.legal-head img { height: clamp(44px, 4vw, 56px); width: auto; }
.legal-langs { display: flex; gap: 4px; }
.legal-langs a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none;
}
.legal-langs a:hover { background: #fff; }
.legal-langs a[aria-current="page"] { background: var(--brand); color: #fff; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--m) clamp(72px, 9vw, 120px); }
.legal__back { margin-top: 56px; }
.legal__back a { font-family: var(--display); font-weight: 600; color: var(--brand); text-decoration: none; }
.legal__back a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal h1 { margin-top: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; }
.legal__date { margin-top: 14px; color: var(--muted); font-size: var(--s-small); }
.legal h2 { margin: 44px 0 12px; font-family: var(--display); font-weight: 700; font-size: var(--s-lead); letter-spacing: -.015em; color: var(--brand); }
.legal p + p { margin-top: 14px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.legal a { color: var(--brand); text-underline-offset: 3px; }
.legal-foot { padding: 28px var(--m); background: var(--brand); color: var(--sand); font-size: var(--s-small); }
.legal-foot a { color: inherit; text-underline-offset: 3px; }
.legal-foot a[aria-current="page"] { color: #fff; }
