/* =========================================================
   Edén los Abuelos · prototipo
   Tokens → variables de diseño de Divi 5. Breakpoints Divi: 768 / 981.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --olive-900: #2F3A23;
  --olive-700: #4A5A35;
  --sage: #7F8A62;
  --sand: #DCCDB0;
  --ivory: #F7F4EA;
  --paper: #FDFCF7;
  --mist: #ECEFE4;
  --ochre: #B8894E;
  --ochre-text: #8A6430;
  --ink: #262A1F;
  --muted: #5C6152;
  --success: #3D6A3A;
  --error: #A4483A;
  --line: rgba(47, 58, 35, .12);
  --veil: 26, 32, 19;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  --fs-h1: 40px;
  --fs-h1-sub: 26px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-eyebrow: 12.5px;

  --space-section: 64px;
  --gutter: 20px;
  --container: 1200px;
  --header-h: 64px;

  --r-card: 16px;
  --r-img: 14px;
  --r-input: 10px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 200ms;
}

@media (min-width: 768px) {
  :root { --space-section: 96px; --gutter: 32px; --fs-h2: 38px; --fs-h1: 52px; --fs-h1-sub: 30px; }
}
@media (min-width: 981px) {
  :root { --space-section: 120px; --fs-h1: 64px; --fs-h1-sub: 34px; --fs-h2: 46px; --fs-h3: 26px; --fs-body: 18px; --header-h: 80px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; line-height: 1.12; color: var(--olive-900); letter-spacing: -.005em; font-variant-numeric: lining-nums; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--olive-900); }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--olive-900); color: var(--ivory); border-radius: var(--r-input); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Encabezados que reciben el foco por script (CTA → #availability): sin anillo al hacer clic, sí con teclado. */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------- 3. Tipografía compartida ---------- */
