/* ============================================================
   Hotel Los Ángeles — Editorial Warm v2
   Vanilla CSS. Mobile-first. Native image ratios respected.
   ============================================================ */

:root {
  --ink: #141414;
  --ink-soft: #3a3632;
  --ink-muted: #6a6359;
  --ink-line: rgba(20, 20, 20, 0.12);

  --cream: #f6f1e7;
  --cream-soft: #eee7d8;
  --cream-deep: #e6dcc5;
  --white: #ffffff;

  --gold: #a0782d;
  --gold-soft: #c9a35c;
  --terra: #b24a2a;

  --serif: "Fraunces", "Noto Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --r-sm: 2px;
  --r-md: 4px;

  --max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --dur-fast: 220ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--white); }

img, picture, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

iframe { border: 0; display: block; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--r-sm); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 20;
}

p { color: var(--ink-soft); line-height: 1.7; }

strong { font-weight: 600; color: var(--ink); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.section--cream { background: var(--cream); }
.section--cream-soft { background: var(--cream-soft); }
.section--cream-deep { background: var(--cream-deep); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}

.h1 { font-family: var(--serif); font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 1; }
.h2 { font-family: var(--serif); font-size: clamp(2rem, 4.8vw, 3.75rem); line-height: 1.02; }
.h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; }

.lead {
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}

.small { font-size: 0.875rem; color: var(--ink-muted); }
.italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  line-height: 1;
}

.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--gold); color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--on-dark { background: var(--cream); color: var(--ink); }
.btn--on-dark:hover { background: var(--gold); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.45); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }

.u-link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.u-link:hover { color: var(--gold); border-color: var(--gold); }
.u-link::after { content: "→"; display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.u-link:hover::after { transform: translateX(4px); }
.u-link--light { color: var(--cream); border-color: rgba(246, 241, 231, 0.55); }
.u-link--light:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.u-link--down::after { content: "↓"; }
.u-link--down:hover::after { transform: translateY(4px); }

/* ---------- Top nav ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(246, 241, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}

.topbar--dark {
  background: rgba(20, 20, 20, 0.72);
  border-bottom-color: rgba(246, 241, 231, 0.12);
  color: var(--cream);
}

.topbar__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s-4) clamp(0.75rem, 2vw, var(--s-6));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  color: inherit;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.topbar--dark .brand__title { color: var(--gold-soft); }

.brand__sub {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 4px;
  font-weight: 500;
}

.topbar--dark .brand__sub { color: var(--cream); }

@media (max-width: 640px) {
  .topbar__inner { padding: var(--s-3) var(--s-4); gap: var(--s-3); }
  .brand { gap: var(--s-3); }
  .brand__logo { width: 42px; height: 42px; }
  .brand__title { font-size: 1rem; }
  .brand__sub { font-size: 0.58rem; letter-spacing: 0.16em; }
  /* Hide the Book button on phones to avoid overflow — burger stays. */
  .topbar__cta .btn { display: none; }
}

@media (max-width: 400px) {
  .brand__logo { width: 38px; height: 38px; padding: 3px; }
  .brand__title { font-size: 0.95rem; }
  .brand__sub { font-size: 0.55rem; }
}

.nav { display: none; justify-content: center; gap: clamp(var(--s-5), 2vw, var(--s-6)); }
@media (min-width: 960px) { .nav { display: flex; } }

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
  padding-block: var(--s-2);
  position: relative;
  transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav a:hover { opacity: 1; color: var(--gold); }
.nav a.is-active { opacity: 1; color: var(--gold); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.topbar__cta { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-4); }

.topbar__cta .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar--dark .btn--outline { box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.45); color: var(--cream); }
.topbar--dark .btn--outline:hover { background: var(--cream); color: var(--ink); }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: inherit;
}
@media (min-width: 960px) { .burger { display: none; } }

.burger i, .burger i::before, .burger i::after {
  content: "";
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.burger i { position: relative; }
.burger i::before { position: absolute; top: -7px; left: 0; }
.burger i::after { position: absolute; top: 7px; left: 0; }

body.menu-open .burger i { background: transparent; }
body.menu-open .burger i::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger i::after { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--cream);
  padding: calc(var(--nav-h) + var(--s-7)) var(--gutter) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transform: translateY(-100%);
  transition: transform var(--dur) var(--ease);
  visibility: hidden;
}
body.menu-open .drawer { transform: translateY(0); visibility: visible; }

.drawer a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--ink);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--ink-line);
}
.drawer a.is-active { color: var(--gold); font-style: italic; }
.drawer__foot { margin-top: auto; font-size: 0.85rem; color: var(--ink-muted); }

