/* ==========================================================================
   Prada Somió · Apartahotel
   Hoja de estilos principal
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta de marca: beige y marrón */
  --ivory:    #FBF8F2;
  --cream:    #F4ECDF;
  --sand:     #EADCC6;
  --beige:    #D5BE9C;
  --camel:    #B48E63;
  --gold:     #C6A06C;
  --gold-2:   #D9B987;
  --brown:    #7B5638;
  --cocoa:    #5C402C;
  --espresso: #33241A;
  --ink:      #251A13;

  --text:       #3A2C22;
  --text-soft:  #6E5D4F;
  --line:       rgba(92, 64, 44, .16);
  --line-light: rgba(246, 239, 227, .2);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease:     cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.77, 0, .175, 1);
  --header-h: 96px;
  --gutter:   clamp(16px, 4vw, 56px);
  --maxw:     1320px;
  --section:  clamp(64px, 8vw, 112px);
  --radius:   2px;
  --shadow:   0 30px 60px -30px rgba(51, 36, 26, .35), 0 12px 24px -12px rgba(51, 36, 26, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }

/* Texto justificado en toda la web; en bloques centrados la última línea queda centrada */
p, .legal-content li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
svg { display: block; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  padding: 10px 18px; background: var(--espresso); color: var(--ivory);
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--sand  { background: var(--sand); }
.section--cream { background: var(--cream); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6;
}
.eyebrow--light { color: var(--gold-2); }

.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--espresso);
}
.title em { font-style: italic; color: var(--brown); font-weight: 300; }
.title--light { color: var(--ivory); }
.title--light em { color: var(--gold-2); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.45;
  color: var(--cocoa);
  font-weight: 400;
}

.prose { display: grid; gap: 1.1em; margin-top: 34px; color: var(--text-soft); }
.prose strong { color: var(--cocoa); font-weight: 600; }

.stars { letter-spacing: .2em; color: var(--gold-2); font-size: 10px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  --bg: var(--espresso); --fg: var(--ivory); --bd: var(--espresso);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 34px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd); border-radius: var(--radius);
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover-bg, var(--cocoa));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--hover-fg, var(--fg)); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold  { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); --hover-bg: var(--espresso); --hover-fg: var(--ivory); }
.btn--dark  { --bg: var(--espresso); --fg: var(--ivory); --bd: var(--espresso); --hover-bg: var(--gold); --hover-fg: var(--ink); }
.btn--outline { --bg: transparent; --fg: var(--espresso); --bd: var(--cocoa); --hover-bg: var(--espresso); --hover-fg: var(--ivory); }
.btn--ghost { --bg: transparent; --fg: var(--ivory); --bd: rgba(246,239,227,.45); --hover-bg: var(--ivory); --hover-fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 11px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 40px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--espresso);
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s var(--ease); }
.link-arrow:hover { background-size: 0% 1px; background-position: right bottom; color: var(--brown); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--espresso);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-io) .1s;
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__mark {
  width: 120px; height: auto;
  opacity: 0; transform: translateY(14px) scale(.96);
  animation: preIn 1.2s var(--ease) .1s forwards;
}
.preloader__name {
  font-family: var(--serif); font-size: 26px; font-weight: 300; letter-spacing: .14em; color: var(--cream);
  opacity: 0; animation: preIn 1.2s var(--ease) .35s forwards;
}
.preloader__line { width: 140px; height: 1px; background: rgba(246,239,227,.15); overflow: hidden; }
.preloader__line span {
  display: block; height: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  animation: preLine 1.4s var(--ease-io) .3s forwards;
}
@keyframes preIn   { to { opacity: 1; transform: none; } }
@keyframes preLine { to { transform: scaleX(1); } }

body.is-loaded .preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--ivory);
  transition: transform .7s var(--ease), background-color .5s, color .5s, height .5s var(--ease), box-shadow .5s;
}
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(37,26,19,.55), rgba(37,26,19,0));
  transition: opacity .5s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.header__logo { position: relative; display: block; width: 78px; flex-shrink: 0; transition: width .5s var(--ease); }
.header__logo .logo { width: 100%; height: auto; transition: opacity .5s; }
.header__logo .logo--dark { position: absolute; inset: 0; opacity: 0; }

.nav__list { display: flex; gap: clamp(14px, 1.5vw, 26px); }
.nav__list > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 0;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .4s var(--ease); }
.nav__item--drop:hover .nav__chev, .nav__item--drop:focus-within .nav__chev { transform: rotate(180deg); }

.nav__drop {
  position: absolute; top: 100%; left: -26px; min-width: 290px;
  padding: 14px 0;
  background: var(--ivory); color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a {
  display: block; padding: 10px 26px;
  font-family: var(--serif); font-size: 19px;
  transition: color .3s, padding-left .4s var(--ease);
}
.nav__drop a:hover { color: var(--brown); padding-left: 32px; }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; }
.header__phone svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child  { top: 26px; left: 18px; }
body.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:last-child  { top: 22px; left: 10px; transform: rotate(-45deg); }

