/* Base común: accesibilidad, diálogos, cookies y mapa. Cada propuesta define los tokens
   --ground, --ground-2, --ink, --ink-2, --action, --action-ink, --dlg-radius y --btn-radius. */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--action); color: var(--action-ink); text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus, var(--action)); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* Diálogos */
.dlg { width: min(720px, calc(100vw - 24px)); max-height: min(88svh, 900px); padding: 0; border: 0; border-radius: var(--dlg-radius, 0); background: var(--ground); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); } /* taste-skill-ignore: diálogo, flota de verdad */
.dlg::backdrop, .index::backdrop { background: rgba(18, 20, 16, .62); }
.dlg-in { display: flex; flex-direction: column; max-height: inherit; }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 28px 12px; }
.dlg-head h2 { margin: 0; }
.dlg-x { min-height: 44px; padding: 0 16px; border: 0; background: var(--ground-2); color: var(--ink); border-radius: var(--btn-radius, 0); }
.dlg-body { padding: 4px 28px 28px; overflow: auto; }
.dlg-body h3 { margin: 1.6em 0 .4em; }
.dlg-note { color: var(--ink-2); font-size: .875rem; }
.dlg-meta { display: grid; gap: 8px; margin: 0 0 8px; padding: 16px; background: var(--ground-2); }
.dlg-meta div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; }
.dlg-meta dt { color: var(--ink-2); }
.dlg-meta dd { margin: 0; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dlg-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.dlg-pdf { width: 100%; height: 60svh; border: 0; background: var(--ground-2); }

/* Cookies */
.ck { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 460px; padding: 22px 24px; background: var(--ground); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); /* taste-skill-ignore: banner flotante */ border-radius: var(--dlg-radius, 0); }
.ck h2 { margin: 0 0 6px; font-size: 1.25rem; }
.ck p { margin: 0 0 14px; font-size: .9375rem; }
.ck-cfg { display: grid; gap: 10px; margin: 0 0 14px; font-size: .9375rem; }
.ck-cfg label { display: flex; gap: 10px; align-items: center; min-height: 32px; }
.ck-cfg input { width: 20px; height: 20px; accent-color: var(--action); }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ck .btn { min-height: 44px; }

/* Mapa diferido */
.map { display: grid; place-content: center; gap: 14px; justify-items: start; min-height: 320px; padding: 32px; background: var(--ground-2); }
.map p { max-width: 46ch; margin: 0; }
.map.is-loaded { padding: 0; display: block; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* Entradas al hacer scroll (solo con JS y sin preferencia de menos movimiento) */
.rise-on [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rise-on [data-rise]:nth-child(2) { transition-delay: .08s; }
.rise-on [data-rise]:nth-child(3) { transition-delay: .16s; }
.rise-on [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Revisión Web Interface Guidelines */
:root { color-scheme: light; }
button, a, [role=tab], [role=radio] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
dialog { overscroll-behavior: contain; }
.ck { bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); }
.on-dark :focus-visible, .eat :focus-visible, .ember :focus-visible, .adapt :focus-visible, .foot :focus-visible, .index :focus-visible,
.warm :focus-visible, .ft :focus-visible, .s-dark :focus-visible { outline-color: #F3EBDF; }

/* PROPUESTA A · Editorial — «Lugar de paso»
   Newsreader (OFL) en una sola familia, con tamaños ópticos. Papel, tinta y el verde bosque de la casa. Esquinas rectas. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }

:root {
  --ground: #F5F1E8;      /* papel */
  --ground-2: #EAE4D7;    /* papel en sombra */
  --ink: #1B1E19;
  --ink-2: #4A4F45;
  --forest: #22372B;      /* campo oscuro: restaurante, brasa, pie */
  --forest-2: #2E4A3A;
  --on-forest: #F1ECE2;
  --on-forest-2: #C9D1C6;
  --action: #2F4A3A;
  --action-ink: #F7F3EA;
  --focus: #8A4B1F;
  --m: clamp(16px, 4.2vw, 64px);
  --hh: 68px;
  --s-small: .875rem;
  --s-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --s-lead: clamp(1.125rem, 1.02rem + .45vw, 1.4375rem);
  --s-head: clamp(1.875rem, 1.1rem + 2.6vw, 3.5rem);
  --s-display: clamp(2.6rem, .9rem + 5.6vw, 6.75rem);
  --gap: clamp(96px, 14vw, 220px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif; font-optical-sizing: auto; font-size: var(--s-body); line-height: 1.58; text-rendering: optimizeLegibility; font-feature-settings: 'kern', 'liga'; }
h1, h2, h3, h4 { font-weight: 360; letter-spacing: -.018em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: var(--s-head); }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); line-height: 1.12; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--s-lead); line-height: 1.38; font-weight: 340; max-width: 34ch; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--ink-2); font-style: italic; }

