/* Hotel Rural La Sinforosa — rediseño v2 (rústico, cálido y limpio). CSS compartido, sin preprocesador.
   Fuentes alojadas en local (assets/fonts, licencia OFL): Playfair Display, Lora e Inter (subconjunto latin). */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/playfair-display-latin.woff2) format('woff2'); 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: 'Playfair Display'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/playfair-display-italic-latin.woff2) format('woff2'); 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: 'Lora'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/lora-latin.woff2) format('woff2'); 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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); 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; }
:root {
  /* cal y mortero */
  --cal: #F3EBDD;
  --cal-2: #EADFCB;
  --mortar: #E6D9C3;
  --paper: #FBF7EF;
  /* tierra */
  --nogal: #3A2A1F;
  --ink: #2F241B;
  --ladrillo: #9A4A2E;
  --teja: #B8643B;
  --teja-text: #8F3E1D;     /* texto pequeño sobre cal: cumple AA */
  --terra: #B5471B;
  --ocre: #B88A44;
  --ocre-light: #E0C08A;    /* ocre para texto sobre fondo oscuro */
  --piedra: #675F55;        /* texto secundario (mampostería oscurecida) */
  --piedra-line: #8C8378;
  --ceramica: #4F7A6B;
  --reservar: #C74300;
  --reservar-dark: #A33A00;
  --line: rgba(58, 42, 31, .2);
  --line-light: rgba(243, 235, 221, .3);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --text: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bar-h: 76px;
  --promo-h: 0px;            /* html.has-promo la sube a 36px (banner de cupón sobre la barra) */
  --header-h: calc(var(--bar-h) + var(--promo-h));
  --wrap: 1180px;
  --gut: clamp(1.5rem, 4.5vw, 2.75rem);
  --space: clamp(4.5rem, 9vw, 8rem);
  /* grano de cal / papel (SVG inline, ~0,5 KB): ruido marrón al ~4 % */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .16 0 0 0 0 .09 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --brick: url("../img/ladrillo.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grain), var(--cal); color: var(--ink); font: 400 1.0625rem/1.72 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.section--dark :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .lb :focus-visible { outline-color: var(--ocre-light); }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--nogal); color: var(--cal); padding: .7rem 1rem; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: calc(800px + var(--gut) * 2); }

/* ---------- tipografía ---------- */
.eyebrow { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.15rem; font: 600 .72rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teja-text); }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--ocre); }
.eyebrow--light { color: var(--ocre-light); }
.eyebrow--light::before { background: var(--ocre-light); }
.title, .display { font-family: var(--serif); font-weight: 500; line-height: 1.16; letter-spacing: -.012em; color: var(--nogal); text-wrap: balance; }
.title { font-size: clamp(1.85rem, 3.5vw, 2.8rem); margin-bottom: 1.1rem; }
.title--sm { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.title--light, .display { color: var(--cal); }
.display { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.1; }
.display--dark { color: var(--nogal); }
.title em, .display em { font-style: italic; font-weight: 500; color: var(--teja); }
.title--light em, .display em { color: var(--ocre-light); }
.display--dark em { color: var(--teja); }
.lead { font-size: clamp(1.0625rem, 1.25vw, 1.15rem); line-height: 1.8; color: var(--ink); }
.lead--light { color: rgba(243, 235, 221, .94); }
.lead--center { text-align: center; margin-inline: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; margin-top: .6rem; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teja-text); text-decoration: none; padding-bottom: .45rem; border-bottom: 1px solid var(--ocre); }
.link-arrow .ico { transition: transform .3s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* separador de sección: dos filetes ocres con un rombo */
.divider { width: 120px; height: 12px; margin: 0 0 1.5rem; overflow: visible; }
.divider__line { fill: none; stroke: var(--ocre); stroke-width: 1; }
.divider__rhomb { fill: none; stroke: var(--ocre); stroke-width: 1; }
.divider__dot { fill: var(--ceramica); }
.divider-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.divider-wrap .divider { margin: 0; }
.cta .divider { margin-inline: auto; }
.cta .divider__line, .cta .divider__rhomb { stroke: var(--ocre-light); }
.cta .divider__dot { fill: var(--ocre-light); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.05em 1.9em; font: 600 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ocre); border-radius: 2px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn--primary { background: var(--reservar); color: #fff; }
.btn--primary:hover { background: var(--reservar-dark); }
.btn--sm { padding: .85em 1.35em; }
.btn--line { background: transparent; color: var(--nogal); border-color: var(--ocre); }
.btn--line:hover { background: var(--nogal); color: var(--cal); border-color: var(--nogal); }
.btn--line .ico { width: 1.15em; height: 1.15em; }

/* ---------- cabecera ---------- */
html.has-promo { --promo-h: 36px; }
.promo { height: var(--promo-h); display: flex; align-items: center; justify-content: center; padding-inline: .75rem; background: var(--nogal); color: var(--cal); border-bottom: 1px solid rgba(224, 192, 138, .35); }
.promo__text { margin: 0; font: 500 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo__short { display: none; }
.promo__code { appearance: none; margin: 0; padding: .32em .7em; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; color: var(--nogal); background: var(--ocre-light); border: 0; border-radius: 2px; cursor: pointer; }
.promo__code:hover { background: #fff; }
.promo :focus-visible { outline-color: var(--ocre-light); }
@media (max-width: 560px) { .promo__long, .promo__sep { display: none; } .promo__short { display: inline; margin-right: .5em; } .promo__text { font-size: .68rem; letter-spacing: .05em; } .promo__code { font-size: .68rem; padding: .3em .55em; } }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: var(--cal); border-bottom: 1px solid var(--ocre); transition: background-color .3s, border-color .3s; }
.site-header__bar { max-width: calc(var(--wrap) + var(--gut) * 2); height: var(--bar-h); margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 2rem; }
.brand { display: block; width: 148px; flex: none; position: relative; }
.brand__logo { width: 100%; height: auto; transition: opacity .3s; }
.brand__logo--light { position: absolute; inset: 0; opacity: 0; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1.1rem, 2.3vw, 2.1rem); }
.nav a { position: relative; display: inline-block; padding: .5rem 0; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--nogal); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05rem; height: 1px; background: var(--ocre); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; color: var(--nogal); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s, opacity .2s; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* cabecera transparente sobre foto (con JS y arriba del todo); al hacer scroll pasa a cal con filete ocre */
.js .has-hero .site-header:not(.is-scrolled):not(.nav-open) { background-color: transparent; background-image: linear-gradient(to bottom, rgba(38, 24, 14, .5), rgba(38, 24, 14, 0)); border-bottom-color: transparent; background-clip: padding-box; }
.js .has-hero .site-header:not(.is-scrolled):not(.nav-open) .nav a,
.js .has-hero .site-header:not(.is-scrolled):not(.nav-open) .nav-toggle { color: var(--cal); }
.js .has-hero .site-header:not(.is-scrolled):not(.nav-open) .brand__logo--dark { opacity: 0; }
.js .has-hero .site-header:not(.is-scrolled):not(.nav-open) .brand__logo--light { opacity: 1; }
.js .has-hero-logo .site-header:not(.is-scrolled):not(.nav-open) .brand { opacity: 0; pointer-events: none; }
body { padding-top: var(--header-h); }
.has-hero { padding-top: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; color: var(--cal); background: var(--nogal); isolation: isolate; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; }
.hero__bg picture, .page-hero__bg picture, .hero__bg img, .page-hero__bg img { width: 100%; height: 100%; }
.hero__bg img, .page-hero__bg img { object-fit: cover; object-position: 62% 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(44, 27, 14, .66) 0%, rgba(44, 27, 14, .3) 55%, rgba(44, 27, 14, .12) 100%), linear-gradient(to top, rgba(44, 27, 14, .6) 0%, rgba(44, 27, 14, 0) 45%), rgba(150, 90, 40, .1); }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(2rem, 5vh, 3.25rem); gap: clamp(2rem, 5svh, 3.25rem); padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(1.5rem, 4vh, 3rem); padding-bottom: calc(clamp(1.5rem, 4svh, 3rem) + env(safe-area-inset-bottom)); }
.hero__content { max-width: 640px; }
.hero__logo { width: clamp(190px, 24vw, 290px); height: auto; margin: 0 0 clamp(1.5rem, 4vh, 2.5rem) -.4rem; margin-bottom: clamp(1.5rem, 4svh, 2.5rem); }
.hero__content .display { margin-bottom: 1.1rem; font-size: clamp(2.35rem, 4.8vw, 3.9rem); }
.hero__lead { max-width: 30rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: rgba(243, 235, 221, .96); margin-bottom: 1.8rem; }
/* buscador de disponibilidad propio: tarjeta de papel con filete ocre */
.booking { align-self: stretch; }
.finder { background: var(--paper); color: var(--ink); border: 1px solid var(--ocre); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(184, 138, 68, .45); padding: 1.5rem 1.6rem 1.35rem; }
.finder__title { font: 600 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teja-text); margin-bottom: 1.1rem; }
.finder__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; align-items: end; }
.finder__field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.finder label { font: 600 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--piedra); }
.finder input[type="date"], .finder select { width: 100%; min-height: 2.6rem; padding: .3rem 0 .4rem; font: 500 1.15rem/1.3 var(--serif); color: var(--nogal); background-color: transparent; border: 0; border-bottom: 1px solid var(--ocre); border-radius: 0; color-scheme: light; }
.finder select { -webkit-appearance: none; appearance: none; padding-right: 1.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238F3E1D' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .15rem center; cursor: pointer; }
.finder input[type="date"]:focus-visible, .finder select:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.finder input[aria-invalid] { border-bottom-color: #A3281A; border-bottom-width: 2px; }
.finder__nights { font: italic 500 1.05rem/1.3 var(--serif); color: var(--teja-text); align-self: end; padding-bottom: .5rem; min-height: 1.5rem; }
.finder__submit { grid-column: 1 / -1; width: 100%; }
.finder__error { margin-top: .9rem; padding-left: .8rem; border-left: 2px solid #A3281A; font: 500 .95rem/1.4 var(--text); color: #A3281A; }
.finder__error:empty { display: none; }
.finder__promo { margin-top: .85rem; font: 400 .88rem/1.45 var(--text); color: var(--piedra); }
.finder__promo strong { font-family: var(--sans); font-weight: 700; letter-spacing: .06em; color: var(--teja-text); }
@media (max-height: 760px) { .finder__promo { display: none; } }  /* en pantallas bajas manda el banner de arriba */
.finder--compact { padding: 1.1rem 1.4rem 1rem; }
.finder-wrap { max-width: calc(900px + var(--gut) * 2); margin-top: 2.75rem; }
@media (min-width: 760px) {
  .finder__grid { grid-template-columns: 1.25fr 1.25fr 1fr 1fr auto; }
  .finder__nights { grid-column: 1 / 5; grid-row: 2; padding-bottom: 0; min-height: 0; margin-top: -.2rem; }
  .finder__nights:empty { display: none; }
  .finder__submit { grid-column: 5; grid-row: 1; width: auto; }
}

.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 56vh, 560px); min-height: clamp(340px, 56svh, 560px); color: var(--cal); background: var(--nogal); overflow: hidden; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44, 27, 14, .7) 0%, rgba(44, 27, 14, .15) 55%, rgba(44, 27, 14, .32) 100%), rgba(150, 90, 40, .08); }
.page-hero__content { position: relative; padding-bottom: clamp(2rem, 5vw, 3.5rem); padding-top: calc(var(--header-h) + 2rem); }
.page-hero .display { margin: 0; }