/* Estado con scroll */
.header.is-scrolled {
  --header-h: 76px;
  background: rgba(251, 248, 242, .88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: var(--espresso);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled::after { opacity: 0; }
.header.is-scrolled .header__logo { width: 58px; }
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark  { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { color: var(--ivory); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
body.menu-open .header .logo--light { opacity: 1; }
body.menu-open .header .logo--dark  { opacity: 0; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  color: var(--ivory);
  visibility: hidden; pointer-events: none;
  transition: visibility 0s .9s;
}
.mobile-menu__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--espresso);
  clip-path: circle(0% at calc(100% - 40px) 48px);
  transition: clip-path .9s var(--ease-io);
}
.mobile-menu__nav { display: grid; gap: 2px; }
.mobile-menu__nav a {
  display: flex; align-items: center; gap: 14px; justify-self: start;
  padding: 4px 0;
  font-family: var(--serif); font-size: clamp(1.7rem, 6.4vw, 2.4rem); font-weight: 300; line-height: 1.2;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.mobile-menu__nav a span { position: relative; }
.mobile-menu__nav a span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.mobile-menu__nav a.is-current span::after { transform: scaleX(1); }
.mobile-menu__nav a.is-current { color: var(--gold-2); }
.mobile-menu__nav a svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-2); stroke-width: 1.3; opacity: .75; }
.mobile-menu__foot {
  margin-top: 32px; display: grid; gap: 10px; justify-items: start;
  font-size: 14px; color: var(--beige);
  opacity: 0; transition: opacity .6s var(--ease);
}
.mobile-menu__foot .btn { margin-top: 16px; }

body.menu-open .mobile-menu { visibility: visible; pointer-events: auto; transition: visibility 0s; }
body.menu-open .mobile-menu__bg { clip-path: circle(150% at calc(100% - 40px) 48px); }
body.menu-open .mobile-menu__nav a { opacity: 1; transform: none; transition-delay: calc(.35s + var(--i) * .06s); }
body.menu-open .mobile-menu__foot { opacity: 1; transition-delay: .7s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 680px;
  overflow: hidden;
  color: var(--ivory);
  background: var(--espresso);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease-io);
}
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14);
  transition: transform 9s cubic-bezier(.25, .1, .25, 1);
  will-change: transform;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-active img { transform: scale(1.02); }

.hero__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(37,26,19,.42), rgba(37,26,19,.18) 70%, rgba(37,26,19,.45) 100%),
    linear-gradient(to bottom, rgba(37,26,19,.45) 0%, rgba(37,26,19,.12) 30%, rgba(37,26,19,.25) 60%, rgba(37,26,19,.78) 100%);
}

.hero__content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; text-align-last: center;
  padding-bottom: 150px;
}
/* Difuminado negro tras el texto para reforzar el contraste */
.hero__text {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
}
.hero__text::before {
  content: "";
  position: absolute; inset: -45% -30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,.38) 45%, rgba(0,0,0,.12) 75%, transparent);
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__eyebrow::before { display: none; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.6rem, 11.5vw, 10.5rem);
  line-height: .95;
  letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__lead {
  margin-top: 26px; max-width: 34ch;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 400; line-height: 1.35;
  color: var(--cream);
}

.hero__meta {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 152px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero__counter {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 18px; color: var(--cream);
}
.hero__counter i { width: 40px; height: 1px; background: rgba(246,239,227,.4); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
  position: relative; width: 46px; height: 24px;
}
.hero__dots button::before, .hero__dots button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(246,239,227,.3);
}
.hero__dots button::after {
  background: var(--gold-2);
  transform: scaleX(0); transform-origin: left;
}
.hero__dots button.is-active::after { animation: dotFill var(--slide-ms, 6500ms) linear forwards; }
.hero__dots button.is-done::after { transform: scaleX(1); }
@keyframes dotFill { to { transform: scaleX(1); } }