/* Botones: rectángulos planos, una sola forma en toda la web */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; background: var(--action); color: var(--action-ink); font-size: 1.0625rem; font-weight: 450; text-decoration: none; letter-spacing: .005em; transition: background .2s, transform .15s; }
.btn:hover { background: #1E3127; }
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--ground-2); color: var(--ink); }
.btn-line:hover { background: #DDD5C5; }
.btn-light { background: var(--on-forest); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-line-light { background: var(--forest-2); color: var(--on-forest); }
.btn-line-light:hover { background: #3A5949; }
.btn-s { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.more { font-size: 1.0625rem; text-decoration: underline; text-decoration-color: rgba(27, 30, 25, .35); padding: 10px 0; display: inline-block; }
.more:hover { text-decoration-color: currentColor; }

/* Barra superior: marca, dos enlaces, reservar e índice */
.top { position: sticky; top: 0; z-index: 30; height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--m); background: var(--ground); }
.mark { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.mark-a { font-size: 1.375rem; letter-spacing: -.01em; font-weight: 420; }
.mark-b { font-size: .875rem; font-style: italic; color: var(--ink-2); }
.top-r { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.top-link { text-decoration: none; padding: 10px 0; font-size: 1.0625rem; }
.top-link[aria-current] { text-decoration: underline; }
.top-index { min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 1.0625rem; text-decoration: underline; text-underline-offset: .2em; }

/* Índice a pantalla completa */
.index { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0 var(--m) 32px; border: 0; background: var(--forest); color: var(--on-forest); overflow: auto; }
.index[open] { display: flex; flex-direction: column; }
.index-top { height: var(--hh); display: flex; align-items: center; justify-content: space-between; }
.index .dlg-x { background: var(--forest-2); color: var(--on-forest); }
.index-list { list-style: none; margin: 4vh 0 0; padding: 0; display: grid; gap: clamp(6px, 1.2vh, 14px); }
.index-list a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: baseline; gap: 4px 32px; text-decoration: none; padding: 4px 0; }
.il-n { font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); line-height: 1; letter-spacing: -.02em; font-weight: 330; }
.il-d { color: var(--on-forest-2); font-size: var(--s-body); font-style: italic; }
.index-list a:hover .il-n, .index-list a[aria-current] .il-n { font-style: italic; }
.index-foot { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--on-forest-2); }
.index-foot p { margin: 0; }

.langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.langs a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.langs a[aria-current] { text-decoration: underline; }

/* PORTADA: la ventana que se abre hasta los bordes */
.hero { position: relative; }
.hero-stage { position: relative; height: calc(100svh - var(--hh)); min-height: 560px; overflow: hidden; }
.hero-pic, .hero-pic picture, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 62% 55%; }
/* Sin JS o con menos movimiento: foto abierta, texto sobre un velo neutro solo en su zona */
.hero-pic::after { content: ''; position: absolute; inset: 0; /* taste-skill-ignore: velo neutro solo bajo el texto (sin JS) */ background: linear-gradient(to top, rgba(12, 14, 11, .72), rgba(12, 14, 11, 0) 62%); }
.hero-txt { position: absolute; inset: 0; z-index: 2; display: grid; align-content: end; padding: var(--m); color: #F6F2EA; pointer-events: none; }
.hero-txt a, .hero-txt button { pointer-events: auto; }
.hero-txt h1 { display: grid; font-weight: 320; }
.h1-a { font-size: min(var(--s-display), 7.4vw); line-height: .9; letter-spacing: -.03em; }
.h1-b { font-size: clamp(1.4rem, .95rem + 1.6vw, 2.4rem); font-style: italic; letter-spacing: -.01em; margin-top: .2em; padding-left: .08em; }
.hero-where { margin: 18px 0 0; font-size: var(--s-body); }
.hero-idea { font-size: var(--s-lead); line-height: 1.35; max-width: 26ch; margin: 22px 0 20px; }
.hero-cap { position: absolute; z-index: 2; right: var(--m); bottom: 18px; margin: 0; font-size: var(--s-small); color: #F6F2EA; font-style: italic; opacity: 0; }
.hero .btn-line { background: rgba(245, 241, 232, .92); }

/* Con movimiento: la casa se ve primero por una ventana, que se abre al bajar */
.hero-anim .hero { height: calc(200svh - var(--hh)); }
.hero-anim .hero-stage { position: sticky; top: var(--hh); }
.hero-anim .hero-pic { --p: 0; clip-path: inset(calc((1 - var(--p)) * 9svh) calc((1 - var(--p)) * var(--m)) calc((1 - var(--p)) * 9svh) calc((1 - var(--p)) * 53vw)); will-change: clip-path; }
.hero-anim .hero-pic::after { opacity: 0; }
.hero-anim .hero-txt { color: var(--ink); grid-template-columns: minmax(0, 46vw); align-content: center; padding-top: 9svh; padding-bottom: 9svh; } /* texto a media altura de la ventana de la foto */
.hero-anim .hero .btn-line { background: var(--ground-2); }
.hero-anim .hero-cap { opacity: var(--p, 0); }

@media (max-width: 760px) {
  .hero-txt { align-content: end; }
  .hero-anim .hero-txt { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-content: stretch; padding-top: 18px; padding-bottom: 20px; }
  .hero-anim .ht-b { grid-row: 3; }
  .hero-anim .hero-pic { clip-path: inset(calc((1 - var(--p)) * 33%) calc((1 - var(--p)) * 5vw) calc((1 - var(--p)) * 31%) calc((1 - var(--p)) * 5vw)); }
  .h1-a { font-size: clamp(2.5rem, 12.5vw, 3.6rem); }
  .hero-pic img { object-position: 87% 55%; } /* móvil: el rótulo «El Recó de l’Avi» centrado */
  .hero-idea { margin: 0 0 14px; font-size: 1.125rem; }
  .hero-where { margin-top: 8px; font-size: 1rem; }
  .hero-txt .row .btn { flex: 1 1 auto; }
}

/* Capítulos: texto estrecho y fotografías a tamaños desiguales sobre una retícula de 12 columnas */
.chapter, .page-open, .sec-head, .season-sec, .kitchen, .two, .disc, .common, .choose, .welcome, .years, .owners, .close, .map-sec { padding-left: var(--m); padding-right: var(--m); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: 48px; padding-top: var(--gap); align-items: start; }
.ch-text h2 { margin-bottom: 28px; }
.ch-text .lead { margin-bottom: 24px; }
.ch-stay .ch-text { grid-column: 1 / span 5; align-self: center; }
.ch-stay .ch-big { grid-column: 7 / -1; grid-row: 1 / span 2; }
.ch-stay .ch-big img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ch-stay .ch-small { grid-column: 3 / span 3; grid-row: 2; max-width: 330px; }
.ch-small img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }

.eat { margin-top: var(--gap); background: var(--forest); color: var(--on-forest); }
.eat-pic img { width: 100%; height: min(86svh, 62vw); object-fit: cover; object-position: 50% 55%; }
.eat-in { padding: clamp(48px, 7vw, 112px) var(--m) clamp(72px, 9vw, 140px); }
.eat-in h1, .eat-in h2 { display: grid; gap: 14px; font-size: var(--s-head); max-width: 20ch; }
.eat-name { font-size: var(--s-display); line-height: .9; letter-spacing: -.03em; font-style: italic; font-weight: 300; }
.eat-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); margin-top: 48px; }
.eat-cols > .lead { grid-column: 1 / span 6; }
.eat-cols > div { grid-column: 8 / -1; }
/* Foto de la cocina encima del texto de la derecha: mismo ancho que el texto y su proporción real (3:2), sin recortes */
.eat-kitchen { margin: 0 0 28px; }
.eat-kitchen img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }
/* Las dos columnas quedan equilibradas: el párrafo de la izquierda, centrado en vertical frente a foto + texto de la derecha */
/* Portada · restaurante: el título «Una mesa con identidad propia» baja a la columna izquierda,
   con su parte superior a la altura de la foto de la cocina; el párrafo va debajo */
/* Columna izquierda: nombre, título y párrafo. Columna derecha (foto, texto y botones): centrada en vertical frente a ella */
#inicio-restaurante .eat-name { display: block; margin: 0 0 14px; max-width: none; color: var(--on-forest); }
#inicio-restaurante .eat-cols { align-items: center; margin-top: 0; }
#inicio-restaurante .eat-cols > .eat-left { grid-column: 1 / span 6; }
#inicio-restaurante .eat-left h2 { display: block; margin: 0 0 clamp(28px, 3vw, 44px); }
#inicio-restaurante .eat-left .lead { margin: 0; }
@media (max-width: 760px) {
  #inicio-restaurante .eat-left h2 { margin-bottom: 24px; }
  #inicio-restaurante .eat-left { margin-bottom: 28px; }
}
#inicio-restaurante .eat-cols > div > .row { margin-bottom: 0; }
.eat p { color: var(--on-forest); }
.eat a:not(.btn) { color: var(--on-forest); }
.eat-open { margin-top: 0; }