/* ---------- secciones ---------- */
.section { padding-block: var(--space); }
.section--alt { background: var(--grain), var(--cal-2); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--flush { padding-top: 0; }
.section--dark { background: var(--grain), var(--nogal); color: var(--cal); }
.section__head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
.split__text .lead + p, .split__text .lead + .link-arrow { margin-top: 1.4rem; }
.split__media { position: relative; }
.split__media img { width: 100%; height: auto; }
.split__media--arch { max-width: 500px; justify-self: center; width: 100%; }
.split__media--arch img { aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--portrait { max-width: 430px; justify-self: center; width: 100%; }
.split__media--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.split__media:not(.split__media--arch):not(.split__media--portrait):not(.split__media--round) img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6.5rem); }
  .split--reverse .split__media { order: 2; }
  .split__text { max-width: 30rem; }
}

/* foto montada: papel claro, filete ocre y sombra casi inexistente; las esquinas, casi rectas */
.split__media:not(.split__media--round), .cat-card__media, .room-card__media, .gallery__item { padding: 8px; background: var(--paper); border: 1px solid var(--ocre); border-radius: 2px; box-shadow: 0 1px 2px rgba(58, 42, 31, .12); }
.split__media:not(.split__media--round) picture, .cat-card__media picture, .room-card__media picture, .gallery__item picture { overflow: hidden; }