.hero__scroll {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cream);
}
.hero__scroll i { position: relative; width: 1px; height: 46px; background: rgba(246,239,227,.25); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%;
  background: var(--gold-2);
  animation: scrollCue 2.2s var(--ease-io) infinite;
}
@keyframes scrollCue { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* Entrada del hero tras el preloader */
.js [data-hero-in] { opacity: 0; transform: translateY(26px); }
.js .hero__title .line > span { transform: translateY(105%); opacity: 1; }
.js .hero__title[data-hero-in] { opacity: 1; transform: none; }
body.is-loaded [data-hero-in] {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}
body.is-loaded .hero__eyebrow { transition-delay: .7s; }
body.is-loaded .hero__title .line > span { transform: none; transition: transform 1.6s var(--ease) .75s; }
body.is-loaded .hero__lead { transition-delay: 1.05s; }
.js .hero__text::before { opacity: 0; }
body.is-loaded .hero__text::before { opacity: 1; transition: opacity 1.6s var(--ease) .6s; }
body.is-loaded .hero__meta { transition-delay: 1.4s; }

/* ==========================================================================
   Motor de reservas
   ========================================================================== */
.booking { position: relative; z-index: 10; margin-top: -112px; }
.booking__card {
  background: var(--ivory);
  box-shadow: var(--shadow);
  padding: 26px 30px 18px;
  border-top: 2px solid var(--gold);
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s var(--ease) 1.5s, transform 1.4s var(--ease) 1.5s, box-shadow .6s;
}
body.is-loaded .booking__card { opacity: 1; transform: none; }
.booking__card.is-highlight { animation: pulseRing 1.6s var(--ease); }
@keyframes pulseRing {
  0%   { box-shadow: var(--shadow), 0 0 0 0 rgba(198,160,108,.55); }
  100% { box-shadow: var(--shadow), 0 0 0 22px rgba(198,160,108,0); }
}

.booking__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.booking__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brown);
}
.booking__badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(198,160,108,.6);
  animation: live 2.4s infinite;
}
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(198,160,108,0); } 100% { box-shadow: 0 0 0 0 rgba(198,160,108,0); } }
.booking__title { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--espresso); }

.booking__fields {
  display: grid;
  grid-template-columns: 1fr 1fr .85fr .85fr 1.45fr auto;
  align-items: stretch;
  border: 1px solid var(--line);
}
.field {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 20px;
  border-right: 1px solid var(--line);
  transition: background-color .4s;
  min-width: 0;
}
.field:hover, .field:focus-within { background: var(--cream); }
.field label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--camel);
  margin-bottom: 4px;
}
.field__control { position: relative; display: flex; align-items: center; gap: 10px; min-height: 30px; }
.field__control > svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--brown); stroke-width: 1.3; }
.field__value {
  font-family: var(--serif); font-size: 20px; color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field__value.is-placeholder { color: var(--text-soft); opacity: .7; }
.field--date input {
  position: absolute; inset: -12px -20px; width: calc(100% + 40px); height: calc(100% + 24px);
  opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.field--date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.field--date.is-invalid label { color: #A0522D; }

.field__control--select select {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%237B5638' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right center / 12px;
  border: 0; padding: 0 20px 0 0;
  font-family: var(--serif); font-size: 20px; color: var(--espresso);
  cursor: pointer; outline: none;
  text-overflow: ellipsis;
}
.field__control--select select:focus-visible { outline: none; }
.field:focus-within { box-shadow: inset 0 -2px 0 var(--gold); }

.booking__submit { min-height: 100%; border-radius: 0; padding: 0 40px; }
.booking__note {
  margin-top: 14px;
  font-size: 12px; letter-spacing: .06em; color: var(--text-soft);
  min-height: 1.5em;
  transition: color .3s;
}
.booking__note.is-error { color: #A0522D; }

/* ==========================================================================
   Bienvenida
   ========================================================================== */
.welcome { padding-top: calc(var(--section) * .85); }
.welcome__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center;
}
.welcome__text { max-width: 600px; position: relative; isolation: isolate; }
.welcome__media { position: relative; padding: 0 0 18% 0; }
.welcome__media .frame--tall { width: 90%; margin-left: auto; aspect-ratio: 1 / 1; }
.welcome__media .frame--small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border: 10px solid var(--ivory);
  box-shadow: var(--shadow);
}
/* Marca de agua del árbol detrás del texto */
.welcome__mark {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 85%; height: auto;
  transform: translate(-50%, -50%);
  filter: grayscale(1); opacity: .08;
  pointer-events: none;
}

.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.frame--arch { border-radius: 400px 400px 0 0; }

.stats {
  margin-top: clamp(56px, 6.5vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats li { padding: 34px 24px 0 0; display: grid; gap: 8px; }
.stats li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.stats strong {
  font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 300; line-height: 1; color: var(--espresso);
}
.stats span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }

/* ==========================================================================
   Cinta (marquee)
   ========================================================================== */
.marquee {
  overflow: hidden; padding-block: 16px;
  background: var(--espresso); color: var(--beige);
  border-block: 1px solid rgba(198,160,108,.25);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1;
}
.marquee i { font-style: normal; font-size: 11px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Encabezados de sección
   ========================================================================== */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head__text { margin-top: 24px; max-width: 520px; color: var(--text-soft); }
.section-head--center { text-align: center; text-align-last: center; margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.section-head--split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.section-head--split .section-head__text { margin-top: 0; }

/* ==========================================================================
   Apartamentos
   ========================================================================== */
.room {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  scroll-margin-top: 100px;
}
.room + .room { margin-top: clamp(80px, 10vw, 150px); }
/* En la invertida la foto pasa a la derecha con el mismo ancho que en la 01 */
.room--reverse { grid-template-columns: 1fr 1.35fr; }
.room--reverse .room__media { order: 2; }

.room__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sand); }
.room__slides, .room__slides img { position: absolute; inset: 0; }
.room__slides img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease);
}
.room__slides img.is-active { opacity: 1; transform: scale(1); }
.room__media:hover .room__slides img.is-active { transform: scale(1.03); }

.room__nav {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  background: var(--ivory); padding: 6px;
}
.room__nav button {
  width: 44px; height: 44px; display: grid; place-items: center;
  transition: background-color .3s;
}
.room__nav button:hover { background: var(--sand); }
.room__nav svg { width: 18px; height: 18px; fill: none; stroke: var(--espresso); stroke-width: 1.3; }
.room__nav span { min-width: 52px; text-align: center; font-family: var(--serif); font-size: 17px; color: var(--cocoa); }

.room__body { max-width: 480px; }
.room__index {
  display: block;
  font-family: var(--serif); font-size: 88px; font-weight: 300; line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--camel);
  margin-bottom: 16px;
}
.room__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.08; color: var(--espresso);
  margin-bottom: 22px;
}
.room__body > p { color: var(--text-soft); }
.tags {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.tags li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; letter-spacing: .02em; color: var(--cocoa); }
.tags svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--brown); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.room__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 32px; margin-top: 38px; }
.room__actions .link-arrow { margin-top: 0; }