.season-sec { padding-top: var(--gap); }
.sec-head { padding-left: 0; padding-right: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); margin-bottom: 48px; }
.sec-head h2 { grid-column: 1 / span 7; }
.sec-head p { grid-column: 8 / -1; align-self: end; margin: 0; }
.seasons-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 32px; }
.seasons-tabs button { min-height: 48px; padding: 0; border: 0; background: none; font-size: var(--s-lead); color: var(--ink-2); }
.seasons-tabs button[aria-selected='true'] { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px; }
.seasons-tabs button:hover { color: var(--ink); }
.season { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); align-items: end; margin-bottom: 64px; }
.season-img { grid-column: 1 / span 5; }
.season-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.season-img.piscina { grid-column: 2 / span 3; }
.season-img.piscina img { aspect-ratio: 2 / 3; }
.season-txt { grid-column: 7 / span 5; }
.season-when { font-style: italic; color: var(--ink-2); margin-bottom: 8px; }
.season-txt h3 { font-size: var(--s-head); margin-bottom: 20px; }
.js .seasons[data-ready] .season { margin-bottom: 0; }
.js .seasons[data-ready] .season[hidden] { display: none; }

.ch-hist .ch-old { grid-column: 1 / span 4; }
.ch-hist .ch-old img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.ch-hist .ch-text { grid-column: 6 / span 6; align-self: center; }
.ch-hist h2 { font-size: clamp(1.75rem, 1rem + 2.1vw, 3rem); }
.ch-hist .ch-owners { grid-column: 9 / span 3; margin-top: -24px; }
.ch-owners img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.close { padding-top: var(--gap); padding-bottom: var(--gap); }
.close-in { max-width: 980px; }
.close h2 { font-size: var(--s-display); line-height: .94; letter-spacing: -.03em; font-weight: 320; margin-bottom: 28px; max-width: 13ch; }
.close .lead { margin-bottom: 32px; }

/* Páginas interiores */
.page-open { padding-top: clamp(56px, 10vw, 150px); padding-bottom: clamp(48px, 7vw, 100px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.page-open h1 { grid-column: 1 / -1; font-size: clamp(2.4rem, 1rem + 4.4vw, 5.6rem); line-height: .95; letter-spacing: -.03em; font-weight: 320; max-width: 15ch; margin-bottom: clamp(32px, 4vw, 56px); }
.page-open > .lead { grid-column: 1 / span 6; }
.page-open .cols2 { grid-column: 8 / -1; }
.page-open .counts { grid-column: 1 / -1; }
.counts { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px clamp(28px, 5vw, 80px); }
.counts li { display: grid; }
.cn { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem); line-height: .9; font-weight: 300; letter-spacing: -.03em; }
.counts li:first-child .cn { font-style: italic; }

.bleed img { width: 100%; height: min(88svh, 64vw); object-fit: cover; }
.bleed-low { padding: 0 var(--m); }
.bleed-low img { width: min(100%, 860px); height: auto; aspect-ratio: 666 / 425; margin-left: auto; }
.strip { margin-top: var(--gap); }
.strip img { width: 100%; aspect-ratio: 2000 / 440; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.strip figcaption { padding: 0 var(--m); }

.room { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); padding: var(--gap) var(--m) 0; align-items: start; }
.room-fig { grid-column: 1 / span 6; position: sticky; top: calc(var(--hh) + 24px); }
.room-fig img { width: 100%; height: calc(100svh - var(--hh) - 48px); max-height: 900px; object-fit: cover; }
.room-pic .room-txt { grid-column: 8 / -1; padding-top: 12vh; }
.room-num { grid-column: 1 / span 5; margin: 0; font-size: clamp(2.6rem, 1rem + 5vw, 6.4rem); line-height: .95; letter-spacing: -.03em; font-weight: 300; font-style: italic; color: var(--ink-2); max-width: 9ch; }
.room:not(.room-pic) .room-txt { grid-column: 7 / -1; }
.room-txt h2 { margin-bottom: 10px; }
.room-meta { color: var(--ink-2); font-style: italic; margin-bottom: 28px; }
.facts { display: grid; gap: 18px; margin: 32px 0; }
.facts div { display: grid; grid-template-columns: minmax(110px, 32%) 1fr; gap: 16px; }
.facts dt { color: var(--ink-2); font-style: italic; }
.facts dd { margin: 0; }

.adapt { margin-top: var(--gap); background: var(--forest); color: var(--on-forest); padding: clamp(64px, 9vw, 140px) var(--m); }
.adapt-in { max-width: 900px; }
.adapt .room-meta, .adapt .facts dt { color: var(--on-forest-2); }
.adapt h2 { font-size: var(--s-display); line-height: .94; letter-spacing: -.03em; font-weight: 320; }

.choose, .common, .welcome { padding-top: var(--gap); }
.choose-list { margin: 0; display: grid; }
.choose-list div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); padding: 22px 0; }
.choose-list div:nth-child(odd) { background: var(--ground-2); margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); }
.choose-list dt { grid-column: 1 / span 5; font-size: var(--s-lead); line-height: 1.2; }
.choose-list dd { grid-column: 7 / -1; margin: 0; }
.choose .row { margin-top: 32px; }

.ch-out .ch-small { grid-column: 2 / span 3; }
.ch-out .ch-text { grid-column: 6 / span 6; align-self: end; }

.ch-house .ch-text { grid-column: 1 / span 7; }
.ledger { grid-column: 9 / -1; margin: 0; display: grid; gap: 32px; align-self: end; }
.ledger dt { font-style: italic; color: var(--ink-2); }
.ledger dd { margin: 4px 0 0; font-size: var(--s-lead); line-height: 1.2; }

.breakfast { margin-top: var(--gap); padding: clamp(64px, 9vw, 140px) var(--m); background: var(--ground-2); }
.breakfast .ch-text { max-width: 760px; margin-left: calc(100% / 12 * 3); }
.ch-both .ch-big { grid-column: 1 / span 6; }
.ch-both .ch-big img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ch-both .ch-text { grid-column: 8 / -1; align-self: center; }

.kitchen { padding-top: var(--gap); }
.kitchen-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); align-items: start; }
.menu-list { grid-column: 1 / span 6; margin: 0; display: grid; gap: 28px; }
.menu-list dt { font-size: var(--s-lead); line-height: 1.2; }
.menu-list dd { margin: 6px 0 0; color: var(--ink-2); }
.kitchen-fig { grid-column: 8 / -1; }
.kitchen-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ch-prod .ch-text { grid-column: 1 / span 6; }
.axes { grid-column: 8 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.12; font-style: italic; font-weight: 320; }
.ember { margin-top: var(--gap); background: var(--forest); color: var(--on-forest); padding: clamp(72px, 10vw, 160px) var(--m); }
.ember-in { max-width: 900px; margin-left: calc(100% / 12 * 2); }
.ember h2 { margin-bottom: 32px; }
.ember .lead { max-width: 38ch; }
.ember p { color: var(--on-forest); }
.two { padding-top: var(--gap); }
.two > h2 { max-width: 18ch; margin-bottom: 56px; }
.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.two-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-grid > div { background: var(--ground-2); padding: clamp(24px, 3vw, 44px); }
.two-grid h3 { margin-bottom: 16px; }
.two-grid .btn-line { background: var(--ground); }
.two-grid .btn-line:hover { background: #fff; }

.disc { padding-top: var(--gap); }
.disc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: 72px; }
.disc-list li { grid-column: span 5; }
.disc-list li:nth-child(even) { grid-column: 8 / span 5; margin-top: 120px; }
.disc-list h3 { font-size: var(--s-head); margin-bottom: 10px; }
.disc-meta { font-style: italic; color: var(--ink-2); }
.disc-when { font-size: var(--s-small); }