.eyebrow { margin: 0 0 12px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre-text); }
.section-title { font-size: var(--fs-h2); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-intro { margin-top: 16px; color: var(--muted); }
.divider { width: 220px; margin: 28px 0; }

/* Fade-up solo en títulos de sección, una vez (main.js añade .is-in). */
@media (prefers-reduced-motion: no-preference) {
  .js .section-title { opacity: 0; transform: translateY(14px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
  .js .section-title.is-in { opacity: 1; transform: none; }
}

/* ---------- 4. Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font: 700 16px/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 52px; padding-inline: 28px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--olive-900); color: var(--ivory); }
.btn--primary:hover { background: var(--olive-700); }
.btn--secondary { background: var(--mist); color: var(--olive-900); }
.btn--secondary:hover { background: var(--sand); }
.btn--tertiary { border-color: var(--olive-900); color: var(--olive-900); background: transparent; }
.btn--tertiary:hover { background: var(--olive-900); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--olive-900); }
.btn--light:hover { background: var(--sand); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--olive-900); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.link-arrow span { transition: transform var(--t) var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--center { justify-content: center; }
.chip { padding: 6px 14px; border-radius: var(--r-pill); background: var(--sand); color: var(--ink); font-size: var(--fs-small); line-height: 1.4; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.card__title { font-size: var(--fs-h3); margin-bottom: 10px; }

/* ---------- 5. Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 234, .97); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__logo { display: block; margin-right: auto; border-radius: 6px; }
.header__logo img { height: 44px; width: auto; }
.header__menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.header__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--olive-900); border-radius: 8px; }
.header__menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--olive-900); }
.header__toggle .icon { width: 28px; height: 28px; }

/* Selector de idioma EN / FR: solo visual (la traducción llegará con el plugin multidioma de WordPress). */
.lang { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lang__item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 7px; border-radius: 8px; font: 400 13px/1 var(--font-sans); letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang__item[aria-current] { font-weight: 700; color: var(--olive-900); }
.lang__item:hover { background: var(--mist); }
.lang__flag { display: block; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(47, 58, 35, .3); }
.lang__flag svg { display: block; width: 100%; height: 100%; }
.lang__item:not([aria-current]) .lang__flag { opacity: .55; }

@media (max-width: 980px) {
  .header__inner { gap: 8px; }
  .header__cta { display: none; }
  .header__nav { position: absolute; inset: var(--header-h) 0 auto; padding: 8px var(--gutter) 24px; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(47, 58, 35, .08); display: none; }
  .header__nav.is-open { display: block; }
  .header__menu-lang { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .header__menu-lang li:first-child { margin-left: -7px; } /* bandera alineada con el texto del menú */
  .header__menu { flex-direction: column; margin-bottom: 16px; }
  .header__menu a { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
  .header__menu-cta { width: 100%; }
}
@media (min-width: 981px) {
  .header__inner { gap: 16px; }
  .header__logo img { height: 56px; }
  .header__toggle, .header__menu-cta, .header__menu-lang { display: none; }
  .header__nav { display: block; }
  .header__lang { padding-left: 12px; border-left: 1px solid var(--line); }
}
/* Desktop estrecho: menos aire en el menú para que quepan anclas, idioma y CTA en una línea. */
@media (min-width: 981px) and (max-width: 1140px) {
  .header__menu { gap: 0; }
  .header__menu a { padding: 0 8px; }
}

/* ---------- 6. Hero (#home) ---------- */
/* Móvil: foto ~62 vh con eyebrow + H1 sobre velo inferior; debajo CTA, microcopy y subtítulo. */
.hero { display: grid; grid-template-columns: 100%; }
.hero__media { grid-area: 1 / 1; position: relative; height: 62vh; height: 62svh; min-height: 400px; overflow: hidden; background: var(--olive-900); }
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 60% 50%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--veil), .9) 0%, rgba(var(--veil), .7) 32%, rgba(var(--veil), 0) 68%); pointer-events: none; }
.hero__head { grid-area: 1 / 1; align-self: end; position: relative; z-index: 1; padding: 0 var(--gutter) 22px; }
.hero__eyebrow { color: var(--ivory); margin-bottom: 10px; }
.hero__title { color: var(--ivory); font-size: var(--fs-h1); line-height: 1.05; }
.hero__title-sub { display: block; margin-top: 8px; font-size: var(--fs-h1-sub); line-height: 1.15; color: var(--sand); }
.hero__body { display: flex; flex-direction: column; gap: 14px; padding: 20px var(--gutter) 8px; }
.hero__actions { order: 1; display: flex; gap: 12px; }
.hero__actions .btn--primary { flex: 1; }
.hero__micro { order: 2; margin: 0; font-size: var(--fs-small); color: var(--muted); }
.hero__subtitle { order: 3; margin: 6px 0 0; }
.hero__photos-btn { display: none; }
.hero__photos-chip {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 0; border-radius: var(--r-pill); background: rgba(253, 252, 247, .94); color: var(--olive-900);
  font-size: 14px; font-weight: 700;
}
.hero__photos-chip .icon { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .hero__body { max-width: 640px; }
}

/* Desktop: foto a sangre 85 vh con velo degradado a la izquierda y todo el texto encima. */
@media (min-width: 981px) {
  .hero {
    grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [content-start] minmax(0, var(--container)) [content-end] minmax(var(--gutter), 1fr) [full-end];
    grid-template-rows: 1fr auto auto 1fr auto;
    min-height: calc(85vh - var(--header-h));
  }
  .hero__media { grid-column: full; grid-row: 1 / 5; height: auto; min-height: 560px; }
  .hero__img { object-position: 50% 70%; }
  .hero__media::after { background: linear-gradient(90deg, rgba(var(--veil), .84) 0%, rgba(var(--veil), .72) 42%, rgba(var(--veil), .2) 66%, rgba(var(--veil), 0) 80%); }
  .hero__photos-chip { display: none; }
  .hero__head { grid-column: content; grid-row: 2; padding: 0; max-width: 600px; }
  .hero__eyebrow { color: var(--sand); }
  .hero__body { grid-column: content; grid-row: 3; position: relative; z-index: 1; padding: 22px 0 0; max-width: 540px; color: var(--ivory); }
  .hero__subtitle { order: 0; margin: 0 0 10px; font-size: 19px; }
  /* Sobre el velo oscuro, el primario pasa a marfil y el secundario a contorno para mantener la jerarquía. */
  .hero__actions .btn--primary { flex: none; background: var(--ivory); color: var(--olive-900); }
  .hero__actions .btn--primary:hover { background: var(--sand); }
  .hero__photos-btn { display: inline-flex; background: transparent; color: var(--ivory); border-color: rgba(247, 244, 234, .7); }
  .hero__photos-btn:hover { background: rgba(247, 244, 234, .14); }
  .hero__body .btn:focus-visible { outline-color: var(--ivory); }
  .hero__micro { color: var(--sand); }
}

/* Tira de miniaturas: scroll-snap en móvil, 6 en fila en desktop. */
.thumbs { grid-column: 1 / -1; padding-top: 20px; }
.thumbs__list { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; border-radius: var(--r-img); }
.thumbs__list::-webkit-scrollbar { display: none; }
.thumbs__item { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-img); overflow: hidden; scroll-snap-align: start; background: var(--mist); }
.thumbs__item img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 300ms var(--ease); }
.thumbs__item:hover img { transform: scale(1.04); }
@media (min-width: 981px) {
  .thumbs { grid-column: content; grid-row: 5; padding: 24px 0 0; max-width: none; }
  .thumbs__list { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
}

/* ---------- 7. Highlights ---------- */
/* Icono de línea arriba y centrado, cifra debajo y etiqueta al final. 2 columnas en móvil, 3 en tablet, 6 en desktop. */
.highlights { padding-block: 36px 8px; }
.highlights__list { display: grid; grid-template-columns: repeat(2, 1fr); }
.highlights__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.highlights__item:nth-child(odd) { border-right: 1px solid var(--line); }
.highlights__item:nth-last-child(-n + 2) { border-bottom: 0; }
.highlights__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--mist); color: var(--olive-700); }
.highlights__icon .icon { width: 28px; height: 28px; }
.highlights__value { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 1.05; color: var(--olive-900); font-variant-numeric: lining-nums; white-space: nowrap; }
.highlights__label { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); line-height: 1.35; }
@media (min-width: 768px) {
  .highlights__list { grid-template-columns: repeat(3, 1fr); }
  .highlights__item { border-right: 1px solid var(--line); }
  .highlights__item:nth-child(3n) { border-right: 0; }
  .highlights__item:nth-last-child(-n + 3) { border-bottom: 0; }
  .highlights__icon { width: 56px; height: 56px; }
  .highlights__icon .icon { width: 30px; height: 30px; }
  .highlights__value { font-size: 34px; }
}
@media (min-width: 981px) {
  .highlights { padding-block: 64px 0; }
  .highlights__list { grid-template-columns: repeat(6, 1fr); }
  .highlights__item { border-bottom: 0; border-right: 1px solid var(--line); padding: 8px 12px; }
  .highlights__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .highlights__item:last-child { border-right: 0; }
  /* «10–15 min» no se parte: la cifra se ajusta al ancho de columna entre 981 y 1440 px. */
  .highlights__value { font-size: clamp(30px, 2.8vw, 40px); }
}