/* ==========================================================================
   Sobre
   ========================================================================== */
.about { padding-block: calc(var(--section) * .8); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(56px, 8vw, 128px); align-items: center;
}
.about__text { max-width: 560px; }
.about__text .lead { margin-top: 24px; }
.about__copy { margin-top: 18px; font-size: 15px; color: var(--text-soft); }
.about__copy strong { color: var(--cocoa); font-weight: 600; }
.about__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.about__facts li { display: grid; gap: 6px; padding-right: 18px; }
.about__facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.about__facts strong { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.1; color: var(--espresso); }
.about__facts span { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; color: var(--camel); }

/* Carrusel de fotos del alojamiento con la insignia en la esquina */
.about__media { position: relative; isolation: isolate; }
/* Filete fino desplazado detrás de la foto */
.about__media::before {
  content: ""; position: absolute; z-index: -1; inset: 22px -22px -22px 22px;
  border: 1px solid rgba(180,142,99,.55);
}
.about__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 600px; width: 100%; background: var(--espresso); }
.about__slides { position: absolute; inset: 0; }
.about__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease-io); }
.about__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  transition: transform 8s cubic-bezier(.25, .1, .25, 1);
}
.about__slide.is-active { opacity: 1; z-index: 1; }
.about__slide.is-active img { transform: scale(1); }
.about__bar {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 80px clamp(18px, 2.2vw, 30px) clamp(16px, 2vw, 26px);
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  color: var(--cream);
}
.about__caption {
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1;
}
.about__caption i { width: 32px; height: 1px; background: rgba(246,239,227,.5); }
.about__caption [data-about-caption] { font-style: italic; transition: opacity .5s; }
.about__caption.is-changing [data-about-caption] { opacity: 0; }
.about__dots { display: flex; gap: 8px; }
.about__dots button { position: relative; width: 28px; height: 22px; }
.about__dots button::before, .about__dots button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(246,239,227,.35);
}
.about__dots button::after { background: var(--gold-2); transform: scaleX(0); transform-origin: left; }
.about__dots button.is-active::after { animation: dotFill var(--about-ms, 5500ms) linear forwards; }
.about__dots button.is-done::after { transform: scaleX(1); }

.about__badge {
  position: absolute; z-index: 6; right: 0; top: 0;
  width: 126px; height: 126px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory);
  box-shadow: var(--shadow);
  transform: translate(50%, -50%);
}
.about__badge img { width: 54px; position: relative; z-index: 1; }
.about__ring {
  position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px);
  animation: spin 28s linear infinite;
}
.about__ring text {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; fill: var(--brown);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Galería
   ========================================================================== */
.gallery { overflow: hidden; }

/* Carruseles que se pueden deslizar con el dedo o arrastrando */
[data-hero], .about__frame, .room__media, .coverflow__stage, .lightbox { touch-action: pan-y; }
[data-hero] img, .about__frame img, .room__media img, .coverflow__stage img { -webkit-user-drag: none; user-select: none; }

/* Carrusel de tarjetas: la central en primer plano, las laterales difuminadas */
.coverflow { --cw: min(42vw, 580px); position: relative; }
.coverflow__stage {
  position: relative; height: calc(var(--cw) / 1.5);
  touch-action: pan-y; user-select: none;
}
.cf-card {
  --d: 0; --s: 1;
  position: absolute; left: 50%; top: 0;
  width: var(--cw); aspect-ratio: 3 / 2; overflow: hidden;
  background: #000;
  transform: translateX(calc(-50% + var(--d) * var(--cw) * .66)) scale(var(--s));
  transition: transform 1s var(--ease), filter 1s var(--ease), opacity 1s var(--ease), box-shadow 1s var(--ease);
  cursor: pointer;
}
.cf-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.4s var(--ease); }
.cf-card.is-active { cursor: zoom-in; box-shadow: 0 40px 70px -35px rgba(51,36,26,.55); }
.cf-card.is-active:hover img { transform: scale(1.04); }