.years { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); padding-top: 24px; align-items: center; }
.years-fig { grid-column: 1 / span 5; }
.years-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.years-list { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.yr { display: block; font-size: clamp(2.8rem, 1.4rem + 3.8vw, 5.4rem); line-height: .9; letter-spacing: -.03em; font-weight: 300; }
.years-list li:last-child .yr { font-style: italic; }
.ember-long .lead { max-width: 40ch; }
.welcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 320; }
.welcome-list li:nth-child(even) { padding-left: calc(100% / 12 * 2); font-style: italic; }
.owners { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); padding-top: var(--gap); align-items: start; }
.owners-fig { grid-column: 1 / span 5; position: sticky; top: calc(var(--hh) + 24px); }
.owners-fig img { width: 100%; aspect-ratio: 982 / 900; object-fit: cover; }
.owners-txt { grid-column: 7 / -1; }
.owners-txt h2 { margin-bottom: 28px; }
.quote { margin: 48px 0 0; }
.quote p { font-size: var(--s-lead); line-height: 1.32; font-style: italic; max-width: 30ch; }
.quote footer { color: var(--ink-2); }

.visit { position: relative; margin-top: 24px; }
.visit-pic img { width: 100%; height: min(92svh, 66vw); min-height: 520px; object-fit: cover; }
.visit-card { position: relative; z-index: 1; width: min(460px, calc(100% - 2 * var(--m))); margin: -140px var(--m) 0 auto; padding: 32px; background: var(--ground); }
.visit-card h2 { font-size: 1.5rem; line-height: 1.15; margin-bottom: 18px; }
.visit-card address { font-style: normal; margin-bottom: 16px; }
.vc-k { color: var(--ink-2); }
.map-sec { padding-top: 48px; }
.ch-prep { padding-bottom: var(--gap); }
.ch-prep .ch-text { grid-column: 1 / span 6; }
.prep { grid-column: 8 / -1; }
.prep h3 { margin-bottom: 20px; }
.prep h4 { font-size: 1.125rem; font-style: italic; font-weight: 400; margin: 20px 0 6px; }
.prep ul { margin: 0; padding-left: 1.1em; }

/* Pie: la información práctica, una vez; el nombre vuelve a todo el ancho */
.foot { background: var(--forest); color: var(--on-forest); padding: clamp(64px, 8vw, 120px) var(--m) 16px; overflow: hidden; }
.foot a { color: var(--on-forest); }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-h { font-size: 1.0625rem; font-style: italic; font-weight: 400; color: var(--on-forest-2); margin-bottom: 12px; letter-spacing: 0; }
.foot p { color: var(--on-forest); font-size: 1.0625rem; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.foot-nav a:hover, .foot-nav a[aria-current] { text-decoration: underline; }
.legal { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.legal button { border: 0; background: none; padding: 8px 0; color: var(--on-forest-2); text-decoration: underline; text-underline-offset: .2em; text-align: left; min-height: 40px; }
.foot .foot-name { margin: clamp(48px, 6vw, 96px) 0 0; font-size: clamp(3.4rem, 18.4vw, 21rem); line-height: .8; letter-spacing: -.045em; font-weight: 300; white-space: nowrap; color: var(--on-forest); max-width: none; }

.dlg { font-family: inherit; }
.dlg-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.4rem); }
.ck { font-size: 1rem; }

/* Tablet */
@media (max-width: 1080px) {
  .ch-stay .ch-text, .ch-hist .ch-text, .ch-house .ch-text { grid-column: 1 / span 7; }
  .ch-stay .ch-big { grid-column: 8 / -1; }
  .ch-stay .ch-small { grid-column: 2 / span 4; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-grid.three { grid-template-columns: 1fr; }
}

/* Móvil: composición propia, anchos alternos para mantener el ritmo desigual */
@media (max-width: 760px) {
  :root { --hh: 60px; --gap: 88px; }
  .hide-s { display: none; }
  .mark-a { font-size: 1.2rem; }
  .chapter, .page-open, .sec-head, .season, .eat-cols, .kitchen-grid, .disc-list, .years, .owners, .room, .choose-list div { grid-template-columns: 1fr; }
  .chapter > *, .page-open > *, .sec-head > *, .season > *, .eat-cols > *, .kitchen-grid > *, .disc-list > li, .years > *, .owners > *, .room > *, .choose-list div > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .sec-head p { margin-top: 18px; }
  .ch-stay .ch-big { width: 86%; margin-left: auto; }
  .ch-stay .ch-small, .ch-out .ch-small { width: 58%; }
  .ch-hist .ch-old { width: 72%; }
  .ch-hist .ch-owners { width: 60%; margin: 0 0 0 auto; }
  .season-img { width: 84%; }
  .season-img.piscina { width: 56%; }
  .season-txt { margin-top: 20px; }
  .page-open .cols2 { margin-top: 12px; }
  .room-fig { position: static; }
  .room-fig img { height: auto; aspect-ratio: 4 / 5; }
  .room-pic .room-txt { padding-top: 32px; }
  .room-num { margin-bottom: 20px; }
  .disc-list li:nth-child(even) { margin-top: 0; }
  .breakfast .ch-text, .ember-in { margin-left: 0; }
  .welcome-list li:nth-child(even) { padding-left: 12%; }
  .owners-fig { position: static; margin-bottom: 32px; }
  .two-grid { grid-template-columns: 1fr; }
  .visit-card { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; }
  .visit-pic img { min-height: 0; height: 70svh; }
  .foot-grid { grid-template-columns: 1fr; }
  .eat-pic img { height: 58svh; }
  .choose-list dt { margin-bottom: 6px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
.seasons-text .season-txt { grid-column: 1 / span 8; }
.seasons-text .season-txt h3 { font-size: var(--s-display); line-height: .95; letter-spacing: -.03em; font-weight: 320; }
@media (max-width: 760px) { .visit-card { margin: -80px 16px 0; width: auto; } }

/* Portada · «Una casa de montaña donde quedarse»: foto grande + recuadro con cuatro datos, alternando lado */
.ch-stay .ch-text { grid-column: 1 / span 7; }
.stay-rows { display: grid; gap: clamp(56px, 8vw, 120px); padding: clamp(56px, 7vw, 104px) var(--m) 0; }
.sr-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); align-items: center; }
.sr-pic { grid-column: 1 / span 7; grid-row: 1; }
.sr-pic img { width: 100%; height: min(78svh, 46vw); object-fit: cover; }
.sr-box { grid-column: 8 / -1; grid-row: 1; background: var(--ground-2); padding: clamp(24px, 3vw, 44px); }
.sr-flip .sr-pic { grid-column: 6 / -1; }
.sr-flip .sr-box { grid-column: 1 / span 5; }
.sr-box h3 { font-size: var(--s-head); margin-bottom: 24px; }
.sr-box dl { margin: 0 0 18px; display: grid; gap: 16px; }
.sr-box dt { font-style: italic; color: var(--ink-2); }
.sr-box dd { margin: 2px 0 0; }
.sr-box .more { padding-bottom: 0; }
@media (max-width: 760px) {
  .sr-row { grid-template-columns: 1fr; }
  .sr-row > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .sr-pic img { height: auto; aspect-ratio: 4 / 5; }
  .sr-box { margin: -48px 16px 0; position: relative; }
}
/* Foto panorámica (desayuno): se muestra entera, sin recorte, para no tener que ampliarla */
.sr-pano img { height: auto !important; aspect-ratio: auto !important; }

/* «Empezar el día sin prisa»: tres fotos apiladas, todas igual de alargadas; el recuadro de texto mide lo mismo que la pila */
.sr-row-stack { align-items: stretch; }
.sr-stack { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 14px); }
.sr-stack picture { flex: 1 1 auto; aspect-ratio: 3 / 1; position: relative; min-height: 0; }
.sr-stack img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.sr-row-stack .sr-box { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) {
  .sr-stack picture { aspect-ratio: 2.34 / 1; }
  .sr-row-stack .sr-box { margin-top: -32px; }
}