/* balneario: recorte circular (las termas romanas tienen cámaras circulares con luz cenital) */
.split__media--round { max-width: 440px; justify-self: center; width: 100%; padding: 12px; }
.split__media--round::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--ocre-light); border-radius: 50%; }
.split__media--round picture { border-radius: 50%; overflow: hidden; }
.split__media--round img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 55%; }
.oculus { position: absolute; top: 4.5%; right: 4.5%; width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: var(--nogal); fill: none; stroke: var(--ocre-light); stroke-width: 1.5; stroke-linecap: round; }
.oculus circle { fill: var(--ocre-light); stroke: none; }

/* categorías (inicio) */
.cat-grid { display: grid; gap: 2.75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 2.75rem clamp(1.5rem, 3vw, 2.75rem); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2vw, 2rem); } }
.cat-card a { display: block; text-decoration: none; }
.cat-card__media { display: block; }
.cat-card__media picture { display: block; }
.cat-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.cat-card a:hover img { transform: scale(1.04); }
@media (max-width: 699px) { .cat-card__media img { aspect-ratio: 4 / 3; } }
.cat-card__name { display: block; margin-top: 1.4rem; font: 500 clamp(1.35rem, 2vw, 1.65rem)/1.2 var(--serif); color: var(--nogal); }
.cat-card__more, .room-card__more { display: inline-flex; align-items: center; gap: .55rem; margin-top: .8rem; font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teja-text); }
.cat-card__more .ico, .room-card__more .ico { transition: transform .3s; }
.cat-card a:hover .ico, .room-card a:hover .ico { transform: translateX(4px); }

/* llamada a reservar: ladrillo bajo una capa de nogal */
.cta { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); color: var(--cal); text-align: center; background: var(--nogal); overflow: hidden; }
.cta--brick { background: linear-gradient(rgba(58, 42, 31, .8), rgba(58, 42, 31, .8)), var(--brick) 0 0 / 320px 80px, var(--nogal); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.cta__inner .title { margin-bottom: 0; }
.cta__inner .divider { margin-bottom: 0; }
.cta__info { font-size: 1.1rem; color: rgba(243, 235, 221, .96); }
.cta__info a { font-weight: 500; }

/* habitaciones */
.cat__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); padding-top: 2rem; border-top: 1px solid var(--ocre); }
@media (min-width: 900px) { .cat__head { grid-template-columns: 1fr 1.25fr; gap: 4rem; } }
.cat__head .title { margin-bottom: 0; }
.cat__names { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font: 500 1.15rem/1.55 var(--serif); color: var(--nogal); }
.cat__names a { text-decoration-color: var(--ocre); }
.cat__head p:last-child { margin-top: 1.6rem; }
.room-grid { display: grid; grid-template-columns: 1fr; gap: 2.75rem; }
@media (min-width: 640px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .room-grid--5, .room-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .room-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 790px; }
}
.room-card a { display: block; text-decoration: none; }
.room-card__media { display: block; }
.room-card__media picture { display: block; }
.room-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.room-card a:hover img { transform: scale(1.04); }
.room-card__name { display: block; margin-top: 1.2rem; font: 500 1.45rem/1.2 var(--serif); color: var(--nogal); }