@media (min-width: 960px) { .drawer { display: none; } }
body.menu-open { overflow: hidden; }

/* ============================================================
   IMAGE SYSTEM — respect native ratios, no more weird crops
   ============================================================ */

/* Block responsive image: fills the container width, keeps its own ratio. */
.img-native {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Frame for images where we want to set a visual container.
   The frame adopts the image's natural ratio via inline aspect-ratio
   supplied in HTML (style="aspect-ratio: 2.22;") when needed. */
.frame {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}

.frame img,
.frame picture {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- HERO (full bleed, native panoramic respected via cover — hero is cinematic) ---------- */
.hero {
  position: relative;
  min-height: 115svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-10);
  color: var(--cream);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 640px) {
  .hero { min-height: 100svh; }
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) brightness(0.38);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.65) 0%, rgba(20, 20, 20, 0.2) 40%),
    linear-gradient(360deg, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.3) 55%);
}

.hero__head {
  position: absolute;
  top: calc(var(--nav-h) + var(--s-6));
  left: 0; right: 0;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.68);
}
.hero__head span { display: inline-flex; align-items: center; gap: var(--s-3); }

.hero__wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: end;
}

@media (min-width: 960px) {
  .hero__wrap { grid-template-columns: 1.4fr 1fr; gap: var(--s-9); }
}

.hero__title {
  color: var(--cream);
  font-size: clamp(3.25rem, 10vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin-bottom: var(--s-6);
}
.hero__title em { font-style: italic; color: var(--gold-soft); font-weight: 300; }

.hero__meta { display: flex; flex-direction: column; gap: var(--s-5); padding-bottom: var(--s-3); }
.hero__meta p { font-size: 1.0625rem; line-height: 1.7; color: rgba(246, 241, 231, 0.82); max-width: 48ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); }

/* Centered hero variant — single column, vertically centered upper half */
.hero--center {
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--s-6));
  padding-bottom: var(--s-9);
  text-align: center;
}

.hero--center .hero__wrap--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
  text-align: center;
  /* Shift content toward the upper half */
  margin-top: calc(-1 * var(--s-9));
  max-width: 1100px;
}

.hero__title--center {
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}

.hero__sub {
  color: rgba(246, 241, 231, 0.9);
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 auto;
}

.hero__actions--center {
  justify-content: center;
  margin-top: var(--s-3);
}

.hero__down {
  margin-top: var(--s-5);
}

.hero__foot {
  position: absolute;
  bottom: var(--s-6); left: 0; right: 0;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-5);
  pointer-events: none;
  color: rgba(246, 241, 231, 0.55);
}
@media (max-width: 640px) { .hero__foot { display: none; } }

/* Mobile overrides for the centered hero — placed AFTER the base rules
   so they win by source order. Pushes the title+copy block down past
   the closed-strip + topbar + safe area. */
@media (max-width: 768px) {
  .hero--center {
    padding-top: calc(env(safe-area-inset-top) + 26px + var(--nav-h) + 22vh) !important;
    padding-bottom: var(--s-8) !important;
    justify-content: flex-start !important;
  }
  .hero--center .hero__wrap--center {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .hero__title--center {
    font-size: clamp(2.4rem, 11vw, 3.4rem) !important;
  }
  .hero__head {
    top: calc(env(safe-area-inset-top) + 26px + var(--nav-h) + var(--s-4)) !important;
  }
}

.hero__foot small { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

.hero__rule {
  width: 1px; height: 70px;
  background: rgba(246, 241, 231, 0.3);
  margin-inline: auto;
  position: relative;
}
.hero__rule::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 35%;
  background: var(--gold-soft);
  animation: slide 3s var(--ease) infinite;
}
@keyframes slide {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- Statement section (intro with big number + copy + image) ---------- */
.statement { padding-block: clamp(5rem, 12vw, 9rem); background: var(--cream); }

.statement__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}

@media (min-width: 960px) {
  .statement__grid {
    grid-template-columns: auto 1fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
}

.statement__num {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.8;
  color: var(--gold);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 200;
}

.statement__body h2 {
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  line-height: 1.05;
  margin-bottom: var(--s-5);
  max-width: 18ch;
}
.statement__body p + p { margin-top: var(--s-4); }

.statement__media .frame { margin-top: var(--s-3); }

/* ---------- Split feature: image + body side by side, ratio-respecting ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(var(--s-7), 5vw, var(--s-10));
  }
  .split--right { grid-template-columns: 1fr 1.1fr; }
  .split--right > :first-child { order: 2; }
  .split--right > :last-child  { order: 1; }
}

.split__media {
  position: relative;
}

.split__media .tag {
  position: absolute;
  left: 0;
  top: var(--s-5);
  background: var(--cream);
  padding: var(--s-3) var(--s-5);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(20, 20, 20, 0.2);
  z-index: 2;
}

.split__body > * + * { margin-top: var(--s-5); }
.split__body h2 { max-width: 14ch; }
.split__body p { max-width: 52ch; }

/* ---------- Section head ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: var(--s-8);
}
@media (min-width: 880px) {
  .sec-head {
    grid-template-columns: auto 1fr auto;
    gap: var(--s-8);
    align-items: end;
  }
}

.sec-head__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}

.sec-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 18ch; }

.sec-head__meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  align-self: end;
}

/* ---------- Amenities (editorial, no cards) ---------- */
.amenities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 700px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .amenities { grid-template-columns: repeat(3, 1fr); } }

.amenity {
  padding: var(--s-6) var(--s-3);
  border-top: 1px solid var(--ink-line);
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
}

.amenity__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  min-width: 32px;
  padding-top: 2px;
}