.coverflow__ui {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 3.5vw, 44px);
}
.coverflow__caption {
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1; color: var(--espresso);
}
.coverflow__caption i { width: 32px; height: 1px; background: var(--camel); }
.coverflow__caption [data-cf-title] { font-style: italic; color: var(--brown); transition: opacity .4s; }
.coverflow__caption.is-changing [data-cf-title] { opacity: 0; }
.coverflow__progress { position: relative; height: 1px; background: var(--line); }
.coverflow__progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brown); transition: width .9s var(--ease); }
.coverflow__nav { display: flex; gap: 10px; }
.coverflow__nav button {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .3s, border-color .3s;
}
.coverflow__nav button:hover { background: var(--espresso); border-color: var(--espresso); }
.coverflow__nav svg { width: 18px; height: 18px; fill: none; stroke: var(--espresso); stroke-width: 1.3; transition: stroke .3s; }
.coverflow__nav button:hover svg { stroke: var(--ivory); }

/* ==========================================================================
   Servicios
   ========================================================================== */
/* Cuadrados con el icono; al pasar por encima (o tocar en móvil) se abre la ficha sobre un fondo difuminado */
.services__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px);
  max-width: 760px; margin-inline: auto;
}
.service {
  position: relative; aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--ivory); border: 1px solid var(--line);
  outline: none; cursor: pointer;
}
.js .service[data-reveal].is-in { transition: opacity .6s var(--ease), transform .8s var(--ease), border-color .4s, background-color .4s; }
.service__icon svg, .service__pop-icon svg { fill: none; stroke: var(--brown); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.service__icon svg { width: clamp(44px, 5vw, 60px); height: auto; transition: opacity .3s; }
.service:hover, .service:focus-visible { z-index: 141; }

/* Capa difuminada que cubre toda la pantalla mientras la ficha está abierta */
.services::after {
  content: ""; position: fixed; inset: 0; z-index: 140;
  background: rgba(25,17,12,.38);
  -webkit-backdrop-filter: blur(10px) saturate(.9); backdrop-filter: blur(10px) saturate(.9);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease);
}
.services:has(.service:hover, .service:focus-visible)::after { opacity: 1; }

.service__pop {
  position: absolute; left: 50%; top: 50%; z-index: 142;
  width: min(360px, 86vw); padding: 44px 40px 40px;
  background: var(--ivory);
  outline: 1px solid rgba(180,142,99,.4); outline-offset: -12px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.55), 0 18px 36px -18px rgba(0,0,0,.3);
  display: grid; justify-items: center; text-align: center; text-align-last: center;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -44%) scale(.94);
  transition: opacity .4s var(--ease), transform .7s var(--ease);
}
/* La ficha no recibe el ratón: solo el cuadrado cuenta como hover */
.service:hover .service__pop, .service:focus-visible .service__pop { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.service__pop-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--camel); margin-bottom: 22px;
}
.service__pop-icon svg { width: 34px; height: 34px; stroke: var(--brown); }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--espresso); }
.service h3::after { content: ""; display: block; width: 36px; height: 1px; margin: 16px auto 16px; background: var(--gold); }
.service p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; text-align: center; }

/* Solo móvil: sin ventanas, el texto se ve directamente */
@media (max-width: 720px) {
  .services__grid { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .service {
    aspect-ratio: auto; place-items: initial;
    grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 18px;
    padding: 20px 0; background: none; border: 0; border-bottom: 1px solid var(--line);
    cursor: default;
  }
  .service:first-child { border-top: 1px solid var(--line); }
  .service:hover, .service:focus-visible { border-color: var(--line); }
  .services::after { display: none; }
  .service__icon svg { width: 34px; }
  .service__pop, .service:hover .service__pop, .service:focus-visible .service__pop {
    position: static; width: auto; padding: 0; display: block; justify-items: normal;
    background: none; outline: 0; box-shadow: none;
    text-align: left; text-align-last: auto;
    opacity: 1; transform: none; transition: none;
  }
  .service__pop-icon { display: none; }
  .service h3 { font-size: 22px; margin-bottom: 4px; }
  .service h3::after { display: none; }
  .service p { text-align: left; line-height: 1.6; }
}

/* ==========================================================================
   Gijón
   ========================================================================== */
.city { background: var(--ink); color: var(--cream); overflow: hidden; padding-block: calc(var(--section) * .85); }
/* Un fondo difuminado por pestaña que cambia con un fundido */
.city__bg { position: absolute; inset: 0; overflow: hidden; }
.city__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s var(--ease-io), transform 6s var(--ease);
}
.city__bg img.is-active { opacity: 1; transform: scale(1); }
.city__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,14,10,.84) 0%, rgba(20,14,10,.62) 45%, rgba(20,14,10,.5) 100%),
    linear-gradient(to bottom, rgba(20,14,10,.35), transparent 30%, transparent 70%, rgba(20,14,10,.45));
}
.city__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 128px); align-items: start;
}
.city__lead { margin-top: 22px; font-size: 15.5px; color: var(--beige); max-width: 440px; }