/* Habitaciones: las tres fichas con foto; la individual al otro lado; la triple (horizontal) sin recortar */
.room-flip .room-fig { grid-column: 7 / -1; grid-row: 1; }
.room-flip.room-pic .room-txt { grid-column: 1 / span 5; grid-row: 1; }
.room-land .room-fig img { height: auto; max-height: none; aspect-ratio: auto; }
.room-land.room-pic .room-txt { padding-top: 0; align-self: center; }
@media (max-width: 760px) { .room-flip .room-fig, .room-flip.room-pic .room-txt { grid-column: 1 / -1; } }

/* Habitaciones · «En la habitación»: fila justificada; cada foto ocupa un ancho proporcional a su forma */
.bath { padding: var(--gap) var(--m) 0; }
.bath-h { font-size: clamp(1.4rem, 1.1rem + .9vw, 2rem); margin-bottom: 28px; }
.bath-row { display: flex; gap: clamp(8px, 1vw, 14px); max-width: 1100px; }
.bath-r { display: contents; }
.bath-f { flex: var(--r) 1 0; min-width: 0; }
.bath-f img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .bath-row { flex-direction: column; gap: 8px; }
  .bath-r { display: flex; gap: 8px; }
}

/* Portada · «Una casa de montaña donde quedarse»: texto a la izquierda y la fachada a la derecha, encajada con el texto */
.ch-stay { align-items: stretch; }
.ch-stay .ch-text { grid-column: 1 / span 5; align-self: start; }
.ch-stay .ch-text > :last-child { margin-bottom: 0; }
/* La foto toma exactamente la altura del bloque de texto: arriba con el título, abajo con los enlaces */
.ch-photo { grid-column: 7 / -1; grid-row: 1; min-height: 360px; position: relative; margin-top: .55em; }
.ch-photo picture, .ch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ch-photo img { object-fit: cover; }
@media (max-width: 760px) {
  .ch-photo { min-height: 0; aspect-ratio: 4 / 3; margin-top: 8px; }
}

/* Textos alineados: párrafos justificados, con corte de palabras, y el mismo ancho dentro de cada bloque */
main p, .sr-box dd, .menu-list dd, .choose-list dd, .foot p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
main p, .lead, .hero-idea, .ember .lead, .quote p { max-width: none; }
main p.row, .room-meta, .season-when, .disc-meta, .hero-where, .hero-cap, figcaption, .quote footer, .visit-card p { text-align: left; hyphens: manual; }
.ch-text { max-width: 640px; }
.sec-head p { max-width: 560px; }

/* Estaciones: el texto ocupa toda la altura de la foto, de su borde superior al inferior */
.season { align-items: stretch; }
.season-img { display: flex; }
.season-img img { flex: 1; height: 100%; min-height: 30vw; aspect-ratio: auto; object-fit: cover; }
.season-txt { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.season-top p { margin-bottom: 0; }
.season-when { margin-top: -.2em; }
.season-txt h3 { margin-bottom: 14px; }
.season-more { margin: 0; display: grid; gap: 16px; }
.season-more dt { font-style: italic; color: var(--ink-2); }
.season-more dd { margin: 2px 0 0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.seasons-text .season-txt { justify-content: flex-start; }
@media (max-width: 760px) {
  .season-img img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Portada · «Una casa con historia»: fotos a la izquierda (la casa y, debajo, Paula y Ricard); a la derecha, el texto de cada una */
.ch-hist2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: clamp(48px, 6vw, 96px); padding: var(--gap) var(--m) 0; align-items: center; }
.ch-hist2 .h2-pic { grid-column: 1 / span 5; }
.ch-hist2 .h2-txt { grid-column: 7 / -1; }
.ch-hist2 .h2-pic:first-child img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.ch-hist2 .h2-pic img { width: 100%; height: auto; }
.ch-hist2 h2 { font-size: clamp(1.75rem, 1rem + 2.1vw, 3rem); margin-bottom: 28px; }
.ch-hist2 h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.4rem); margin-bottom: 22px; }
.ch-hist2 .lead { margin-bottom: 20px; }
.h2-quote { margin: 28px 0 8px; }
.h2-quote p { font-size: var(--s-lead); line-height: 1.35; font-style: italic; text-align: left; hyphens: manual; }
.h2-quote footer { color: var(--ink-2); }
@media (max-width: 760px) {
  .ch-hist2 { grid-template-columns: 1fr; row-gap: 28px; }
  .ch-hist2 > * { grid-column: 1 / -1 !important; }
  .ch-hist2 .h2-txt + .h2-pic { margin-top: 40px; }
}

/* Portada: foto del comedor antes de «El Recó de l’Avi» más baja (≈ 2/3 de la altura anterior), para hacer menos scroll */
#inicio-restaurante .eat-pic img { height: min(56svh, 40vw); object-position: 50% 50%; }
@media (max-width: 760px) { #inicio-restaurante .eat-pic img { height: 38svh; } }

/* Habitaciones: sin recuento inicial; el título y directamente las fichas (individual, doble, triple y adaptada) */
.page-open-short { padding-bottom: 0; }
.page-open-short h1 { margin-bottom: 0; }
.page-open-short + .room { padding-top: clamp(40px, 5vw, 72px); }

/* Portada · Habitaciones: carrusel de fotos, todas en 4:3, con fundido */
.sr-carousel { position: relative; }
.car-track { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-2); }
.car-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.car-slide.is-on { opacity: 1; }
.car-slide picture, .car-slide img { width: 100%; height: 100% !important; }
.car-slide img { object-fit: cover; }
.car-ui { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.car-btn { min-width: 44px; min-height: 44px; border: 0; background: var(--ground-2); color: var(--ink); font-size: 1.05rem; }
.car-btn:hover { background: #DDD5C5; }
.car-dots { display: flex; gap: 2px; flex: 1; justify-content: center; }
.car-dot { width: 28px; height: 44px; border: 0; background: none; position: relative; padding: 0; }
.car-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink-2); opacity: .35; }
.car-dot[aria-current='true']::after { opacity: 1; background: var(--ink); }
.car-play { font-size: .8rem; letter-spacing: -.1em; }
.js .sr-carousel:not([data-ready]) .car-ui { visibility: hidden; }
@media (max-width: 760px) { .sr-row:has(.sr-carousel) .sr-box { margin-top: 12px; } }
.car-play .i-play { display: none; }
.car-play.is-paused .i-play { display: inline; }
.car-play.is-paused .i-pause { display: none; }
.car-btn svg { vertical-align: middle; }
@media (max-width: 760px) { .car-ui { gap: 4px; } .car-dots { gap: 0; } .car-dot { width: 24px; } }