.amenity h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: var(--s-2);
  color: var(--ink);
}

.amenity p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.6; }

.amenities-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 900px) {
  .amenities-wrap {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-8);
  }
}

.amenities::after {
  content: "";
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--ink-line);
}

/* ============================================================
   BIG ROOM CAROUSEL (the star of /habitaciones)
   ============================================================ */

.rcaro {
  position: relative;
}

.rcaro__viewport {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
}

.rcaro__track {
  display: flex;
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.rcaro__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  display: block;
}

.rcaro__slide img {
  display: block;
  width: 100%;
  height: auto;
  /* Native ratio 2.22 — respected on desktop. */
}

/* On mobile the 2.22 panoramic images become a very thin strip.
   Force a taller crop using object-fit cover so the carousel
   stays cinematic on phones. */
@media (max-width: 780px) {
  .rcaro__slide {
    aspect-ratio: 4 / 5;
  }
  .rcaro__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.rcaro__caption {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  right: var(--s-5);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--s-4) var(--s-5);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .rcaro__caption { left: var(--s-7); bottom: var(--s-7); right: auto; min-width: 340px; }
}

.rcaro__caption h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--cream); margin-bottom: 4px; }
.rcaro__caption p { color: rgba(246, 241, 231, 0.75); font-size: 0.9rem; margin: 0; }
.rcaro__caption .idx {
  font-family: var(--serif); font-style: italic;
  color: var(--gold-soft);
  font-size: 0.95rem;
}

/* Controls */
.rcaro__ctrls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

.rcaro__btns { display: flex; gap: var(--s-3); }

.rcaro__btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  font-size: 1.3rem;
}

@media (max-width: 640px) {
  .rcaro__btn { width: 48px; height: 48px; font-size: 1.15rem; }
  .rcaro__ctrls { gap: var(--s-4); }
  .rcaro__dots { flex-basis: 100%; order: 3; justify-content: center; }
  .rcaro__counter { order: 2; }
}
.rcaro__btn:hover { background: var(--ink); color: var(--cream); }
.rcaro__btn:active { transform: scale(0.95); }

.rcaro__dots {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.rcaro__dot {
  width: 34px; height: 2px;
  background: var(--ink-line);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
}
.rcaro__dot.is-active { background: var(--gold); width: 60px; }

.rcaro__counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ---------- Story blocks (interés) ---------- */
.story { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--ink-line); }
.story:first-of-type { border-top: 0; }

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 960px) {
  .story__grid { grid-template-columns: 4fr 7fr; gap: var(--s-9); }
  .story--mirror .story__grid { grid-template-columns: 7fr 4fr; }
  .story--mirror .story__grid > :first-child { order: 2; }
  .story--mirror .story__grid > :last-child { order: 1; }
}

.story__label {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: sticky;
  top: calc(var(--nav-h) + var(--s-5));
}

@media (max-width: 960px) { .story__label { position: static; } }

.story__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  line-height: 0.8;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
}

.story__label h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 12ch; }
.story__label .eyebrow { color: var(--terra); }

.story__body > * + * { margin-top: var(--s-5); }
.story__body p { max-width: 62ch; font-size: 1.0625rem; }

.story__image {
  margin: var(--s-6) 0;
  display: block;
}
/* Respect native ratio — no aspect-ratio forcing */
.story__image img { display: block; width: 100%; height: auto; }