/* Pestañas como enlaces subrayados */
.tabs__list { display: grid; gap: 6px; margin-top: clamp(32px, 4vw, 48px); justify-items: start; }
.tabs__list button {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 0 12px;
  font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 400; line-height: 1.1;
  color: rgba(246,239,227,.62);
  transition: color .4s;
}
.tabs__list button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: rgba(246,239,227,.32);
  transform-origin: left; transition: background-color .4s, height .3s;
}
.tabs__list button svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .4s, transform .5s var(--ease);
}
.tabs__list button:hover { color: var(--ivory); }
.tabs__list button:hover::after { background: rgba(246,239,227,.7); }
.tabs__list button:hover svg { opacity: .7; transform: none; }
.tabs__list button[aria-selected="true"] { color: var(--ivory); }
.tabs__list button[aria-selected="true"]::after { background: var(--gold); height: 2px; }
.tabs__list button[aria-selected="true"] svg { opacity: 1; transform: none; color: var(--gold-2); }
.tabs__list button:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 6px; }

.city__panels { padding-top: clamp(8px, 1vw, 16px); }
.tabs__panel { display: grid; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-active .place { animation: placeIn .9s var(--ease) both; }
.tabs__panel.is-active .place:nth-child(2) { animation-delay: .08s; }
.tabs__panel.is-active .place:nth-child(3) { animation-delay: .16s; }
@keyframes placeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.place {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px;
  padding: 24px 0; border-bottom: 1px solid rgba(246,239,227,.14);
}
.place:first-child { padding-top: 0; }
.place__num { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.6; color: var(--gold-2); }
.place h3 { margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.15; color: var(--ivory); }
.place p { font-size: 14.5px; color: var(--cream); line-height: 1.65; }
.city__panels { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.city__credits { grid-column: 1 / -1; margin-top: 8px; font-size: 11px; line-height: 1.6; color: rgba(246,239,227,.5); }
.city__credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.city__credits a:hover { color: var(--cream); }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.location { padding-block: calc(var(--section) * .7); }
.location__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.location__address {
  margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--espresso);
}
.location__address strong { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); margin-bottom: 4px; }
.routes { display: grid; margin: 22px 0 26px; }
.routes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.routes li:first-child { border-top: 1px solid var(--line); }
.routes svg { width: 26px; height: 26px; fill: none; stroke: var(--brown); stroke-width: 1.2; stroke-linejoin: round; }
.routes h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; color: var(--espresso); }
.routes p { font-size: 14px; line-height: 1.55; color: var(--text-soft); }
.location .link-arrow { margin-top: 0; }

.location__map { position: relative; min-height: 380px; overflow: hidden; background: var(--sand); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.2) saturate(.85) contrast(.98); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head > p:last-child { margin-top: 26px; color: var(--text-soft); }
.faq__head a { color: var(--brown); border-bottom: 1px solid currentColor; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 400; color: var(--espresso);
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--brown); }
.acc summary i { position: relative; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--beige); border-radius: 50%; transition: background-color .4s, border-color .4s; }
.acc summary i::before, .acc summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--cocoa);
  transform: translate(-50%, -50%); transition: transform .5s var(--ease), background-color .4s;
}
.acc summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] summary i { background: var(--espresso); border-color: var(--espresso); }
.acc[open] summary i::before, .acc[open] summary i::after { background: var(--gold-2); }
.acc[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 60px 30px 0; color: var(--text-soft); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { position: relative; overflow: hidden; color: var(--cream); text-align: center; text-align-last: center; scroll-margin-top: 0; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Se funde arriba con la sección anterior (FAQ, arena) y abajo con el footer */
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--sand) 0%, rgba(234,220,198,.55) 9%, rgba(234,220,198,0) 26%),
    linear-gradient(to bottom, rgba(37,26,19,.55) 0%, rgba(37,26,19,.78) 50%, var(--ink) 100%);
}
.cta__inner { position: relative; padding-block: clamp(110px, 12vw, 160px) clamp(56px, 6vw, 80px); display: grid; justify-items: center; }
.cta__mark { width: 72px; margin-bottom: 22px; }
.cta .title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.cta__inner > p { margin-top: 16px; max-width: 46ch; color: var(--beige); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--beige); padding-top: clamp(40px, 5vw, 64px); font-size: 14.5px; }
.footer__bottom { padding-right: 96px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: 72px; }
.footer__brand img { width: 120px; margin-bottom: 26px; }
.footer__brand p { max-width: 28ch; font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--cream); }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h3 { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.footer__col a, .footer__cookies { justify-self: start; text-align: left; transition: color .3s; }
.footer__col a:hover, .footer__cookies:hover { color: var(--ivory); }
.footer__col address { margin-bottom: 6px; }
.footer__cookies { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(213,190,156,.4); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 26px; border-top: 1px solid rgba(213,190,156,.14);
  font-size: 12.5px; color: rgba(213,190,156,.7);
}
.to-top {
  width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(213,190,156,.3); border-radius: 50%;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: var(--beige); stroke-width: 1.3; }
.to-top:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-4px); }
.to-top:hover svg { stroke: var(--ink); }

