@font-face {
  font-family: Barlow;
  src: url('./assets/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url('./assets/fonts/barlow-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('./assets/fonts/barlow-semi-condensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #092332;
  --deep: #061a27;
  --muted: #3e5964;
  --ice: #c3ebf2;
  --paper: #f1f6f6;
  --white: #fff;
  --line: #c3d1d5;
  --measure: 82rem;
  font-family: Barlow, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
p, h1, h2, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #0b7084; outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }
.marco { width: min(calc(100% - 7rem), var(--measure)); margin-inline: auto; }
.sr, .salto:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.salto:focus { position: absolute; z-index: 5; background: var(--paper); padding: .65rem 1rem; }
.cabecera {
  position: absolute;
  z-index: 2;
  width: 100%;
  color: var(--white);
  background: linear-gradient(180deg, #061a279e, transparent);
}
.cabecera-interior {
  min-height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  border-bottom: 1px solid #ffffff45;
}
.firma { font-size: 1.24rem; font-weight: 700; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.firma span { font-weight: 400; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 2.7vw, 2.2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a:hover { text-decoration: underline; }
.nav-reserva { gap: .45rem; border: 1px solid #ffffff8c; border-radius: 50px; padding-inline: 1.05rem; }
.nav-reserva:hover { background: #ffffff1f; }
.ceja { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.ceja span { margin-inline: .25rem; opacity: .7; }

.portada, .reserva { position: relative; isolation: isolate; background: var(--deep); color: var(--white); overflow: hidden; }
.portada { min-height: 40rem; min-height: min(53rem, 100svh); }
.portada-foto { position: absolute; z-index: -2; inset: 0 0 0 27%; }
.portada-foto img, .reserva-foto { display: block; width: 100%; height: 100%; object-fit: cover; }
.portada-foto img { object-position: center 47%; }
.portada::after, .reserva::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #061a27 7%, #061a27 25%, #061a27e3 36%, #061a2759 57%, #061a270a 80%),
    linear-gradient(0deg, #061a277a, transparent 28%);
}
.portada-interior {
  position: relative;
  min-height: inherit;
  display: grid;
  align-items: center;
  padding-block: 8.5rem 7rem;
}
.portada-texto { max-width: 46rem; }
.portada .ceja, .reserva .ceja { color: var(--ice); }
.historia-foto img { display: block; width: 100%; height: auto; }

h1, h2 {
  font-family: 'Barlow Semi Condensed', Barlow, system-ui, sans-serif;
  letter-spacing: -.035em;
  font-weight: 600;
  line-height: 1;
}
h1 { margin-block: .85rem 1.35rem; font-size: clamp(3.2rem, 6vw, 6.8rem); }
h2 { font-size: clamp(2.7rem, 5.3vw, 5.45rem); }
.entradilla { max-width: 38ch; color: #e4f2f6; font-size: clamp(1.02rem, 1.6vw, 1.26rem); }
.acciones { display: flex; flex-wrap: wrap; gap: .85rem 1.3rem; align-items: center; margin-top: 1.65rem; }
.boton {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .65rem 1.2rem;
  color: var(--ink);
  background: var(--ice);
  border: 1px solid transparent;
  border-radius: 50px;
  line-height: 1.3;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .2s, transform .2s;
}
.boton:hover { background: var(--white); transform: translateY(-2px); }
.enlace { font-size: .94rem; font-weight: 700; }
.cabecera a:focus-visible, .portada a:focus-visible, .reserva a:focus-visible { outline-color: var(--ice); }

.tarifas { padding-block: clamp(2rem, 3.75vw, 3.25rem); }
.historia { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.practico { padding-block: clamp(1.6rem, 2.8vw, 2.5rem); }
.tarifas-encabezado {
  display: grid;
  grid-template-columns: 1fr minmax(12rem, .55fr);
  align-items: end;
  gap: .55rem 1.5rem;
  margin-bottom: .9rem;
}
.tarifas h2 { margin-top: .3rem; font-size: clamp(2.35rem, 4.5vw, 4.2rem); }
.tarifas-encabezado > p { max-width: 40ch; color: var(--muted); }
.selector { border: 0; padding: 0; margin: 0; min-width: 0; }
.opciones { display: inline-flex; gap: .25rem; background: #e1eced; border-radius: 50px; padding: .25rem; margin-bottom: .6rem; }
.opciones label {
  display: flex;
  align-items: center;
  gap: .29rem;
  min-height: 44px;
  padding: .4rem .95rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: .9rem;
  transition: background-color .18s, color .18s;
}
.opciones label:hover { background: #cfe2e5; }
#pack-2:checked ~ .opciones label[for=pack-2], #pack-3:checked ~ .opciones label[for=pack-3] { background: var(--ink); color: var(--white); }
#pack-2:focus-visible ~ .opciones label[for=pack-2], #pack-3:focus-visible ~ .opciones label[for=pack-3] { outline: 2px solid #0b7084; outline-offset: 3px; }
.panel { display: none; background: var(--white); }
#pack-2:checked ~ .panel-2, #pack-3:checked ~ .panel-3 { display: block; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
thead { background: var(--ink); color: var(--white); }
thead th { padding: .7rem .25rem; font-size: .86rem; line-height: 1.3; }
thead th:first-child, tbody th { padding-left: clamp(.5rem, 2vw, 1.3rem); text-align: left; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #eaf2f3; }
tbody td, tbody th { padding: .63rem .12rem; }
tbody td { font-size: clamp(.8rem, 2vw, 1.13rem); font-weight: 700; font-variant-numeric: tabular-nums; }

.babela { background: #dcebef; padding-block: clamp(1.75rem, 3.5vw, 3rem); }
.babela-rejilla, .historia { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem clamp(1.5rem, 4.25vw, 4rem); align-items: center; }
.babela-foto img { display: block; width: 100%; height: auto; aspect-ratio: 1.1; object-fit: cover; object-position: 50% 56%; background: #759da7; }
.babela-texto h2, .historia h2, .reserva h2 { margin-block: .4rem .85rem; }
.babela-texto p:not(.ceja), .historia-texto p:not(.ceja) { max-width: 43ch; color: var(--muted); }
.babela-texto .introduccion { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--ink); margin-bottom: .75rem; }
.historia { grid-template-columns: .92fr 1.08fr; border-bottom: 1px solid var(--line); }
.historia h2 { font-size: clamp(2.55rem, 4.9vw, 4.9rem); }
.practico h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); margin-bottom: .85rem; }
.preguntas { display: grid; grid-template-columns: 1.15fr 1fr; gap: .4rem 1.75rem; }
.preguntas details { border-top: 1px solid var(--line); padding: .65rem .1rem .1rem; }
.preguntas summary { font-weight: 700; cursor: pointer; }
.preguntas summary::marker { color: #24586a; }
.preguntas p { margin-top: .35rem; color: var(--muted); }

.reserva-foto { position: absolute; z-index: -2; top: 0; right: 0; width: 57%; object-position: center 56%; }
.reserva::after { background: linear-gradient(90deg, #061a27 26%, #061a27eb 42%, #061a2752 72%, transparent); }
.reserva-interior { padding-block: clamp(2.5rem, 5.5vw, 5rem); }
.reserva-texto > p:not(.ceja) { max-width: 40ch; color: #e5f2f7; }
.reserva .boton { margin-top: 1.3rem; }
.reserva .pago { font-size: .89rem; margin-top: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .portada-texto { animation: entrar .65s ease-out; }
  #pack-2:checked ~ .panel-2, #pack-3:checked ~ .panel-3 { animation: entrar .24s ease-out; }
  @keyframes entrar { from { opacity: .7; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .boton:hover { transform: none; }
}
@media (max-width: 1020px) {
  .marco { width: calc(100% - 4rem); }
}
@media (max-width: 700px) {
  .marco { width: calc(100% - 2.25rem); }
  .cabecera { background: linear-gradient(180deg, #061a27ad, transparent); }
  .cabecera-interior { min-height: 4.35rem; }
  .firma { font-size: 1.08rem; }
  nav { gap: .75rem; }
  nav a { font-size: .82rem; white-space: nowrap; }
  .nav-reserva { padding-inline: .65rem; }
  .nav-reserva span { display: none; }
  .portada { min-height: max(39rem, 92svh); }
  .portada-foto { inset: 0; }
  .portada-foto img { object-position: 49% 36%; }
  .portada::after { background: linear-gradient(0deg, #061a27 3%, #061a27ee 29%, #061a2778 51%, transparent 73%),
    linear-gradient(180deg, #061a2766, transparent 22%); }
  .portada-interior { align-items: end; padding-block: 14rem 4.35rem; }
  h1 { font-size: clamp(2.55rem, 9.6vw, 4.9rem); }
  .entradilla { max-width: 37ch; }
  .tarifas-encabezado, .babela-rejilla, .historia, .preguntas { grid-template-columns: minmax(0, 1fr); }
  .babela-foto img { aspect-ratio: 1.3; object-position: 50% 58%; }
  .reserva-foto { width: 100%; object-position: 50% 36%; }
  .reserva::after { background: linear-gradient(0deg, #061a27 6%, #061a27e8 52%, #061a2742 91%); }
  .reserva-interior { padding-block: 10rem 2.75rem; }
}
@media (max-width: 360px) {
  .cabecera-interior { flex-wrap: wrap; padding-block: .55rem .2rem; gap: 0; }
  nav { width: 100%; justify-content: space-between; }
  .marco { width: calc(100% - 1.8rem); }
  nav { gap: .5rem; }
  nav a { font-size: .77rem; }
  .nav-reserva { padding-inline: .45rem; }
  thead th, tbody th { font-size: .74rem; }
  .opciones label { padding-inline: .65rem; }
}