/* ficha */
.ficha-head { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); }
.breadcrumb { display: flex; gap: .7rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--piedra); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--ocre); }
.ficha-head__grid { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .ficha-head__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.ficha-head .lead + p { margin-top: 1.75rem; }
.quote { font: italic 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.35 var(--serif); color: var(--teja-text); margin-bottom: 1.4rem; padding-left: 1.25rem; border-left: 1px solid var(--ocre); }
.gallery { display: grid; gap: clamp(1.1rem, 2vw, 1.5rem); grid-template-columns: repeat(2, 1fr); }
.gallery__cell { min-width: 0; }
.gallery__item { display: block; height: 100%; cursor: zoom-in; }
.gallery__item picture { display: block; height: 100%; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery--3 .gallery__cell:first-child { grid-column: 1 / -1; }
.gallery--3 .gallery__cell:first-child img { aspect-ratio: 16 / 9; }
.gallery--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .gallery--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery--2 img { aspect-ratio: 4 / 3; }
  .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery--4 img { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery--3 .gallery__cell:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .gallery--3 .gallery__cell:first-child img, .gallery--3 img { aspect-ratio: auto; }
}
.ficha-nav { display: grid; gap: 0; border-top: 1px solid var(--ocre); margin-top: 1.5rem; }
.ficha-nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ficha-nav__dir { font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teja-text); }
.ficha-nav__name { font: 500 1.35rem/1.2 var(--serif); color: var(--nogal); }
.ficha-nav a:hover .ficha-nav__name { text-decoration: underline; text-decoration-color: var(--ocre); }
@media (min-width: 800px) {
  .ficha-nav { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; border-top: 0; }
  .ficha-nav a { flex-direction: column; justify-content: flex-start; gap: .7rem; border-top: 1px solid var(--ocre); border-bottom: 0; padding-top: 1.25rem; }
}

/* texto largo */
.prose-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 7vw, 6.5rem); } .prose-grid__side { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.prose { max-width: 39rem; }
.prose p + p { margin-top: 1.4rem; }

/* dónde estamos */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--ocre); }
.facts dt { font: 600 .68rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--piedra); margin-bottom: .45rem; }
.facts dd { font: 500 clamp(1.35rem, 2.4vw, 1.9rem)/1.1 var(--serif); color: var(--nogal); font-variant-numeric: lining-nums; }
.routes { display: grid; gap: 0; border-top: 1px solid var(--ocre); }
.route { display: grid; gap: .6rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.route__title { font: 500 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 var(--serif); color: var(--nogal); }
@media (min-width: 800px) { .route { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: baseline; } }
/* ubicación: tarjeta de papel con icono; enlaces de salida a mapas (sin mapa incrustado) */
address { font-style: normal; }
.place-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem; background: var(--paper); border: 1px solid var(--ocre); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(184, 138, 68, .45); max-width: 760px; }
.place-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ocre); color: var(--teja-text); }
.place-card__icon .ico { width: 26px; height: 26px; }
.place-card__address { font: 500 clamp(1.3rem, 2.2vw, 1.7rem)/1.3 var(--serif); color: var(--nogal); margin-bottom: 1.1rem; }
@media (min-width: 640px) { .place-card { flex-direction: row; align-items: flex-start; gap: 1.75rem; padding: 2rem 2.25rem; } }
.map-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact .map-links { margin-top: 1.5rem; }
.site-footer__address { font-style: normal; }

/* contacto */
.contact { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.contact .display { margin-bottom: 1.2rem; }
.contact-list { margin-top: 2rem; border-top: 1px solid var(--ocre); }
.contact-list li { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact-list .ico { color: var(--teja-text); }
.contact-list__label { min-width: 6.5rem; font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--piedra); }
.contact-list a { font-weight: 500; }
.contact .social { margin-top: 1.75rem; }
.contact p:last-child { margin-top: 2rem; }

/* redes */
.social { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 44px; height: 44px; border: 1px solid var(--ocre); border-radius: 2px; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.social a:hover { background: var(--nogal); color: var(--cal); border-color: var(--nogal); }
.social--labeled a { width: auto; padding-inline: 1.15rem 1.3rem; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--nogal); }
.social--labeled a:hover { color: var(--cal); }


/* ---------- banda de ladrillo y pie ---------- */
.brick-band { height: 40px; background: var(--brick) 0 0 / 320px 80px repeat-x var(--mortar); }
.site-footer { background: linear-gradient(rgba(58, 42, 31, .9), rgba(58, 42, 31, .9)), var(--brick) 0 0 / 320px 80px, var(--nogal); color: rgba(243, 235, 221, .92); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-top: clamp(3rem, 6vw, 4.75rem); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 4rem; } }
.site-footer__brand img { width: 190px; height: auto; margin-bottom: 1rem; }
.site-footer__title { font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ocre-light); margin-bottom: 1.1rem; }
.site-footer__list li + li { margin-top: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--ocre-light); }
.site-footer .social a { color: var(--cal); border-color: var(--ocre-light); }
.site-footer .social a:hover { background: var(--cal); color: var(--nogal); border-color: var(--cal); text-decoration: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.75rem); padding-bottom: 1.75rem; font-size: .82rem; color: rgba(243, 235, 221, .86); }
.site-footer__legal::before { content: ""; flex: 0 0 100%; border-top: 1px solid var(--line-light); margin-bottom: .9rem; }
.site-footer__legallinks { display: flex; flex-wrap: wrap; gap: .35rem 0; }
.site-footer__legallinks li + li::before { content: "·"; margin: 0 .7rem; color: var(--ocre-light); }
.site-footer__legallinks a { text-decoration: none; }
.site-footer__legallinks a:hover { text-decoration: underline; text-decoration-color: var(--ocre-light); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(30, 20, 13, .97); padding: 3.5rem 1rem 4rem; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb__img { max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__caption { position: absolute; left: 0; right: 0; bottom: 1rem; padding-inline: 4.5rem; text-align: center; color: rgba(243, 235, 221, .9); font-size: .85rem; line-height: 1.4; }
.lb__count { position: absolute; top: 1.25rem; left: 1.25rem; font: 500 .75rem/1 var(--sans); letter-spacing: .16em; color: rgba(243, 235, 221, .85); }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-light); border-radius: 2px; color: var(--cal); cursor: pointer; transition: background-color .2s; }
.lb__btn:hover { background: rgba(243, 235, 221, .14); }
.lb__btn .ico { width: 22px; height: 22px; }
.lb__close { top: .9rem; right: .9rem; }
.lb__prev { left: .9rem; top: 50%; translate: 0 -50%; }
.lb__next { right: .9rem; top: 50%; translate: 0 -50%; }
.lb__prev .ico { transform: scaleX(-1); }
@media (max-width: 640px) { .lb { padding-inline: 0; } .lb__prev, .lb__next { top: auto; bottom: .9rem; translate: none; } .lb__prev { left: .9rem; } .lb__next { right: .9rem; } .lb__caption { padding-inline: 4.5rem; bottom: 1.1rem; } .lb { padding-bottom: 5rem; } }
html.lb-open { overflow: hidden; }