/* ==========================================================================
   Elementos flotantes
   ========================================================================== */
.fab {
  position: fixed; z-index: 80; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center;
}
/* WhatsApp: mismo botón que aidra.es */
.fab__wa {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.25), 0 4px 6px -4px rgba(0,0,0,.25);
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.fab__wa:hover { transform: scale(1.1); background: #1ebe5b; box-shadow: 0 20px 25px -5px rgba(0,0,0,.25), 0 8px 10px -6px rgba(0,0,0,.25); }
.fab__wa:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(37,211,102,.4); }
.fab__wa svg { position: relative; width: 28px; height: 28px; }
.fab__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .55;
  animation: wa-pulse 2.4s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.fab__label {
  position: absolute; right: 100%; margin-right: 12px;
  display: none; white-space: nowrap;
  padding: 8px 12px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.fab__wa:hover .fab__label, .fab__wa:focus-visible .fab__label { opacity: 1; }
@media (min-width: 640px) {
  .fab { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .fab__wa { width: 64px; height: 64px; }
  .fab__wa svg { width: 32px; height: 32px; }
}
@media (min-width: 1024px) { .fab__label { display: block; } }

/* Reservar (solo móvil): círculo debajo de WhatsApp, aparece al pasar el buscador */
.float-book {
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 0; margin-top: 0; border-radius: 50%; overflow: hidden;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 15px -3px rgba(37,26,19,.35);
  opacity: 0; transform: scale(.6);
  transition: height .45s var(--ease), margin-top .45s var(--ease), opacity .35s, transform .45s var(--ease);
}
.float-book svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.float-book.is-visible { height: 56px; margin-top: 12px; opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  background: rgba(25, 17, 12, .96);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; max-height: 100vh; padding: 40px 0; }
.lightbox__figure img {
  max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain;
  transform: scale(.96); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.lightbox__figure img.is-in { transform: none; opacity: 1; }
.lightbox__figure figcaption { font-family: var(--serif); font-size: 18px; color: var(--beige); text-align: center; }
.lightbox__arrow { width: 56px; height: 56px; justify-self: center; display: grid; place-items: center; border: 1px solid rgba(213,190,156,.3); border-radius: 50%; transition: background-color .3s; }
.lightbox__arrow:hover { background: rgba(213,190,156,.12); }
.lightbox__arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 1.3; }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; }
.lightbox__close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: var(--cream); transform: rotate(45deg); }
.lightbox__close span + span { transform: rotate(-45deg); }

