/* Web pública de Malzapatu. Móvil primero, sin dependencias ni compilación. */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1d2624;
  --ink-soft: #4a5552;
  --paper: #f1eee6;
  --paper-2: #e8e3d7;
  --white: #fff;
  --sea: #24494d;
  --sea-2: #2f5d62;
  --sand: #c9b79c;
  --line: #d8d1c2;
  --focus: #e07b39;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 64px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1180px;
}
@media (min-width: 960px) { :root { --top-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 72px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 1.1rem; }
.eyebrow--dark { color: var(--sea-2); }

/* Cabecera fija: transparente sobre el héroe, sólida al bajar */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: 1rem; padding: 0 var(--gutter); color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.has-hero .top:not(.is-solid) { background: transparent; color: var(--white); border-color: transparent; }
.top__brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.top__name { font: 400 1.35rem/1 var(--serif); }
.top__place { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: .3rem; }
.top__nav { display: flex; gap: .2rem; }
.top__nav a { text-decoration: none; font-weight: 500; padding: .6rem .9rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.top__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top__menu { display: none; }

@media (max-width: 759px) {
  .top__menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
  .top__burger, .top__burger::before, .top__burger::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .top__burger::before, .top__burger::after { content: ""; position: absolute; left: 0; }
  .top__burger::before { top: -7px; } .top__burger::after { top: 7px; }
  .top__menu[aria-expanded="true"] .top__burger { background: transparent; }
  .top__menu[aria-expanded="true"] .top__burger::before { transform: translateY(7px) rotate(45deg); }
  .top__menu[aria-expanded="true"] .top__burger::after { transform: translateY(-7px) rotate(-45deg); }
  .top__nav { position: fixed; inset: var(--top-h) 0 auto; flex-direction: column; padding: .5rem var(--gutter) 1.2rem; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .top__nav.is-open { display: flex; }
  .top__nav a { font: 400 1.4rem var(--serif); padding: .7rem 0; }
}

/* Héroe a pantalla completa */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: var(--white); background: radial-gradient(120% 90% at 20% 10%, #3c6a6c 0%, var(--sea) 45%, #142a2c 100%); overflow: hidden; padding: calc(var(--top-h) + 2rem) var(--gutter) 2rem; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,20,.45) 0%, rgba(10,20,20,.15) 40%, rgba(10,20,20,.55) 100%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__pending { position: absolute; right: var(--gutter); top: calc(var(--top-h) + .5rem); margin: 0; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; opacity: .55; }
.hero__inner { position: relative; width: 100%; max-width: 860px; margin: auto auto 0; text-align: center; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__title { font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 300; letter-spacing: -.025em; text-wrap: balance; }
.hero--long .hero__title { font-size: clamp(2.6rem, 7.5vw, 5.8rem); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 34rem; margin: 1.4rem auto 0; opacity: .92; text-wrap: pretty; }
.hero__price { font: 300 clamp(1.4rem, 3.4vw, 2.2rem)/1.2 var(--serif); margin: 1.4rem 0 0; }
.hero__price strong { font-weight: 500; }
.hero .pending { color: var(--white); border-color: rgba(255,255,255,.5); max-width: 34rem; margin: 1.6rem auto 0; }
.hero__search { position: relative; width: 100%; max-width: 760px; margin: auto auto 0; padding-top: 2.5rem; }
.hero__search > .search:not(.is-docked) { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Buscador */
.search { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); color: var(--ink); }
.search__field { display: flex; flex-direction: column; justify-content: center; background: var(--white); padding: .7rem 1.1rem; min-width: 0; cursor: pointer; }
.search__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.search input { font: 500 1.05rem var(--sans); color: var(--ink); border: 0; padding: .2rem 0; background: transparent; width: 100%; min-width: 0; min-height: 32px; cursor: pointer; }
.search input:focus { outline: none; }
.search__field:focus-within { box-shadow: inset 0 0 0 3px var(--focus); }
.search__btn { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; border: 0; background: var(--ink); color: var(--white); font: 600 1rem var(--sans); cursor: pointer; transition: background .2s; }
.search__btn:hover { background: var(--sea-2); }
@media (min-width: 640px) {
  .search { grid-template-columns: 1fr 1fr auto; border-radius: 999px; padding: 6px; gap: 0; background: var(--white); }
  .search__field { border-radius: 999px; padding: .55rem 1.6rem; }
  .search__field + .search__field { border-left: 1px solid var(--line); }
  .search__btn { grid-column: auto; border-radius: 999px; padding: 0 1.8rem; }
}

/* Buscador acoplado: al bajar se fija arriba, junto al menú */
.search.is-docked { position: fixed; z-index: 60; left: 0; right: 0; top: var(--top-h); border-radius: 0; box-shadow: 0 10px 24px -16px rgba(0,0,0,.35); border-bottom: 1px solid var(--line); animation: dock .25s ease-out both; grid-template-columns: 1fr 1fr 52px; gap: 1px; padding: 0; background: var(--line); }
.search.is-docked .search__field { padding: .4rem .9rem; border-radius: 0; }
.search.is-docked .search__label { font-size: .64rem; }
.search.is-docked input { font-size: .95rem; min-height: 26px; }
.search.is-docked .search__btn { grid-column: auto; min-height: 52px; border-radius: 0; padding: 0; }
.search.is-docked .search__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes dock { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (min-width: 1180px) {
  /* En pantalla ancha cabe en la misma barra que el menú, entre la marca y los enlaces */
  .search.is-docked { top: calc((var(--top-h) - 54px) / 2); left: 240px; right: auto; width: min(500px, calc(100vw - 760px)); transform: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 0; background: var(--white); grid-template-columns: 1fr 1fr 46px; box-shadow: 0 6px 20px -12px rgba(0,0,0,.3); animation: dock .25s ease-out both; }
  .search.is-docked .search__field { border-radius: 999px; padding: .15rem 1.1rem; }
  .search.is-docked .search__field + .search__field { border-left: 1px solid var(--line); }
  .search.is-docked .search__btn { min-height: 44px; border-radius: 999px; }
}

/* Secciones */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.section--alt { max-width: none; background: var(--paper-2); }
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 300; }
.section__head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; margin: 1rem 0 0; }
.band { padding: 0 var(--gutter); }
.band .pending { max-width: var(--max); margin: 0 auto; min-height: 50vh; display: grid; place-items: center; text-align: center; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 3rem; }
.facts div { background: var(--paper); padding: 1.4rem 1rem; text-align: center; }
.facts dd { font: 300 2.6rem/1 var(--serif); margin: 0; order: -1; }
.facts dt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }
.facts div { display: flex; flex-direction: column; }
@media (max-width: 559px) { .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.amenities { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 2rem; }
.amenities li { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; }

/* Bloques a dos columnas */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; align-items: start; } .split--media { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.split__title { font-size: 1.5rem; margin: 0 0 1rem; }
.split__photo { margin: 0; }
.split__photo img { width: 100%; height: auto; display: block; border-radius: 4px; }
.rooms { list-style: none; padding: 0; margin: 0; }
.rooms li { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.rooms span { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: .95rem; margin: 1rem 0 0; }

/* Galería a sangre */
.gallery { display: grid; gap: 6px; padding: 0 6px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; grid-auto-flow: dense; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 26vw; } }
.gallery__item { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
@media (min-width: 640px) { .gallery__item--tall { grid-row: span 2; } .gallery__item:first-child { grid-column: span 2; } }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
@media (min-width: 640px) { .gallery__item img { aspect-ratio: auto; } }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .8rem; color: var(--white); font-size: .9rem; letter-spacing: .04em; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

.times { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.times div { background: var(--paper); padding: 1.3rem 1.4rem; }
.times dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.times dd { margin: .3rem 0 0; font: 300 1.9rem/1.1 var(--serif); }
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.distances { margin: 1.5rem 0 0; }
.distances div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.distances dt { color: var(--ink); }
.distances dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.pending { border: 1px dashed var(--sand); color: var(--ink-soft); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 1.2rem; font-size: .95rem; }

/* Calendario público */
.cal__tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal__nav { display: flex; gap: .6rem; }
.cal__views { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; }
.cal__view { min-height: 42px; display: inline-flex; align-items: center; padding: 0 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.cal__view.is-active { background: var(--ink); color: var(--white); }
.cal__view:not(.is-active):hover { background: var(--white); }
.cal__jumps { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 1.8rem; padding: 0 var(--gutter) .2rem; }
.cal__jumps::-webkit-scrollbar { display: none; }
.cal__jumps a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink); font-size: .9rem; text-transform: capitalize; white-space: nowrap; }
.cal__jumps a:hover { border-color: var(--ink); }
.cal__jumps a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (min-width: 1000px) { .cal__jumps { justify-content: space-between; margin-left: 0; margin-right: 0; padding: 0; } .cal__jumps a { padding: 0 .75rem; font-size: .85rem; } }
.cal__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); display: inline-grid; place-items: center; text-decoration: none; font-size: 1.1rem; transition: background .2s, color .2s; }
a.cal__arrow:hover { background: var(--ink); color: var(--white); }
span.cal__arrow { border-color: transparent; }
.cal__months { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .cal__months { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.cal__month h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); padding-bottom: .4rem; }
.cal__day { aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; border-radius: 50%; font: 500 1rem var(--sans); color: var(--ink); background: var(--white); border: 1px solid transparent; }
button.cal__day { cursor: pointer; transition: border-color .15s, background .15s; }
button.cal__day:hover { border-color: var(--ink); }
.cal__day--past { background: transparent; color: #a19a8c; }
.cal__day--busy { background: transparent; color: #8d8679; text-decoration: line-through; }
.cal__day.is-picked { background: var(--ink); color: var(--white); text-decoration: none; }
.cal__day.is-range { background: var(--sand); color: var(--ink); text-decoration: none; }
.cal__legend { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 1.5rem; font-size: .9rem; color: var(--ink-soft); }
.cal__legend li { display: flex; align-items: center; gap: .5rem; }
.cal__sw { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.cal__sw--busy { background: transparent; border-style: dashed; }

/* Pie */
.foot { background: var(--ink); color: #d9d4c9; padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 1.5rem; font-size: .95rem; }
.foot__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr 1fr; }
.foot__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot__inner { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } .foot__brand { grid-column: auto; } }
.foot p { margin: 0 0 .3rem; }
.foot p.foot__name { font: 400 2rem var(--serif); color: var(--white); margin-bottom: .6rem; }
.foot__brand p:not(.foot__name) { max-width: 30ch; }
.foot__cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 1.2rem; padding: 0 1.3rem; border: 1px solid #6d6a62; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; transition: background .2s, border-color .2s; }
.foot__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.foot__title { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #a8b8b2; margin: 0 0 1rem; }
.foot__title--gap { margin-top: 1.8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin: 0 0 .25rem; }
.foot__col a { display: inline-block; padding: .35rem 0; color: #ece7dc; text-decoration: none; }
.foot__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .2em; }
.foot__muted, .foot__muted li { color: #a9a396; }
.foot__bottom { max-width: var(--max); margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding-top: 1.4rem; border-top: 1px solid #39423f; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; font-size: .85rem; color: #a9a396; }
.foot__bottom ul { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.foot__bottom a { color: #d9d4c9; text-decoration: none; display: inline-block; padding: .3rem 0; }
.foot__bottom a:hover { color: var(--white); text-decoration: underline; }
.foot .pending { color: #d9d4c9; border-color: #6d6a62; }

/* Secciones centradas, como en una revista */
.section--center .section__head { margin-left: auto; margin-right: auto; text-align: center; }
.section--center .facts { max-width: 860px; margin-left: auto; margin-right: auto; }

/* Cuadrícula de iconos */
.features { list-style: none; padding: 0; margin: clamp(3rem, 7vw, 5rem) auto 0; display: grid; gap: 2.5rem 3rem; max-width: 1080px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 4rem; } }
.features li { display: grid; grid-template-columns: 48px 1fr; gap: 1.3rem; align-items: start; }
.features h3 { font-size: 1.45rem; margin: .35rem 0 .6rem; }
.features p { margin: 0; color: var(--ink-soft); }
.icon { color: var(--ink); flex: none; }

/* Bandas a todo el ancho con parallax */
.parallax { position: relative; overflow: hidden; min-height: 75vh; min-height: 75svh; display: grid; place-items: center; padding: clamp(5rem, 12vw, 9rem) var(--gutter); color: var(--white); text-align: center; background: var(--sea); }
.parallax__media { position: absolute; left: 0; right: 0; top: -15%; height: 130%; will-change: transform; }
.parallax__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.parallax__shade { position: absolute; inset: 0; background: rgba(12, 22, 22, .45); }
.parallax__inner { position: relative; max-width: 900px; }
.parallax__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .parallax__media { top: 0; height: 100%; transform: none !important; } }

/* Opiniones */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font: 400 1.25rem/1.45 var(--serif); }
.quote figcaption { margin-top: 1rem; font-size: .85rem; letter-spacing: .06em; color: var(--ink-soft); }
.quote--big p { font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.2; font-weight: 400; text-wrap: balance; }
.quote--big figcaption { color: rgba(255,255,255,.85); font-size: .95rem; }
.quotes { display: grid; gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes .quote { background: var(--white); padding: 2rem 1.8rem; border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; }
.score { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 2.5rem; color: var(--ink-soft); }
.score strong { font: 300 3rem/1 var(--serif); color: var(--ink); }
.more { text-align: center; margin: 2.5rem 0 0; }
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.8rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; transition: background .2s; }
.cta:hover { background: var(--sea-2); }

/* Estancias: foto y texto alternos */
.story { display: grid; gap: 2rem; align-items: center; }
.story + .story { margin-top: clamp(4rem, 9vw, 7rem); }
@media (min-width: 900px) { .story { grid-template-columns: 1.15fr 1fr; gap: 5rem; } .story--flip .story__photo { order: 2; } }
.story__photo { margin: 0; }
.story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 4px; }
.story__text h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 300; margin-bottom: 1.2rem; }
.story__text > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }
.times dd.times__small { font: 400 1rem/1.5 var(--sans); }

/* Estrellas de las opiniones */
.stars { position: relative; display: inline-block; width: max-content; align-self: flex-start; line-height: 0; color: #c9c1b1; }
.stars__row { display: inline-flex; gap: 3px; white-space: nowrap; }
.stars__row svg { fill: currentColor; flex: none; }
.stars__row--fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #b8862b; }
.stars--big svg { width: 26px; height: 26px; }
.quote .stars { margin-bottom: 1rem; }
.quote--big .stars { align-self: auto; color: rgba(255,255,255,.45); margin-bottom: 1.4rem; }
.quote--big .stars__row--fill { color: #f2c46d; }
@media (max-width: 559px) { .score { flex-wrap: wrap; } }

/* Guía de Llanes: tarjetas de categorías */
.guide { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); text-align: left; }
@media (min-width: 640px) { .guide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guide { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 640px) { .guide__item--feature { grid-column: span 2; } }
.guide__item { background: var(--paper); }
.guide__item a { display: flex; flex-direction: column; gap: 1.1rem; height: 100%; padding: 1.8rem 1.6rem 2rem; text-decoration: none; color: inherit; transition: background .2s; }
.guide__item a:hover { background: var(--white); }
.guide__item a:hover .guide__name { text-decoration: underline; text-underline-offset: .2em; }
.guide__name { display: block; font: 400 1.35rem/1.2 var(--serif); }
.guide__desc { display: block; margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; }
.guide__item--feature a { position: relative; padding: 0; justify-content: flex-end; min-height: 320px; color: var(--white); overflow: hidden; }
.guide__item--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.guide__item--feature a:hover img { transform: scale(1.04); }
.guide__item--feature .guide__text { position: relative; padding: 4rem 1.8rem 1.8rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.guide__item--feature .guide__name { font-size: 1.9rem; }
.guide__item--feature .guide__desc { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.link { color: var(--ink); text-underline-offset: .25em; }
.back { text-align: center; margin: 3rem 0 0; }
.back a { color: var(--ink-soft); }

/* Lista de artículos */
.posts { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; text-align: left; }
.posts li { border-top: 1px solid var(--line); }
.posts a { display: block; padding: 1.6rem 0; text-decoration: none; color: inherit; }
.posts__cat { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-2); }
.posts__title { display: block; font: 400 1.7rem/1.2 var(--serif); margin: .5rem 0; }
.posts a:hover .posts__title { text-decoration: underline; text-underline-offset: .2em; }
.posts__desc { display: block; color: var(--ink-soft); }

/* Artículo */
.article { max-width: 720px; margin: 0 auto; padding: calc(var(--top-h) + 4rem) var(--gutter) 5rem; }
.article__head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 300; }
.article__head .eyebrow a { color: inherit; text-decoration: none; }
.article__date { color: var(--ink-soft); margin: 1rem 0 2.5rem; }
.article__body { font-size: 1.12rem; line-height: 1.7; }
.article__body h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }
.article__body a { color: var(--sea-2); }
.article__body img { max-width: 100%; height: auto; }
.article__stay { margin-top: 4rem; padding: 2.2rem; background: var(--paper-2); border-radius: 4px; }
.article__stay h2 { font-size: 1.7rem; margin-bottom: .6rem; }
.article__stay p { color: var(--ink-soft); margin: 0 0 1.4rem; }
@media (max-width: 639px) {
  .guide { grid-template-columns: 1fr 1fr; }
  .guide__item--feature { grid-column: 1 / -1; }
  .guide__item:not(.guide__item--feature) a { padding: 1.3rem 1.1rem 1.4rem; gap: .8rem; }
  .guide__item:not(.guide__item--feature) .guide__desc { display: none; }
  .guide__item:not(.guide__item--feature) .guide__name { font-size: 1.1rem; }
  .guide__item:not(.guide__item--feature) .icon { width: 38px; height: 38px; }
  .guide__item:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* Carrusel de fotos */
.carousel { position: relative; margin: 0 calc(var(--gutter) * -1); text-align: left; }
.carousel__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.carousel__slide { flex: 0 0 85%; scroll-snap-align: start; }
@media (min-width: 640px) { .carousel__slide { flex-basis: 60%; } }
@media (min-width: 1000px) { .carousel__slide { flex-basis: calc((100% - 24px) / 2.3); } }
.carousel figure { position: relative; margin: 0; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.carousel img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .8rem; color: var(--white); font-size: .9rem; letter-spacing: .04em; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s; }
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__count { font-variant-numeric: tabular-nums; color: var(--ink-soft); min-width: 4ch; text-align: center; }

.article__stay .search { box-shadow: none; border: 1px solid var(--line); }
.article__stay .article__more { margin: 1.2rem 0 0; font-size: .95rem; }
.article__more a { color: var(--ink); text-underline-offset: .2em; }
@media (max-width: 559px) { .article__stay { padding: 1.5rem 1.1rem; } }

.cal[aria-busy="true"] .cal__months { opacity: .5; transition: opacity .15s; }
/* Vista de 12 meses: más compacta */
.cal--year .cal__months { gap: 2rem 2.5rem; }
@media (min-width: 1000px) { .cal--year .cal__months { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .cal--year .cal__months { grid-template-columns: repeat(4, 1fr); } }
.cal--year .cal__month h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.cal--year .cal__grid { gap: 2px; }
.cal--year .cal__day { min-height: 34px; font-size: .9rem; }

/* Listas con icono (equipamiento, alrededores) */
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem 2rem; }
@media (min-width: 560px) { .icon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.icon-list li { display: grid; grid-template-columns: 30px 1fr; gap: .9rem; align-items: center; line-height: 1.4; }
.icon-list .icon { width: 30px; height: 30px; color: var(--sea-2); }

/* Reserva directa */
.hero__cta { margin: 1.6rem 0 0; }
.cta--light { background: var(--white); color: var(--ink); }
.cta--light:hover { background: var(--paper); color: var(--ink); }
.booking { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .booking { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.booking__intro h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 300; margin-bottom: 1rem; }
.booking__intro > p:not(.eyebrow) { color: var(--ink-soft); }
.booking__summary { margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.booking__summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.booking__summary dt { color: var(--ink-soft); }
.booking__summary dd { margin: 0; text-align: right; }
.booking__summary strong { font: 400 1.5rem/1 var(--serif); }
.booking__pay { margin: 1rem 0 0; font-weight: 600; }
.booking__form { display: grid; gap: 1.1rem; background: var(--white); padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 6px; }
.field { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: 400 1rem var(--sans); color: var(--ink); width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid #b7af9f; border-radius: 8px; background: var(--white); }
.field textarea { min-height: 0; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.booking__terms { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; font-size: .95rem; color: var(--ink-soft); }
.booking__terms summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 32px; display: flex; align-items: center; }
.booking__terms p { margin: .7rem 0 0; }
.pre { white-space: pre-line; }
.check-line { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.check-line input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--ink); }
.booking__submit { justify-content: center; border: 0; cursor: pointer; font: 600 1.05rem var(--sans); min-height: 56px; }
.booking__safe { margin: 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.booking__errors { margin: 0; padding: .9rem 1rem .9rem 2rem; background: #fbeaea; color: #8a1c1c; border-radius: 8px; }
.booking__notice { margin: 0; padding: .9rem 1rem; background: var(--paper-2); border-radius: 8px; }
.booking-page .booking__summary { margin-bottom: 1.5rem; }
.muted-small { font-size: .85rem; color: var(--ink-soft); }

/* Botón flotante de WhatsApp */
.wa { position: fixed; z-index: 70; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.wa:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(0,0,0,.5); }
.wa:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (min-width: 900px) { .wa { right: 28px; bottom: 28px; width: 62px; height: 62px; } }
.menu-open .wa { display: none; }
.wa--pending { background: #8d8679; }
.wa__pending { position: absolute; right: 66px; white-space: nowrap; background: var(--ink); color: var(--white); font-size: .8rem; padding: .35rem .6rem; border-radius: 6px; }

/* Vista de 12 meses en móvil y tableta: resumen compacto; se toca un mes para verlo en detalle */
.cal__minis { display: none; }
@media (max-width: 999px) {
  .cal--year .cal__months { display: none; }
  .cal--year .cal__minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 640px) and (max-width: 999px) { .cal--year .cal__minis { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cal__mini { display: block; padding: .7rem .6rem .75rem; border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s; }
.cal__mini:hover, .cal__mini:focus-visible { border-color: var(--ink); }
.cal__mini-year { display: block; font-size: .66rem; letter-spacing: .12em; color: var(--ink-soft); }
.cal__mini-title { display: block; font: 400 1rem/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__mini-free { display: block; font-size: .72rem; color: var(--sea-2); margin: .2rem 0 .5rem; font-weight: 600; }
.cal__mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__mini-grid i { aspect-ratio: 1; border-radius: 2px; }
.cal__mini-grid i.f { background: #6f9a8f; }
.cal__mini-grid i.b { background: #ddd6c8; }
.cal__mini-grid i.p { background: transparent; box-shadow: inset 0 0 0 1px #e4ded2; }
@media (max-width: 999px) {
  .cal--year .cal__sw { border-radius: 3px; border: 0; background: #6f9a8f; }
  .cal--year .cal__sw--busy { background: #ddd6c8; }
  .cal--year .cal__legend::after { content: "Toca un mes para elegir tus días"; flex-basis: 100%; font-size: .85rem; }
  .cal--year .cal__legend { flex-wrap: wrap; row-gap: .4rem; }
}
@media (max-width: 899px) { .wa__pending { display: none; } }

/* Check-in online */
.checkin__list { background: var(--white); border-radius: 6px; padding: clamp(1.2rem, 4vw, 1.8rem); margin-bottom: 2rem; }
.checkin__list h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.checkin__list ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.checkin__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.checkin__list small { color: var(--ink-soft); }
.checkin__done { margin-top: 1rem; }
.link-btn { background: none; border: 0; color: #8a1c1c; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 .4rem; }
.checkin__form h2 { font-size: 1.6rem; }
.checkin__group { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checkin__group legend { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sea-2); padding: 1rem 0 .6rem; border-top: 1px solid var(--line); width: 100%; }
.field__help { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
[hidden] { display: none !important; }

/* Mapa de la zona */
.map { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.map__canvas { width: 100%; height: clamp(300px, 45vw, 460px); border-radius: 6px; overflow: hidden; background: var(--paper-2); position: relative; z-index: 0; }
.map__fallback { padding: 1.5rem; }
.map figcaption { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ink-soft); }
.map figcaption span { flex: 1 1 320px; }
.cta--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); justify-content: center; text-align: center; padding-top: .6rem; padding-bottom: .6rem; }
.cta--ghost:hover { background: var(--ink); color: var(--white); }

/* Aviso de no fumar */
.no-smoking { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 auto 2.5rem; max-width: 640px; padding: 1rem 1.3rem; border: 2px solid #8a1c1c; border-radius: 10px; color: #8a1c1c; background: #fbeaea; font-size: 1.1rem; text-align: left; }
.no-smoking svg { flex: none; }
.no-smoking--compact { margin: 0; justify-content: flex-start; font-size: 1rem; padding: .8rem 1rem; }
.foot { padding-bottom: 6.5rem; }                         /* sitio para el botón flotante de WhatsApp */
.foot__cta { border-radius: 14px; padding: .7rem 1.3rem; line-height: 1.35; }
.foot__col a[href^="https://wa.me"] { white-space: nowrap; }
@media (max-width: 899px) { .foot__inner > .foot__col:last-child { grid-column: 1 / -1; } .foot .pending { max-width: 360px; } }

@media (min-width: 560px) { .field-row--street { grid-template-columns: 1fr 7rem; } }
.field input.field__readonly { background: var(--paper); color: var(--ink-soft); }
.whatsapp-only__pending { max-width: 520px; margin: 2rem auto 0; }
.article__body table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.article__body th, .article__body td { text-align: left; vertical-align: top; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.article__body th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.article__body td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