/* Estaciones: las tres fotos con la misma proporción (4:5) y el texto ocupando su misma altura */
.season { align-items: stretch; }
.season-img { grid-column: 1 / span 5 !important; display: block; }
.season-img img { width: 100%; height: auto !important; min-height: 0 !important; aspect-ratio: 9 / 8 !important; object-fit: cover; }
.season-txt { grid-column: 7 / -1; }
.season-more { gap: 14px; }
@media (max-width: 760px) { .season-img img { aspect-ratio: 9 / 8 !important; } }

/* Estaciones: texto seguido (sin hueco en medio); el interlineado se ajusta para que ocupe la altura de la foto */
.season-txt { justify-content: flex-start !important; gap: 0 !important; --lh: 1.7; }
.season-top { margin-bottom: 1.1em; }
.season-txt p, .season-more dd { line-height: var(--lh); }
.season-more { gap: .7em; }

@media (max-width: 760px) { .season-img, .season-img.piscina { width: 100% !important; } }

/* Portada · «Una casa amb història»: la foto nueva de la fachada ocupa la misma altura que su texto */
.ch-hist2 .h2-casa { align-self: stretch; display: flex; flex-direction: column; }
.ch-hist2 .h2-casa picture { flex: 1; position: relative; min-height: 360px; }
.ch-hist2 .h2-casa img { position: absolute; inset: 0; width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; filter: none !important; }
.ch-hist2 .h2-txt p { line-height: 1.7; }
@media (max-width: 760px) { .ch-hist2 .h2-casa picture { min-height: 0; aspect-ratio: 3 / 2; } }
.ch-hist2 .h2-own picture { min-height: 520px; }
.ch-hist2 .h2-txt h3 + p, .ch-hist2 .h2-txt p { margin-bottom: .9em; }
@media (max-width: 760px) { .ch-hist2 .h2-own picture { min-height: 0; aspect-ratio: 4 / 5; } }
/* Foto y texto exactamente a la misma altura: el pie de foto queda debajo, fuera del cuadro */
.ch-hist2 .h2-casa { position: relative; }
.ch-hist2 .h2-casa figcaption { position: absolute; top: 100%; left: 0; }
.ch-hist2 .h2-casa picture { min-height: 0 !important; }
.ch-hist2 .h2-casa + .h2-txt { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.ch-hist2 .h2-txt > :first-child { margin-top: 0; }
.ch-hist2 .h2-txt > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .ch-hist2 .h2-casa figcaption { position: static; }
  .ch-hist2 .h2-casa picture { min-height: 0; }
}

/* Portada · Paula i Ricard: en ordenador, texto a la izquierda y foto a la derecha (en móvil, foto arriba y texto debajo) */
@media (min-width: 761px) {
  .ch-hist2 .h2-own { grid-column: 8 / -1; grid-row: 2; }
  .ch-hist2 .h2-own + .h2-txt { grid-column: 1 / span 6; grid-row: 2; }
}
@media (max-width: 760px) {
  .ch-hist2 > * { grid-row: auto !important; }
  .ch-hist2 .h2-casa figcaption { position: static; margin-top: 8px; }
}

/* Habitaciones: cada ficha con su carrusel de fotos, todas cuadradas; la adaptada con el mismo estilo que las demás */
.room-car { position: sticky; top: calc(var(--hh) + 24px); }
.room-car .car-track { aspect-ratio: 1 / 1; }
.room-pic .room-txt { padding-top: 4vh; }
.room-flip .room-car { grid-column: 7 / -1; grid-row: 1; }
.room-flip.room-pic .room-txt { grid-column: 1 / span 5; grid-row: 1; }
@media (max-width: 760px) { .room-car { position: static; } }
/* Carruseles con muchas fotos: los puntos pasan a dos líneas en vez de desbordar */
.car-dots { flex-wrap: wrap; min-width: 0; }
.car-ui { min-width: 0; }
.pg-habitaciones .choose { padding-bottom: var(--gap); }
.foot { padding-bottom: clamp(40px, 5vw, 72px); }
/* Pie: enlaces de teléfono y correo con área táctil suficiente */
.foot p a { display: inline-block; padding: 4px 0; }

/* Misma separación entre foto y texto en estaciones, «Una casa amb història» y Paula i Ricard (más estrecha) */
@media (min-width: 761px) {
  :root { --pic-gap: clamp(16px, 2.5vw, 40px); }
  .season-txt { grid-column: 6 / -1 !important; padding-left: var(--pic-gap); }
  .ch-hist2 .h2-pic { grid-column: 1 / span 5; }
  .ch-hist2 .h2-txt { grid-column: 6 / -1; padding-left: var(--pic-gap); }
  .ch-hist2 .h2-own { grid-column: 8 / -1; }
  .ch-hist2 .h2-own + .h2-txt { grid-column: 1 / span 7; padding-left: 0; padding-right: var(--pic-gap); }
}

/* Habitaciones: foto de fondo fija (entrega de la llave) que se ve por debajo, velada con el color del papel */
.rooms-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.rooms-bg picture, .rooms-bg img { width: 100%; height: 100% !important; }
.rooms-bg img { object-fit: cover; object-position: 60% 50%; filter: grayscale(.35) blur(1.5px); transform: scale(1.02); }
.rooms-bg::after { content: ''; position: absolute; inset: 0; background: var(--ground); opacity: .86; }
.pg-habitaciones .choose-list div:nth-child(odd) { background: rgba(234, 228, 215, .8); }

/* Habitaciones: cada bloque va sobre papel sólido y la foto de fondo solo se ve en los huecos entre ellos,
   como ventanas, para que el contenido no parezca flotar */