/* Aviso de cookies */
.cookie {
  position: fixed; z-index: 150; left: 20px; bottom: 20px;
  max-width: 360px; padding: 20px 22px;
  background: var(--ivory); box-shadow: var(--shadow); border-top: 2px solid var(--gold);
  font-size: 12.5px; line-height: 1.6; color: var(--text-soft);
  transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .6s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-visible { transform: none; opacity: 1; }
.cookie a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.cookie .btn--sm { min-height: 38px; padding: 0 18px; }

/* ==========================================================================
   Animaciones de aparición (solo con JS activo)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Cortina del color de la sección que se recoge hacia arriba */
.js [data-reveal-img]::before {
  content: ""; position: absolute; inset: -1px; z-index: 5;
  background: var(--curtain, var(--ivory));
  transform-origin: top;
  transition: transform 1.5s var(--ease-io);
  transition-delay: var(--d, 0s);
  pointer-events: none;
}
.js [data-reveal-img].is-in::before { transform: scaleY(0); }
.js .frame[data-reveal-img] > img,
.js .room__media[data-reveal-img] > .room__slides,
.js .about__frame[data-reveal-img] > .about__slides { scale: 1.22; }
.js .frame[data-reveal-img] > img { transition: scale 2s var(--ease) var(--d, 0s); }
.js .room__media[data-reveal-img] > .room__slides,
.js .about__frame[data-reveal-img] > .about__slides { transition: scale 2s var(--ease) var(--d, 0s); }
.js [data-reveal-img].is-in > img,
.js [data-reveal-img].is-in > .room__slides,
.js [data-reveal-img].is-in > .about__slides { scale: 1; }
.section--sand  { --curtain: var(--sand); }
.section--cream { --curtain: var(--cream); }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.js [data-split].is-in .w > span { transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1380px) {
  .header__phone span { display: none; }
}

@media (max-width: 1180px) {
  .booking__fields { grid-template-columns: repeat(4, 1fr); }
  .field--wide { grid-column: span 3; border-top: 1px solid var(--line); }
  .booking__submit { border-top: 1px solid var(--line); min-height: 64px; }
  .field:nth-child(4) { border-right: 0; }
  .services__grid { max-width: 620px; }
}

@media (max-width: 1280px) {
  .nav { display: none; }
  .burger { display: block; }
}

@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .header__actions .btn, .header__phone { display: none; }
  .header__logo { width: 62px; }
  .header.is-scrolled { --header-h: 68px; }
  .header.is-scrolled .header__logo { width: 50px; }

  .welcome__grid, .about__grid, .location__grid, .faq__grid { grid-template-columns: 1fr; }
  .welcome__media { max-width: 620px; }
  .about__media { max-width: 520px; margin-right: 22px; }
  .about__frame { aspect-ratio: 4 / 3; }
  .about__badge { transform: translate(30%, -40%); }
  .room, .room--reverse { grid-template-columns: 1fr; }
  .room--reverse .room__media { order: 0; }
  .room__body { max-width: 640px; }
  .city__inner { grid-template-columns: 1fr; gap: 36px; }
  /* Cuadrícula 2 x 2 ordenada: mismas columnas, texto centrado y línea a todo el ancho */
  .tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; column-gap: 20px; row-gap: 4px; }
  .tabs__list button { justify-content: center; font-size: 1.2rem; white-space: nowrap; }
  .tabs__list button svg { display: none; }
  .location__map { min-height: 0; aspect-ratio: 4 / 3; }
  .faq__head { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-book { display: flex; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .hero { min-height: 600px; }
  .hero__content { padding-bottom: 80px; }
  .hero__meta { bottom: 64px; }
  .hero__counter, .hero__scroll span { display: none; }
  .hero__meta { justify-content: center; }
  .hero__scroll { position: absolute; right: var(--gutter); }

  .booking { margin-top: -40px; }
  .booking__card { padding: 22px 16px 14px; }
  .booking__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .booking__fields { grid-template-columns: 1fr 1fr; }
  .field { padding: 12px 14px; }
  .field:nth-child(2n) { border-right: 0; }
  .field:nth-child(n+3) { border-top: 1px solid var(--line); }
  .field--wide { grid-column: 1 / -1; border-right: 0; }
  .booking__submit { grid-column: 1 / -1; }
  .field__value, .field__control--select select { font-size: 18px; }
  .field--date input { inset: -12px -14px; width: calc(100% + 28px); }

  .welcome__mark { width: 100%; }
  .coverflow { --cw: 70vw; }
  .coverflow__ui { grid-template-columns: 1fr auto; }
  .coverflow__progress { grid-column: 1 / -1; grid-row: 2; }
  .coverflow__nav button { width: 46px; height: 46px; }
  .about__frame { aspect-ratio: 1 / 1; }
  .about__facts li + li { padding-left: 14px; }
  .about__facts li { padding-right: 10px; }
  .about__badge { width: 92px; height: 92px; transform: translate(10%, -35%); }
  .about__badge img { width: 40px; }
  .about__ring text { font-size: 12px; }
  .about__dots button { width: 26px; }
  .acc__body p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__arrow { position: absolute; bottom: 24px; }
  .lightbox__arrow--prev { left: calc(50% - 70px); }
  .lightbox__arrow--next { right: calc(50% - 70px); }
  .room__index { font-size: 64px; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .hero__slide img, .about__slide img { transform: none !important; }
}

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.legal-page .header { color: var(--espresso); }
.legal-hero {
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  background: var(--sand);
  text-align: center; text-align-last: center;
}
.legal-hero .title { max-width: 18ch; margin-inline: auto; }
.legal-hero .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.legal-body { padding-block: clamp(64px, 8vw, 112px); }
.legal-content { max-width: 820px; margin-inline: auto; color: var(--text-soft); }
.legal-content h1 { display: none; }
.legal-content h2 {
  margin: 2.2em 0 .7em;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--espresso);
}
.legal-content h3 { margin: 1.8em 0 .6em; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--espresso); }
.legal-content h4 { margin: 1.6em 0 .5em; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--cocoa); }
.legal-content > :first-child { margin-top: 0; }
.legal-content p { margin: 0 0 1em; }
.legal-content ul, .legal-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.legal-content ul { list-style: none; padding-left: 0; }
.legal-content ul li { position: relative; padding-left: 22px; margin-bottom: .55em; }
.legal-content ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--gold); }
.legal-content ol li { margin-bottom: .55em; }
.legal-content strong { color: var(--cocoa); }
.legal-content a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.legal-content th, .legal-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content th { background: var(--cream); color: var(--espresso); }
.legal-back { display: flex; justify-content: center; margin-top: 64px; }