/* ---------- aparición al hacer scroll (sin cambios respecto a la v1) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2, .6, .2, 1), transform .9s cubic-bezier(.2, .6, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- móvil / tablet ---------- */
@media (max-width: 1019px) {
  :root { --bar-h: 64px; }
  .brand { width: 124px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--cal); border-bottom: 1px solid var(--ocre); padding: .5rem var(--gut) 1.75rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 1.1rem 0; font: 500 1.45rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--nogal); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--teja-text); }
  .site-header__actions { margin-left: auto; }
  .site-header .btn--sm { padding: .8em 1.1em; font-size: .7rem; }
  .hero__logo { width: 170px; }
  .brick-band { height: 32px; background-size: 256px 64px; }
}
@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .eyebrow { font-size: .68rem; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts dt { font-size: .6rem; letter-spacing: .1em; }
  .finder { padding: 1.25rem 1.1rem 1.15rem; }
  .hero__content .display { font-size: 2.2rem; }
  .cta--brick, .site-footer { background-size: auto, 256px 64px, auto; }
}

/* ---------- mapa ilustrado «Alange a pie» ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.walkmap__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.walkmap__filter { padding: .6em 1.1em; font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--nogal); background: transparent; border: 1px solid var(--ocre); border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s; }
.walkmap__filter[aria-pressed="true"] { background: var(--nogal); color: var(--cal); border-color: var(--nogal); }
.walkmap__scroll { overflow-x: auto; padding: 8px; background: var(--paper); border: 1px solid var(--ocre); border-radius: 2px; box-shadow: 0 1px 2px rgba(58, 42, 31, .12); overscroll-behavior-x: contain; }
.walkmap__stage { position: relative; min-width: 900px; }
.walkmap__stage picture, .walkmap__stage img { display: block; width: 100%; height: auto; }
.walkmap__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-route { pointer-events: none; }
.wm-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s ease, opacity .25s; }
.wm-route .halo { stroke: var(--paper); stroke-width: 11; }
.wm-route .line { stroke: var(--reservar); stroke-width: 5.5; }
.wm-route.is-active path { stroke-dashoffset: 0; opacity: 1; }
.wm-route.is-active .halo { opacity: .9; }
[data-mark] { cursor: pointer; }
[data-mark].is-dim { opacity: .25; pointer-events: none; }
.wm-hit { fill: transparent; }
.wm-mark circle { fill: var(--paper); stroke: var(--teja-text); stroke-width: 3; transition: fill .2s; }
.wm-mark text { font: 600 17px var(--sans); fill: var(--nogal); pointer-events: none; }
.wm-mark .wm-label, .wm-origin .wm-label { font: 500 26px var(--serif); fill: var(--nogal); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.wm-mark .wm-label { opacity: 0; transition: opacity .2s; }
[data-mark].is-active .wm-mark circle { transform: scale(1.3); transform-box: fill-box; transform-origin: center; }
[data-mark].is-active circle { fill: var(--reservar); stroke: var(--paper); }
[data-mark].is-active .wm-mark text:not(.wm-label) { fill: #fff; }
[data-mark].is-active .wm-label { opacity: 1; }
.wm-origin { pointer-events: none; }
.wm-origin .pin { fill: var(--ladrillo); stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; }
.wm-origin .house { fill: var(--paper); }
.walkmap__attr { margin-top: .9rem; font: 500 .8rem/1.5 var(--sans); color: var(--piedra); }
.walkmap__attr a { color: var(--teja-text); }
.walkmap__list { display: grid; gap: .75rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .walkmap__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .walkmap__list { grid-template-columns: repeat(3, 1fr); } }
.walkmap__list li[hidden] { display: none; }
.walkmap__item { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; width: 100%; text-align: left; padding: .9rem 1.1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ocre); border-radius: 2px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.walkmap__item:hover, .walkmap__item.is-active { border-color: var(--reservar); background: #fff; }
.walkmap__item[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--reservar); }
.walkmap__num { grid-row: 1 / span 3; align-self: center; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--teja-text); border-radius: 50%; font: 600 .8rem/1 var(--sans); color: var(--teja-text); }
.walkmap__item.is-active .walkmap__num { background: var(--reservar); border-color: var(--reservar); color: #fff; }
.walkmap__name { font: 500 1.1rem/1.3 var(--serif); color: var(--nogal); }
.walkmap__cat { font: 600 .64rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--piedra); }
.walkmap__time { font: 500 .95rem/1.3 var(--text); color: var(--teja-text); }
@media (prefers-reduced-motion: reduce) { .wm-route path, .wm-mark circle { transition: none !important; } }

/* ---------- calendario propio de rango y campos del buscador ---------- */
.is-datefield { cursor: pointer; }
.finder__date { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 2.6rem; padding: .3rem 0 .4rem; font: 500 1.15rem/1.3 var(--serif); color: var(--nogal); text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--ocre); border-radius: 0; cursor: pointer; transition: border-color .2s; }
.finder__date .ico { width: 1.1rem; height: 1.1rem; color: var(--teja-text); }
.finder__date-val.is-empty { color: var(--piedra); }
.finder__date:hover, .finder__date.is-active { border-bottom-color: var(--reservar); }
.finder__date[aria-invalid] { border-bottom: 2px solid #A3281A; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: .3rem; min-height: 2.6rem; padding: .15rem 0 .2rem; border-bottom: 1px solid var(--ocre); }
.stepper__val { flex: 1; min-width: 0; text-align: center; color: var(--nogal); white-space: nowrap; }
.stepper__n { font: 500 1.4rem/1 var(--serif); } /* solo el número; la unidad la da la etiqueta de arriba y, para lectores de pantalla, el texto .visually-hidden */
.stepper__btn { position: relative; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; font: 500 1.2rem/1 var(--sans); color: var(--teja-text); background: transparent; border: 1px solid rgba(184, 138, 68, .55); border-radius: 50%; cursor: pointer; transition: background-color .2s, color .2s; }
.stepper__btn:hover:not(:disabled) { background: var(--nogal); color: var(--cal); border-color: var(--nogal); }
.stepper__btn:disabled { opacity: .35; cursor: default; }
.stepper__btn::after { content: ""; position: absolute; inset: -6px; } /* zona táctil de 44 px aunque el botón se vea de 32 px */

.cal { position: absolute; z-index: 120; width: min(720px, calc(100vw - 24px)); padding: 1.5rem 1.75rem 1.1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ocre); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(184, 138, 68, .45), 0 16px 36px -20px rgba(58, 42, 31, .3); opacity: 0; transform: translateY(4px); }
.cal.is-in { opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.cal[hidden] { display: none; }
.cal__head { display: none; }
.cal__hint { margin-bottom: 1rem; font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--teja-text); }
.cal__body { position: relative; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.cal__nav { position: absolute; top: -.15rem; z-index: 1; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--nogal); background: var(--paper); border: 1px solid var(--ocre); border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s; }
.cal__nav--prev { left: 0; }
.cal__nav--next { right: 0; }
.cal__nav:hover:not(:disabled) { background: var(--nogal); color: var(--cal); border-color: var(--nogal); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__mname { display: flex; align-items: center; justify-content: center; height: 2rem; margin-bottom: .8rem; font: 500 1.25rem/1.2 var(--serif); text-transform: capitalize; color: var(--nogal); }
.cal [role="row"] { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow span { padding: .35rem 0 .55rem; font: 600 .6rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--piedra); }
.cal__day { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; height: 42px; padding: 0; font: 500 1rem/1 var(--text); font-variant-numeric: lining-nums; color: var(--ink); background: transparent; border: 0; border-radius: 0; cursor: pointer; }
.cal__day::before { content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; }
.cal__day:hover:not(.is-off):not(.is-start):not(.is-end)::before { border: 1px solid var(--ocre); }
.cal__day:focus-visible { outline: 2px solid var(--terra); outline-offset: -3px; }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 14px; height: 1px; margin-left: -7px; background: var(--ocre); }
.cal__day.is-in { background: #F0DCCB; }
.cal__day.is-pre { background: #F6E8DA; }
.cal__day.is-start, .cal__day.is-end { color: var(--cal); }
.cal__day.is-start::before, .cal__day.is-end::before { background: var(--ladrillo); }
.cal__day.is-today.is-start::after, .cal__day.is-today.is-end::after { background: var(--cal); }
.cal__day.is-start.has-range { background: linear-gradient(90deg, transparent 50%, #F0DCCB 50%); }
.cal__day.is-end.has-range { background: linear-gradient(90deg, #F0DCCB 50%, transparent 50%); }
.cal__day.is-pre-end { background: linear-gradient(90deg, #F6E8DA 50%, transparent 50%); }
.cal__day.is-pre-end:not(.is-off)::before { border: 1px solid var(--ocre); }
.cal__day.is-off { color: rgba(103, 95, 85, .42); cursor: default; }
.cal__note { margin-top: 1rem; font: 500 .78rem/1.4 var(--sans); text-align: center; color: var(--piedra); }
.cal__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.cal__sum { font: 500 1rem/1.3 var(--serif); color: var(--nogal); }
.cal__clear { padding: .5rem 0; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teja-text); background: none; border: 0; border-bottom: 1px solid var(--ocre); cursor: pointer; }
.cal__done { display: none; }
html.cal-open { overflow: hidden; }
@media (max-width: 700px) {
  .cal { position: fixed; inset: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; width: auto; padding: 0; border: 0; box-shadow: none; opacity: 1; transform: translateY(100%); }
  .cal.is-in { transform: none; transition: transform .28s cubic-bezier(.2, .6, .2, 1); }
  .cal__head { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem .5rem 1.25rem; border-bottom: 1px solid var(--ocre); }
  .cal__title { font: 500 1.35rem/1.2 var(--serif); color: var(--nogal); }
  .cal__x { display: grid; place-items: center; width: 44px; height: 44px; color: var(--nogal); background: none; border: 0; cursor: pointer; }
  .cal__hint { margin: .9rem 0 .25rem; }
  .cal__body { flex: 1; min-height: 0; padding: 0 .75rem; overflow-y: auto; overscroll-behavior: contain; }
  .cal__nav { display: none; }
  .cal__months { display: block; }
  .cal__month { padding: 1.1rem 0 .5rem; }
  .cal__day { height: 46px; }
  .cal__note { margin: 0; padding: .6rem 1.25rem 0; }
  .cal__foot { display: grid; grid-template-columns: 1fr auto; gap: .5rem .9rem; margin: 0; padding: .7rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ocre); }
  .cal__sum { grid-column: 1 / -1; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal__clear { justify-self: start; min-height: 44px; padding: 0; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--ocre); text-underline-offset: .45em; }
  .cal__done { display: inline-flex; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .cal, .cal.is-in { transition: none; } }

/* ajustes del buscador con campos propios */
@media (max-width: 759px) {
  .finder { box-shadow: none; } /* un solo marco en móvil (sin el filete interior) */
  .finder__title { display: none; } /* en móvil el buscador va sin título; la etiqueta del formulario sigue por aria-labelledby */
  .finder__nights { grid-column: 1 / -1; padding-bottom: 0; }
  .finder__nights:empty { display: none; }
}
@media (max-width: 480px) {
  .finder__date { gap: .4rem; font-size: 1rem; }
  .finder__date .ico { display: none; }
}
@media (min-width: 760px) {
  .finder--compact .finder__grid { grid-template-columns: 1.1fr 1.1fr 1fr 1fr auto; }
  .finder--compact .stepper { gap: .3rem; }
  .finder--compact .stepper__n { font-size: 1.25rem; }
}

/* grupos de habitaciones como en Guesty */
.cat__text .lead + .lead { margin-top: .4rem; }
.cat__cap { margin-top: 1rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--piedra); }
.ficha-head .cat__cap + p { margin-top: 1.75rem; }
.lead--next { margin-top: .9rem; }
@media (min-width: 960px) {
  .room-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
}
.ficha-all { margin-top: 1.75rem; }
.group-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: 1.5rem; }
.group-nav a { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teja-text); text-decoration: none; padding-bottom: .35rem; border-bottom: 1px solid var(--ocre); }
.group-nav a:hover { color: var(--nogal); }
.breadcrumb { flex-wrap: wrap; gap: .4rem .7rem; }
.breadcrumb a, .breadcrumb span { white-space: nowrap; }

/* ---------- vídeo «Conoce el hotel» ---------- */
.eyebrow--center { justify-content: center; margin-bottom: 1.5rem; }
.eyebrow--center::after { content: ""; width: 2rem; height: 1px; background: var(--ocre); }
.tour-wrap { max-width: calc(980px + var(--gut) * 2); }
.tour { margin: 0; }
.tour__frame { padding: 8px; background: var(--paper); border: 1px solid var(--ocre); border-radius: 2px; box-shadow: 0 1px 2px rgba(58, 42, 31, .12); }
.tour__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #2a1f16; object-fit: contain; }
.tour__cap { margin-top: 1rem; font: 400 .92rem/1.5 var(--text); text-align: center; color: var(--piedra); }

/* ---------- textos legales ---------- */
.legal { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--space); }
.legal__wrap { max-width: calc(760px + var(--gut) * 2); }
.legal__head { margin-bottom: 2rem; }
.legal__head .display { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.legal__toc { margin-bottom: 2.75rem; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--ocre); border-radius: 2px; }
.legal__toc-title { margin-bottom: .7rem; font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teja-text); }
.legal__toc ol { columns: 2 16rem; column-gap: 2rem; padding-left: 1.2rem; font-size: .95rem; line-height: 1.5; }
.legal__toc li { break-inside: avoid; padding: .15rem 0; }
.legal__toc a { color: var(--nogal); text-decoration-color: var(--ocre); }
.legal__body { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.legal__body h2 { margin: 2.75rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--ocre); font: 500 clamp(1.45rem, 2.6vw, 1.85rem)/1.25 var(--serif); color: var(--nogal); scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal__body h3 { margin: 1.9rem 0 .5rem; font: 500 1.2rem/1.3 var(--serif); color: var(--nogal); }
.legal__body p { margin: 0 0 1.1rem; }
.legal__body ul { margin: 0 0 1.25rem; padding-left: 1.35rem; list-style: disc; }
.legal__body ul ul { margin: .5rem 0 .25rem; list-style: circle; }
.legal__body li { margin: .45rem 0; padding-left: .25rem; }
.legal__body li::marker { color: var(--ocre); }
.legal__body a { color: var(--teja-text); text-decoration: underline; text-decoration-color: var(--ocre); text-underline-offset: .2em; }
.legal__body a:hover { color: var(--nogal); }
.legal__body strong { font-weight: 600; color: var(--ink); }
.legal__updated { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font: 500 .9rem/1.5 var(--sans); color: var(--piedra); }
/* marca de dato pendiente de resolver: visible y fea a propósito (solo en las páginas legales) */
mark.pendiente { padding: .1em .35em; background: #FFE600; color: #B00020; font: 700 .85em/1.5 ui-monospace, Menlo, Consolas, monospace; outline: 2px dashed #B00020; outline-offset: 1px; }
@media (max-width: 480px) { .legal__toc { padding: 1rem 1.1rem; } .legal__body { font-size: 1.0625rem; } }
.legal__toc { max-width: 68ch; }
@media (max-width: 480px) {
  .site-footer__legallinks { flex-direction: column; gap: .35rem; }
  .site-footer__legallinks li + li::before { content: none; }
}

/* retardo escalonado de las tarjetas (sin estilos en línea, por la CSP) */
.rd1 { --d: 90ms; }
.rd2 { --d: 180ms; }
.rd3 { --d: 270ms; }

/* Texto de ayuda del buscador (grupos y habitaciones): oculto hasta que hace falta */
.finder__help { margin-top: .9rem; font: 400 .88rem/1.45 var(--text); color: var(--piedra); }
.finder__help a { color: var(--teja-text); text-decoration: underline; text-underline-offset: 2px; }
.finder__help a:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

/* 1024-1279 px: cinco campos en una fila; botón y huecos algo más ceñidos para que los steppers no se corten */
@media (min-width: 1024px) and (max-width: 1279px) {
  .finder__grid { column-gap: 1rem; }
  .finder__submit { font-size: .7rem; letter-spacing: .12em; padding-inline: 1rem; }
}

/* buscador compacto (Habitaciones): su caja mide 900 px como máximo, así que va siempre ceñido */
@media (min-width: 1024px) {
  .finder--compact .finder__grid { column-gap: 1rem; }
  .finder--compact .finder__submit { font-size: .7rem; letter-spacing: .12em; padding-inline: 1rem; }
}

/* Tablet (760-1023 px): cuatro campos en una fila y el botón en su propia fila */
@media (min-width: 760px) and (max-width: 1023px) {
  .finder__grid, .finder--compact .finder__grid { grid-template-columns: 1.3fr 1.3fr 1fr 1fr; }
  .finder__submit { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .finder__nights { grid-column: 1 / -1; grid-row: 3; }
}

/* ---------- hero: cabe entero en la PRIMERA pantalla visible (iPhone con las barras de Safari, Android, apaisado) ----------
   Unidades svh (viewport pequeño) con respaldo vh; sin height fijo: si el contenido es más alto, el hero crece (min-height). */
@media (max-width: 700px) {
  .hero__inner { gap: clamp(.75rem, 3vh, 1.75rem); gap: clamp(.75rem, 3svh, 1.75rem); padding-top: calc(var(--header-h) + clamp(.5rem, 4vh, 2.5rem)); padding-top: calc(var(--header-h) + clamp(.5rem, 4svh, 2.5rem)); padding-bottom: calc(clamp(.75rem, 2.5vh, 1.5rem) + env(safe-area-inset-bottom)); padding-bottom: calc(clamp(.75rem, 2.5svh, 1.5rem) + env(safe-area-inset-bottom)); }
  .hero__logo { width: clamp(120px, 21vh, 170px); width: clamp(120px, 21svh, 170px); margin-bottom: clamp(.4rem, 2.2vh, 1.5rem); margin-bottom: clamp(.4rem, 2.2svh, 1.5rem); }
  .hero__content .display { font-size: clamp(1.7rem, calc(.9rem + 4.4vh), 2.4rem); font-size: clamp(1.7rem, calc(.9rem + 4.4svh), 2.4rem); line-height: 1.08; margin-bottom: .6rem; }
  .hero__content .eyebrow { margin-bottom: .6rem; }
  .hero__lead { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
  .hero__cta { display: none; } /* el buscador ya lleva «Comprobar disponibilidad» y la cabecera, «Reservar» */
  .finder { padding: .9rem 1rem 1rem; }
  .finder__title { margin-bottom: .6rem; }
  .finder__grid { gap: .6rem 1rem; }
  .finder__field { gap: .2rem; }
  .finder__date, .stepper { min-height: 44px; padding-block: .15rem; }
  .finder__submit { min-height: 48px; }
  .finder__error { margin-top: .6rem; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero__logo { width: clamp(110px, 19vh, 150px); width: clamp(110px, 19svh, 150px); }
  .hero__lead { font-size: .95rem; }
}
@media (max-width: 700px) and (max-height: 620px) { .hero__content .eyebrow { display: none; } }
@media (max-width: 700px) and (max-height: 600px) { .hero__lead { display: none; } }
/* apaisado y pantallas muy bajas: hero compacto (puede hacer scroll, pero título y buscador son legibles y no se pisan con la cabecera) */
@media (max-height: 450px) {
  .hero__inner { gap: .75rem; padding-top: calc(var(--header-h) + .75rem); padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  .hero__logo, .hero__lead, .hero__cta, .hero__content .eyebrow { display: none; }
  .hero__content .display { font-size: clamp(1.5rem, 7vh, 2.1rem); font-size: clamp(1.5rem, 7svh, 2.1rem); margin-bottom: 0; }
  .finder { padding: .7rem 1rem .8rem; }
  .finder__title { margin-bottom: .45rem; }
}
@media (max-height: 450px) {
  .finder__grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: .5rem 1rem; }
  .finder__nights { grid-column: 1 / -1; grid-row: auto; }
  .finder__submit { grid-column: 1 / -1; grid-row: auto; width: 100%; min-height: 44px; }
  .finder__date, .stepper { min-height: 44px; }
}
@media (max-height: 450px) and (min-width: 760px) { .finder__title { display: none; } }
@media (max-width: 380px) { .finder__submit { letter-spacing: .12em; padding-inline: .8em; } }
/* escritorio de poca altura (portátiles de 768 px): el hero no pasa de la pantalla */
@media (min-width: 701px) and (max-height: 820px) { .hero__inner { padding-top: calc(var(--header-h) + 1.25rem); gap: 1.5rem; } .hero__logo { margin-bottom: 1rem; } .hero__lead { margin-bottom: 1.2rem; } }