/* ---------- 8. About ---------- */
.about__inner { display: grid; gap: 28px; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
.about__welcome { margin: 24px 0 0; font: italic 500 26px/1.3 var(--font-serif); color: var(--olive-900); }
.about__subtitle { font-size: var(--fs-h3); margin-bottom: 14px; }
.about__text { max-width: 680px; }
@media (min-width: 768px) {
  .about__inner { gap: 40px; }
  .about__welcome { font-size: 30px; }
}
@media (min-width: 981px) {
  .about__inner { grid-template-columns: 5fr 7fr; align-items: center; gap: 72px; }
  .about__media img { aspect-ratio: 4 / 5; }
}

/* ---------- 9. Apartment ---------- */
.apartment { background: var(--paper); border-block: 1px solid var(--line); }
.apartment__list { display: grid; gap: 24px; }
.apartment__card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.apartment__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.apartment__body { padding: 22px 22px 26px; }
.apartment__num { display: block; margin-bottom: 8px; font: 700 var(--fs-eyebrow)/1 var(--font-sans); letter-spacing: .14em; color: var(--ochre-text); }
.apartment__title { font-size: var(--fs-h3); margin-bottom: 12px; }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
@media (min-width: 768px) {
  .apartment__list { gap: 56px; }
  .apartment__card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .apartment__media img { border-radius: var(--r-img); }
  .apartment__card:nth-child(even) .apartment__media { order: 2; }
  .apartment__body { padding: 0; max-width: 460px; }
  .section-cta { justify-content: center; margin-top: 64px; }
}
@media (min-width: 981px) {
  .apartment__card { grid-template-columns: 7fr 5fr; gap: 64px; }
  .apartment__card:nth-child(even) { grid-template-columns: 5fr 7fr; }
}

/* ---------- 10. Jungle (pausa panorámica) ---------- */
/* La sección termina con la foto: cita y botón van dentro, sobre el velo. */
.jungle { padding-top: var(--space-section); background: var(--olive-900); color: var(--ivory); }
.jungle .section-title { color: var(--ivory); }
.jungle__intro { display: grid; gap: 20px; margin-bottom: 40px; }
.jungle__subtitle { margin: 16px 0 0; font-size: 19px; color: var(--sand); }
.jungle__text { margin: 0; max-width: 620px; }
.jungle__panorama { position: relative; }
.jungle__panorama img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.jungle__panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--veil), .35), rgba(var(--veil), .62) 50%, rgba(var(--veil), .45)); }
.jungle__overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; text-align: center; }
.jungle__quote p { max-width: 15ch; margin: 0; font: italic 500 38px/1.15 var(--font-serif); color: #fff; text-wrap: balance; }
.jungle__overlay .btn:focus-visible { outline-color: var(--ivory); }
@media (min-width: 768px) {
  .jungle__intro { grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
  .jungle__panorama img { aspect-ratio: 21 / 9; }
  .jungle__overlay { gap: 24px; }
  .jungle__quote p { max-width: 22ch; font-size: 42px; }
}
@media (min-width: 981px) { .jungle__quote p { font-size: clamp(52px, 4.4vw, 64px); } }

/* ---------- 11. Location ---------- */
.location__grid { display: grid; gap: 20px; }
.location__card { overflow: hidden; display: flex; flex-direction: column; }
.location__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.location__body { padding: 22px 22px 26px; }
.location__body .chips { margin-bottom: 16px; }
@media (min-width: 768px) { .location__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 981px) { .location__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- 12. Sustainability ---------- */
.sustainability { background: var(--mist); }
.sustainability__grid { display: grid; gap: 14px; }
/* align-content: start + caja de icono de alto fijo: los títulos quedan alineados aunque las tarjetas se estiren. */
.sustainability__card { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; align-content: start; padding: 20px; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.sustainability__card:hover { transform: translateY(-2px); border-color: rgba(47, 58, 35, .24); }
.sustainability__card p { margin: 0; color: var(--muted); }
.sustainability__card .card__title { margin-bottom: 6px; }
.sustainability__icon { width: 76px; height: 76px; }
/* Starlink: viñeta de otro set dentro de un medallón con el mismo crema y aro del set de sostenibilidad. */
/* El círculo de los PNG del set ocupa el 86 % de su caja: el medallón CSS reproduce esa misma medida. */
.sustainability__medallion { display: grid; place-items: center; width: 76px; height: 76px; background: radial-gradient(circle closest-side, #FAF0D7 calc(100% - 3px), #2A3320 calc(100% - 2.5px), #2A3320 100%, transparent 100%) center / 86% 86% no-repeat; }
.sustainability__medallion img { width: 62%; height: 62%; }
.sustainability__chips { margin-top: 36px; }
.sustainability__close { display: flex; flex-direction: column; align-items: center; margin-top: 12px; }
.sustainability__close p { font: italic 500 28px/1.2 var(--font-serif); color: var(--olive-900); text-align: center; }
@media (min-width: 768px) { .sustainability__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 981px) {
  .sustainability__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .sustainability__card { grid-template-columns: 1fr; grid-template-rows: 104px auto; justify-items: center; text-align: center; padding: 32px 28px; }
  .sustainability__icon, .sustainability__medallion { width: 104px; height: 104px; }
}

/* ---------- 13. Reviews ---------- */
.reviews__layout { display: grid; gap: 24px; }
.reviews__featured { padding: 24px 24px 28px; border-radius: var(--r-card); background: var(--olive-900); color: var(--ivory); }
/* Comillas decorativas: la caja se recorta al alto del glifo para que no añadan hueco. */
.reviews__mark { display: block; height: .42em; margin-bottom: 6px; overflow: hidden; font: 600 80px/1 var(--font-serif); color: var(--sand); }
.reviews__featured blockquote p { font: italic 500 30px/1.25 var(--font-serif); color: #fff; }
.reviews__featured .review__author { margin-top: 0; }
.reviews__featured .review__meta { color: var(--sand); }
.reviews__featured .avatar { background: var(--sand); color: var(--olive-900); }
.reviews__list { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.review { scroll-snap-align: start; padding: 22px; }
.review figure { display: flex; flex-direction: column; height: 100%; }
.review blockquote p { font: italic 500 23px/1.3 var(--font-serif); color: var(--olive-900); margin-bottom: 10px; }
.review__translation { font-size: var(--fs-small); color: var(--muted); }
.review__translation span { font-weight: 700; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.review__author strong { display: block; line-height: 1.3; }
.review__meta { display: block; font-size: var(--fs-small); color: var(--muted); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--olive-900); font: 600 22px/1 var(--font-serif); flex: none; }
.platform-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) {
  .reviews__list { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; }
}
@media (min-width: 981px) {
  .reviews__layout { grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; }
  /* Comillas + cita + autor centrados en vertical como un solo bloque. */
  .reviews__featured { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 44px 40px; }
  .reviews__mark { font-size: 120px; margin-bottom: -8px; }
  .reviews__featured blockquote p { font-size: 40px; }
}

/* ---------- 14. Prices ---------- */
.prices { background: var(--paper); border-block: 1px solid var(--line); }
.prices__inner { display: grid; gap: 32px; }
.prices__min { margin-top: 20px; font-size: 19px; color: var(--olive-900); }
.prices__card { padding: 24px 20px; background: var(--ivory); }
.prices__table { width: 100%; border-collapse: collapse; }
.prices__table caption { text-align: left; margin-bottom: 12px; font: 600 22px/1.25 var(--font-serif); color: var(--olive-900); }
.prices__table th, .prices__table td { padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.prices__table thead th { padding-top: 0; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.prices__table tbody th { font-weight: 400; }
.prices__table td { text-align: right; font-weight: 700; color: var(--olive-900); white-space: nowrap; }
.prices__table thead th:last-child { text-align: right; }
.prices__notes { display: grid; gap: 16px; margin-top: 20px; }
.prices__notes li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.prices__notes .icon { color: var(--olive-700); }
@media (min-width: 768px) { .prices__card { padding: 32px; } }
@media (min-width: 981px) { .prices__inner { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }

/* ---------- 15. Availability: calendario informativo + «Request a quote» (una columna, máx. 720 px) ---------- */
.availability__inner { max-width: calc(720px + 2 * var(--gutter)); }
.calendar { padding: 18px 12px 20px; }
.calendar__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 0 4px 12px; }
.calendar__heading { text-align: center; }
.calendar__label { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calendar__month { font-size: 26px; }
.calendar__nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(47, 58, 35, .2); border-radius: 50%; background: var(--paper); color: var(--olive-900); transition: background-color var(--t); }
.calendar__nav:hover:not([disabled]) { background: var(--mist); }
.calendar__nav[disabled] { opacity: .35; cursor: default; }
.calendar__table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.calendar__table th { padding: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.calendar__table td { padding: 0; }
/* Celdas cuadradas con borde fino. Solo informativas: no son botones. */
.cal__day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(47, 58, 35, .14); border-radius: 8px; background: var(--paper); font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal__day.is-unavailable { background: var(--mist); color: var(--muted); }
.cal__day.is-unavailable::before { content: ""; position: absolute; left: 30%; right: 30%; top: 50%; border-top: 1px solid currentColor; transform: rotate(-38deg); }
.cal__day.is-past { background: transparent; border-color: rgba(47, 58, 35, .07); color: rgba(38, 42, 31, .32); }
.cal__day.is-today { border: 1.5px solid var(--olive-900); font-weight: 700; color: var(--olive-900); }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--olive-900); }
.calendar__foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.calendar__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.calendar__legend li { display: flex; align-items: center; gap: 8px; }
.swatch { position: relative; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(47, 58, 35, .25); }
.swatch--available { background: var(--paper); }
.swatch--unavailable { background: var(--mist); }
.swatch--unavailable::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; border-top: 1px solid var(--muted); transform: rotate(-38deg); }
.calendar__updated { display: flex; align-items: center; gap: 8px; margin: 0; }
.calendar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.quote { display: flex; flex-direction: column; align-items: center; margin-top: 48px; text-align: center; }
.quote__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--mist); color: var(--olive-900); }
.quote__title { font-size: 26px; margin-bottom: 10px; }
.quote__lead { max-width: 520px; margin-bottom: 24px; color: var(--muted); }
.quote__btn span { transition: transform var(--t) var(--ease); }
.quote__btn:hover span { transform: translateX(4px); }
.quote__note { max-width: 480px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.platforms { margin-top: 48px; text-align: center; }
.platforms p { max-width: 560px; margin-inline: auto; color: var(--muted); }
/* Separador con texto: filete a cada lado. */
.platforms .platforms__or { display: flex; align-items: center; gap: 16px; max-width: none; margin-bottom: 16px; font-size: var(--fs-small); }
.platforms__or::before, .platforms__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.platforms .platform-links { justify-content: center; margin-top: 20px; }

@media (min-width: 768px) {
  .calendar { padding: 28px 28px 24px; }
  .calendar__bar { margin-inline: 0; margin-bottom: 16px; }
  .calendar__month { font-size: 30px; }
  .calendar__table { border-spacing: 6px; }
  .cal__day { border-radius: 10px; font-size: 16px; }
  .quote { margin-top: 56px; }
  .quote__title { font-size: 30px; }
}

/* ---------- 16. Footer ---------- */
.footer { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--olive-900); color: var(--ivory); }
.footer a { color: var(--ivory); }
.footer__inner { display: grid; gap: 32px; justify-items: center; text-align: center; }
.footer__logo { display: block; border-radius: 8px; }
.footer__logo img { width: 120px; }
.footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 700; font-size: 15px; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__place p { margin: 0; color: var(--sand); font-size: 15px; }
.footer__place .footer__tagline { margin-bottom: 6px; font: italic 500 26px/1.2 var(--font-serif); color: var(--ivory); }
.footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(220, 205, 176, .2); text-align: center; font-size: 13px; color: var(--sand); }
@media (min-width: 981px) {
  .footer { padding-top: 72px; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 48px; }
  .footer__nav ul { justify-content: center; }
  .footer__nav { justify-self: center; }
  .footer__place { text-align: right; }
}

/* ---------- 17. Barra fija móvil ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(47, 58, 35, .08);
  transform: translateY(110%); transition: transform 250ms var(--ease);
}
.stickybar.is-visible { transform: none; }
.stickybar__price { margin: 0; font-size: 14px; line-height: 1.3; color: var(--muted); }
.stickybar__price strong { color: var(--olive-900); font-size: 16px; }
@media (min-width: 981px) { .stickybar { display: none; } }

/* ---------- 18. Aviso (enlaces pendientes) ---------- */
/* Abajo y centrado. En móvil, con la barra fija visible, sube por encima de ella (alto de la barra 69 px + 12 px). */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: max-content; max-width: calc(100% - 32px);
  padding: 8px 16px; border-radius: var(--r-pill); background: var(--olive-900); color: var(--ivory);
  font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease), bottom 200ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .stickybar.is-visible + .toast { bottom: calc(69px + 12px + env(safe-area-inset-bottom)); } }
@media (min-width: 981px) { .toast { bottom: 24px; } }

/* ---------- 19. Galería (<dialog>) ---------- */
.gallery { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--ivory); color: var(--ink); }
.gallery::backdrop { background: rgba(var(--veil), .6); }
.gallery[open] { display: flex; flex-direction: column; }
.gallery__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); background: var(--ivory); border-bottom: 1px solid var(--line); }
.gallery__title { font-size: 24px; }
.gallery__close { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--olive-900); }
.gallery__close:hover { background: var(--mist); }
.gallery__body { flex: 1; overflow-y: auto; width: 100%; max-width: 1100px; margin-inline: auto; padding: 16px var(--gutter) 64px; }
.gallery__index { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.gallery__index a { flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 14px; font-weight: 700; text-decoration: none; }
.gallery__group { padding-top: 28px; }
.gallery__group h3 { font-size: var(--fs-h3); margin-bottom: 14px; scroll-margin-top: 8px; }
.gallery__grid { display: grid; gap: 10px; }
.gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--mist); scroll-margin-top: 12px; }
@media (min-width: 768px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* Con un número impar de fotos, la primera ocupa el ancho completo y no queda ninguna huérfana. */
  .gallery__grid img:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 20. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