.pg-habitaciones main > * { background: var(--ground); position: relative; }
.pg-habitaciones main > .rooms-bg { background: none; position: fixed; }
.pg-habitaciones .page-open-short { padding-bottom: clamp(40px, 5vw, 72px); }
.pg-habitaciones .room { margin-top: clamp(140px, 30vh, 300px); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.pg-habitaciones .page-open-short + .room { margin-top: 0; padding-top: clamp(16px, 2vw, 32px); }
.pg-habitaciones .choose { margin-top: clamp(140px, 30vh, 300px); padding-top: clamp(56px, 7vw, 104px); }
.rooms-bg::after { opacity: .18; }
.rooms-bg img { filter: none; transform: none; }
.pg-habitaciones .choose-list div:nth-child(odd) { background: var(--ground-2); }
/* Habitaciones: ventana con la foto también arriba del todo; sin ventana antes de «Quina habitació et va millor» */
.pg-habitaciones .page-open-short { margin-top: clamp(140px, 30vh, 300px); padding-top: clamp(48px, 6vw, 88px); }
.pg-habitaciones .choose { margin-top: 0; }

/* Habitaciones: el scroll se detiene en cada habitación y la deja entera en pantalla */
html:has(body.pg-habitaciones) { scroll-snap-type: y proximity; }
@media (min-width: 761px) {
  html:has(body.pg-habitaciones) { scroll-snap-type: y mandatory; }
  .pg-habitaciones .room {
    min-height: calc(100svh - var(--hh));
    padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(24px, 4vh, 48px);
    align-items: center; align-content: center;
  }
  /* El carrusel cabe siempre en la pantalla junto con sus controles */
  .pg-habitaciones .room-car { position: static; width: min(100%, calc(100svh - var(--hh) - 150px)); justify-self: start; }
  .pg-habitaciones .room-flip .room-car { justify-self: end; }
  .pg-habitaciones .room-pic .room-txt { padding-top: 0; }
}
.pg-habitaciones .room, .pg-habitaciones .page-open-short, .pg-habitaciones .choose { scroll-snap-align: start; scroll-margin-top: var(--hh); }
.pg-habitaciones .foot { scroll-snap-align: end; }
/* El scroll-padding de la página ya cuenta la barra superior: sin margen extra para que encaje justo debajo */
html:has(body.pg-habitaciones) { scroll-padding-top: var(--hh); }
.pg-habitaciones .room, .pg-habitaciones .page-open-short, .pg-habitaciones .choose { scroll-margin-top: 0; }
/* Pantallas bajas: texto de la ficha algo más compacto para que la habitación quepa entera */
@media (min-width: 761px) and (max-height: 820px) {
  .pg-habitaciones .room-txt h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.6rem); }
  .pg-habitaciones .room-meta { margin-bottom: 14px; }
  .pg-habitaciones .room-txt .lead { font-size: 1.125rem; margin-bottom: 12px; }
  .pg-habitaciones .room-txt p { font-size: .9375rem; line-height: 1.5; margin-bottom: .7em; }
  .pg-habitaciones .facts { margin: 16px 0; gap: 10px; font-size: .9375rem; line-height: 1.45; }
}

/* Restaurante: foto de cabecera (mesa puesta) a la mitad de altura, para que el texto aparezca enseguida */
.pg-restaurante #restaurante .eat-pic img { height: min(46svh, 34vw); object-position: 50% 62%; }
@media (max-width: 760px) { .pg-restaurante #restaurante .eat-pic img { height: 34svh; } }
@media (min-width: 761px) {
  /* Restaurante: título a la izquierda y el texto con los botones a la derecha, sin huecos vacíos */
  .pg-restaurante #restaurante .eat-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); align-items: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
  .pg-restaurante #restaurante .eat-in h1 { grid-column: 1 / span 6; margin: 0; }
  .pg-restaurante #restaurante .eat-cols { grid-column: 7 / -1; display: block; margin: 0; }
  .pg-restaurante #restaurante .eat-cols > .lead { margin-bottom: 18px; max-width: none; }
}

/* Restaurante · «El que trobaràs a taula»: fotos en dos columnas escalonadas, cada una con su texto debajo */
.kgal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.kgal-col { grid-column: 1 / span 5; display: grid; gap: clamp(56px, 8vw, 120px); align-content: start; }
.kgal-col-2 { grid-column: 7 / -1; padding-top: clamp(120px, 22vh, 260px); }
.kgal-i img { width: 100%; height: auto; }
.kgal-i figcaption { margin-top: 18px; font-style: normal; color: var(--ink); font-size: inherit; }
.kgal-i h3 { margin-bottom: 8px; }
.kgal-i figcaption p { color: var(--ink); margin: 0 0 .7em; max-width: none; }
.kgal-i figcaption p:first-of-type { color: var(--ink-2); font-style: italic; }
@media (max-width: 760px) {
  .kgal { grid-template-columns: 1fr; }
  .kgal-col, .kgal-col-2 { grid-column: 1 / -1; padding-top: 0; gap: 48px; }
  .kgal-col-2 { margin-top: 48px; }
}
.kgal-txt figcaption { margin-top: 0; }
@media (max-width: 760px) {
  /* En móvil, una sola columna en el mismo orden de lectura que en el ordenador */
  .kgal { display: flex; flex-direction: column; gap: 48px; }
  .kgal-col, .kgal-col-2 { display: contents; }
  .kgal-col > :nth-child(1) { order: 1; } .kgal-col-2 > :nth-child(1) { order: 2; }
  .kgal-col > :nth-child(2) { order: 3; } .kgal-col-2 > :nth-child(2) { order: 4; }
  .kgal-col > :nth-child(3) { order: 5; } .kgal-col-2 > :nth-child(3) { order: 6; }
}
/* Foto de bolets: mismo formato vertical que la de tapes, para no descompensar la columna */
.kgal-i img[src*='restBolets'] { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }

/* Cabecera: logotipo de Hotel Casa Duaner · Restaurant El Recó de l’Avi */
.mark-logo { display: block; line-height: 0; }
.mark-logo img { height: 40px; width: auto; }
@media (max-width: 760px) { .mark-logo img { height: 30px; } }
/* Firma «Paula i Ricard» en pequeño, sin enlace */
.ch-hist2 .h2-sign { font-size: .9375rem; font-style: italic; color: var(--ink-2); text-align: left; margin: 0; }

/* On som: título y entradilla centrados en vertical con el texto de la derecha */
.loc-open { align-items: center; }
.loc-open .loc-head { grid-column: 1 / span 6; }
.loc-open .loc-head h1 { margin-bottom: clamp(20px, 2.4vw, 36px); }

/* Restaurante: «Producte, temporada i productors» dentro de la galería, columna izquierda (al lado de bolets) */
.kgal-prod h2 { margin-bottom: clamp(16px, 2vw, 28px); }
.kgal-prod .axes { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem); }
@media (max-width: 760px) { .kgal-prod { order: 7; } }

/* Restaurante sin cierre «Dormir, menjar…»: margen corto entre las últimas tarjetas y el pie */
.pg-restaurante .two { padding-bottom: clamp(56px, 7vw, 104px); }
.pg-restaurante .ember { margin-top: clamp(48px, 6vw, 96px); }