.story__image figcaption {
  margin-top: var(--s-3);
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  margin: var(--s-6) 0;
}
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }

.stats dt {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--ink);
  line-height: 1;
}

.stats dd {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: var(--s-3);
}

/* ---------- Contact / Ubicación ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.2fr; gap: var(--s-9); align-items: start; }
}

.contact__info > * + * { margin-top: var(--s-6); }

.contact__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-line);
}
.contact__row:first-of-type { border-top: 0; padding-top: 0; }

.contact__row .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 6px;
  min-width: 110px;
}

.contact__row h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-bottom: var(--s-2); }
.contact__row p { font-size: 1rem; color: var(--ink-soft); }
.contact__row a { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.contact__row a:hover { color: var(--gold); }

.map {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}
@media (min-width: 900px) { .map { aspect-ratio: 5 / 6; } }

.map iframe {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color-scheme: light;
}

/* Video ---------- */
.video { max-width: 1200px; margin-inline: auto; }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Partners ---------- */
.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 780px) { .partners { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-7); } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(3, 1fr); } }

.partner {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.partner__img {
  overflow: hidden;
  background: var(--cream-soft);
  display: block;
}

.partner__img img {
  display: block;
  width: 100%;
  height: auto;
}

.partner__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.partner__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
}

.partner h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }

.partner__place {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  white-space: nowrap;
}

.partner p { font-size: 0.95rem; }

.partner__map {
  margin-top: var(--s-3);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #ffffff;
}
.partner__map iframe {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color-scheme: light;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding-block: var(--s-5);
  background: var(--cream);
}

.marquee__track {
  display: flex;
  gap: var(--s-9);
  width: max-content;
  animation: marquee 45s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--ink-soft);
}

.marquee__track span { display: inline-flex; align-items: center; gap: var(--s-9); }
.marquee__track span::after { content: "★"; color: var(--gold); font-size: 0.65em; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
  font-size: clamp(2rem, 5.5vw, 4rem);
  max-width: 18ch;
  margin: 0 auto var(--s-6);
}

.cta-band p {
  color: rgba(246, 241, 231, 0.7);
  font-size: 1.0625rem;
  max-width: 56ch;
  margin: 0 auto var(--s-6);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

/* ---------- Footer ---------- */
.foot {
  background: var(--cream-deep);
  padding-block: clamp(4rem, 8vw, 6rem) var(--s-6);
  color: var(--ink-soft);
}

.foot__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }

@media (min-width: 780px) {
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.foot__brand h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: var(--s-4);
  color: var(--ink);
}

.foot__brand p { font-size: 0.95rem; max-width: 42ch; }

.foot h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
  font-weight: 500;
}

.foot ul { display: flex; flex-direction: column; gap: var(--s-3); }
.foot a { font-size: 0.95rem; color: var(--ink); }
.foot a:hover { color: var(--gold); }

.foot__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .r { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .r.is-in { opacity: 1; transform: none; }
}

/* ---------- Closed banner (diagonal ribbon) ---------- */
.closed-banner {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
}

.closed-banner__ribbon {
  position: absolute;
  top: 48px;
  right: -64px;
  width: 320px;
  transform: rotate(45deg);
  background: var(--terra);
  color: var(--cream);
  text-align: center;
  padding: var(--s-3) 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.78;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.18);
  border-top: 1px dashed rgba(246, 241, 231, 0.45);
  border-bottom: 1px dashed rgba(246, 241, 231, 0.45);
}

/* Mobile: diagonal ribbon would collide with the burger button,
   so switch to a fixed horizontal strip at the very top of the viewport.
   The topbar sits just underneath it. The outer banner uses the ink
   background so the iPhone notch / safe-area stays dark (matching
   theme-color) instead of painting red over the status bar. */
@media (max-width: 640px) {
  .closed-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: var(--ink);
    padding-top: env(safe-area-inset-top);
  }
  .closed-banner__ribbon {
    position: static;
    transform: none;
    width: 100%;
    right: auto;
    top: auto;
    padding: 6px var(--s-4);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    opacity: 0.92;
    box-shadow: 0 2px 8px rgba(20, 20, 20, 0.25);
    border-top: none;
    border-bottom: 1px dashed rgba(246, 241, 231, 0.4);
  }

  /* Push the topbar down so it doesn't overlap the strip.
     Combines the 26px strip height with the iOS safe-area inset. */
  .topbar { top: calc(26px + env(safe-area-inset-top)); }
  /* Keep main content flowing; the hero handles its own top padding. */
  main { padding-top: 0; }
}

@media print {
  .closed-banner { display: none; }
}

/* Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