/* Apartaments l'Era (portada): bloque compacto. Sin foto: título y texto a la izquierda, datos y contacto a la derecha. */
.apts { padding: clamp(64px, 8vw, 120px) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: clamp(28px, 3vw, 40px); align-items: center; scroll-margin-top: var(--hh); }
.apts-head { grid-column: 1 / span 7; }
.apts-head h2 { margin-bottom: clamp(16px, 2vw, 24px); }
.apts-act { grid-column: 9 / -1; border-top: 1px solid rgba(27, 30, 25, .18); padding-top: clamp(20px, 2vw, 28px); }
.apts-feats { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-style: italic; font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem); }
.apts-feats li + li::before { content: '·'; padding: 0 .5em; color: var(--ink-2); font-style: normal; }
.apts-note { color: var(--ink-2); margin: 0 0 18px; }
/* Con foto: foto a la izquierda; texto y contacto a la derecha, uno debajo del otro */
.apts-pic .apts-photo { grid-column: 1 / span 6; grid-row: 1 / span 2; margin: 0; }
.apts-pic .apts-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.apts-pic .apts-head, .apts-pic .apts-act { grid-column: 8 / -1; }
.apts-pic .apts-head { align-self: end; }
.apts-pic .apts-act { align-self: start; }
@media (max-width: 760px) {
  .apts { grid-template-columns: 1fr; }
  .apts > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .apts-feats { font-size: 1.1rem; }
  .apts .btn { width: 100%; }
}
.apts-head { grid-column: 1 / span 6; }
.apts-act { grid-column: 8 / -1; }
.apts-feats li { white-space: nowrap; }
/* Separador al final de cada dato: si la línea se parte, el punto queda al final y no al principio */
.apts-feats li + li::before { content: none; }
.apts-feats li:not(:last-child)::after { content: '·'; padding: 0 .5em; color: var(--ink-2); font-style: normal; }

/* On som: botón con el correo; que no desborde en móvil */
.btn-mail { overflow-wrap: normal; word-break: normal; hyphens: manual; text-transform: none; }

/* Índice con 5 entradas: lista centrada en el alto, líneas finas entre entradas y descripción alineada */
.index nav { margin: auto 0; padding: 3vh 0; }
.index-list { margin: 0; gap: 0; border-top: 1px solid rgba(246, 242, 234, .18); }
.index-list li { border-bottom: 1px solid rgba(246, 242, 234, .18); }
.index-list a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; padding: clamp(14px, 2.6vh, 26px) 0; }
.il-n { font-size: clamp(2.2rem, 1rem + 4vw, 4.8rem); }
.il-d { text-wrap: balance; }
.index-foot { margin-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .index-list a { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .il-n { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .il-d { font-size: .9375rem; }
}
.index-foot a { white-space: nowrap; }

/* Índice lleno: la lista ocupa todo el alto disponible, cada entrada una franja igual, letra según el alto */
.index nav { flex: 1; display: flex; margin: 0; padding: 8px 0 0; }
.index-list { flex: 1; grid-auto-rows: 1fr; }
.index-list li { display: flex; }
.index-list a { flex: 1; padding: 0; }
.il-n { font-size: clamp(2.4rem, min(7.4vw, 11.5vh), 8.5rem); line-height: .95; }
.il-d { font-size: clamp(1rem, min(1.5vw, 2.6vh), 1.5rem); }
.index-foot { padding-top: 20px; }
@media (max-width: 760px) {
  .index-list a { align-content: center; padding: 0; }
  .il-n { font-size: clamp(2.2rem, min(11vw, 7vh), 3.4rem); }
  .il-d { font-size: clamp(.9375rem, 2vh, 1.125rem); }
}

/* Visor «Menú»: cartas en imagen por pestañas */
.dlg-carta { width: min(980px, calc(100vw - 24px)); max-height: 92svh; }
.carta-tabs { position: sticky; top: -4px; z-index: 1; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 4px 0 10px; background: var(--ground); border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); }
.carta-tabs [role=tab] { min-height: 44px; padding: 0 16px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font: inherit; font-size: 1rem; cursor: pointer; }
.carta-tabs [role=tab][aria-selected=true] { background: var(--forest); color: var(--on-forest); }
.carta-tabs [role=tab]:hover { background: var(--ground-2); }
.carta-tabs [role=tab][aria-selected=true]:hover { background: var(--forest); }
.carta-panel { display: grid; gap: 14px; }
.carta-panel[hidden] { display: none; }
.carta-page { display: block; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.08); cursor: zoom-in; }
.carta-page img { display: block; width: 100%; height: auto; }
.carta-panel .dlg-actions { margin: 4px 0 0; }
@media (max-width: 760px) {
  .dlg-carta { width: 100vw; max-height: 100svh; height: 100svh; }
  .dlg-carta .dlg-head { padding: 16px 16px 8px; }
  .dlg-carta .dlg-body { padding: 4px 12px 20px; }
  .carta-tabs [role=tab] { padding: 0 12px; font-size: .9375rem; }
}

/* Horarios del restaurante (src/horaris.mjs): columna derecha del Restaurante, debajo de los botones */
.hours { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid rgba(246, 242, 234, .22); }
.eat-in .hours-t { display: block; max-width: none; margin: 0 0 18px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); }
.hours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 44px); }
.hours-s h3 { margin: 0 0 10px; font-size: 1.0625rem; font-style: italic; font-weight: 400; color: var(--on-forest-2); }
.hours dl { margin: 0; display: grid; gap: 12px; }
.hours dt { font-size: 1.0625rem; }
.hours-time { font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: .35em; }
.hours dd { margin: 2px 0 0; color: var(--on-forest-2); }
@media (max-width: 760px) { .hours-grid { grid-template-columns: 1fr; } }

/* Página de los apartamentos */
.apts-open .apts-act { border-top: 1px solid var(--line, rgba(0,0,0,.14)); padding-top: 22px; align-self: start; }
.apts-open .apts-feats { margin-top: 0; }
.apts-more { margin: 14px 0 0; }
.apts-photo-wide { margin: 0; }
.apts-photo-wide img { width: 100%; height: auto; display: block; }
.pg-apartamentos .apts-also { padding-bottom: clamp(56px, 7vw, 110px); }
.apts-open { padding-bottom: clamp(24px, 3vw, 40px); }
.pg-apartamentos .apts-also { padding-top: clamp(24px, 3vw, 40px); }

/* Títulos de página con varias líneas: algo más de aire entre líneas (Edu) */
.page-open h1 { line-height: 1.14; }

/* Habitacions en móvil: sin la ventana de la foto fija arriba; se abre directamente con el título y la primera habitación (Edu) */
@media (max-width: 760px) {
  .pg-habitaciones .page-open-short { margin-top: 0; padding-top: 28px; padding-bottom: 12px; }
}

/* Textos legales y demás ventanas en móvil: datos del titular uno debajo del otro, sin salirse del cuadro (Edu) */
.dlg-meta dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .dlg { width: calc(100vw - 16px); }
  .dlg-head { padding: 18px 18px 8px; }
  .dlg-body { padding: 4px 18px 22px; }
  .dlg-meta { padding: 14px; gap: 12px; }
  .dlg-meta div { grid-template-columns: 1fr; gap: 2px; }
  .dlg-meta dt { font-size: .875rem; }
}
.dlg-meta .nw { white-space: nowrap; }
@media (max-width: 560px) { .dlg-meta .nw { display: block; } .dlg-meta .nw-sep { display: none; } }
.hero-where .nw { white-space: nowrap; }
