/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --navy:    #003053;
  --navy-d:  #001f38;
  --bg:      #F5F5F5;
  --white:   #FFFFFF;
  --text:    #1C1B1B;
  --muted:   #6B6B6B;
  --muted-l: #9E9E9E;
  --rule:    #E8E8E8;
  --max:     1280px;
  --px:      clamp(20px, 6vw, 80px);
  --r4:      4px;
  --r8:      8px;
  --r12:     12px;
  --pill:    9999px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; object-fit: cover; width: 100%; height: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.w { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  height: 80px;
  transition: transform .3s ease, box-shadow .3s;
}
#hdr.up { transform: translateY(-100%); }
#hdr.shad { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.hdr-in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); white-space: nowrap;
}
.nav { display: flex; gap: 36px; list-style: none; }
.nav a {
  font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); transition: color .2s;
}
.nav a:hover { color: var(--navy); }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.btn-res {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--pill);
  padding: 11px 24px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all .2s;
}
.btn-res:hover { background: var(--navy); color: var(--white); }
.hdr-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.hdr-av svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 740px) { .nav { display: none; } }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 72vh; min-height: 420px; max-height: 680px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 48%;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 25, 40, 0.44);
}
.hero-body {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  max-width: 720px;
}
.hero-ey {
  font-size: 16px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  display: block; margin-bottom: 14px;
}
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600; line-height: 1.0;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.65; margin-bottom: 30px;
}
.hero-sub strong { color: var(--white); }
.btn-hero {
  display: inline-block;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--pill);
  padding: 15px 36px;
  font-size: 18px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn-hero:hover { background: var(--navy-d); transform: scale(1.06); }

/* ═══════════════════════════════════════════
   ESPACIO ÚNICO — 60/40, centrado
═══════════════════════════════════════════ */
#espacio {
  background: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
}
.espacio-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;   /* centra verticalmente el bloque de características */
}
.esp-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 42px); font-weight: 600;
  color: var(--text); line-height: 1.2;
  margin-bottom: 24px;
}
.esp-left p {
  font-size: 15px; color: var(--muted);
  line-height: 1.85; margin-bottom: 16px;
}
.esp-right {}
.caract-title {
  font-size: 18px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
  text-align: center;     /* centrado */
  margin-bottom: 28px;
}
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 12px;
}
.feat {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
.feat-c {
  width: 64px; height: 64px; border-radius: 50%;
  background: #F0F0F0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #555;
}
.feat-c svg {
  width: 28px; height: 28px;
}
.feat-n {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-l); line-height: 1.3;
}
@media (max-width: 800px) {
  .espacio-grid { grid-template-columns: 1fr; }
  .caract-title { text-align: center; }
}

/* ═══════════════════════════════════════════
   GALERÍA
═══════════════════════════════════════════ */
#galeria {
  background: var(--bg);
  padding: clamp(52px, 6vw, 88px) 0;
}
.gal-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
}
.gal-hdr h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 600;
  color: var(--text);
}
.gal-tag {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-l);
}
/* ── GALERÍA — grid mosaic 3×3 donde la foto grande ocupa 2×2 ── */
/* Layout: 3 columnas, 3 filas
   - .gm-big = col 1-2, fila 1-2 (la grande)
   - col 3 fila 1 y col 3 fila 2 = fotos apiladas
   - fila 3 = 3 fotos iguales en las 3 cols
*/
.gal-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 210px 210px 200px;
  gap: 10px;
}
.gm-big {
  grid-column: 1 / 3;  /* ocupa columnas 1 y 2 */
  grid-row:    1 / 3;  /* ocupa filas 1 y 2 */
}
.gi {
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
  min-height: 0;   /* necesario para que grid no expanda */
}
.gi img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.gi:hover img { transform: scale(1.04); }
.gi-badge {
  position: absolute; inset: 0;
  background: rgba(8,25,40,.42);
  display: flex; align-items: center; justify-content: center;
  border-radius: 25px;
}
.gi-badge span {
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
.gal-cta { text-align: center; margin-top: 22px; }
.btn-all {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy); border-radius: var(--pill);
  padding: 13px 30px;
  font-size: 18px; font-weight: 600;
  letter-spacing: .04em;
  transition: all .2s;
}
.btn-all:hover { background: var(--navy); color: var(--white); }

/* Responsive galería */
@media (max-width: 768px) {
  .gal-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 150px 150px;
  }
  .gm-big { grid-column: 1 / 3; grid-row: 1 / 2; }
}
@media (max-width: 480px) {
  .gal-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 120px 120px;
  }
  .gi { border-radius: 14px; }
  .gi-badge { border-radius: 14px; }
}

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
#lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.93);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
#lb.open { display: flex; }
#lb-x {
  position: absolute; top: 18px; right: 20px;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
#lb-x:hover { background: rgba(255,255,255,.25); }
#lb-wrap {
  position: relative;
  max-width: min(960px, 92vw); max-height: 78vh;
  border-radius: 10px; overflow: hidden;
}
#lb-img {
  width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: 10px; transition: opacity .13s;
}
.lb-a {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; z-index: 2;
}
.lb-a:hover { background: rgba(255,255,255,.28); }
#lb-p { left: -52px; }
#lb-n { right: -52px; }
#lb-foot { margin-top: 12px; text-align: center; }
#lb-ct { color: rgba(255,255,255,.45); font-size: 12px; margin-bottom: 3px; }
#lb-cp { color: rgba(255,255,255,.72); font-size: 13px; }
@media (max-width: 680px) { #lb-p { left: 8px; } #lb-n { right: 8px; } }

/* ═══════════════════════════════════════════
   EL ENTORNO
═══════════════════════════════════════════ */
#entorno {
  background: var(--white);
  padding: clamp(52px, 6vw, 88px) 0;
}
.entorno-g {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.ent-l h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 600;
  color: var(--text); margin-bottom: 18px;
}
.ent-l p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 13px; }
.link-g {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-top: 6px; transition: gap .2s;
}
.link-g:hover { gap: 8px; }
.mapa {
  border-radius: var(--r8); overflow: hidden;
  border: 1px solid var(--rule);
  height: 300px;
  background: #eee;
  max-width: 50%;          /* mitad del contenedor */
  margin-left: auto;       /* alineado a la derecha dentro de la col */
}
.mapa iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 740px) {
  .entorno-g { grid-template-columns: 1fr; }
  .mapa { height: 220px; max-width: 100%; }
}

/* ═══════════════════════════════════════════
   TARIFAS — calendario doble + resumen
═══════════════════════════════════════════ */
#tarifas {
  background: var(--bg);
  padding: clamp(52px, 6vw, 88px) 0;
}
.tar-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 600;
  color: var(--text); margin-bottom: 24px;
}
.tar-main {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: start;
}
/* Bloque izq: calendario */
.cal-box {
  background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--r12);
  padding: 24px;
}
.cal-hint {
  font-size: 12px; color: var(--muted);
  margin-bottom: 16px;
}
.cal-leyenda {
  display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.ley-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.ley-dot { width: 10px; height: 10px; border-radius: 50%; }
.ley-libre { background: var(--white); border: 1.5px solid var(--rule); }
.ley-no { background: #ddd; }
.ley-of { background: #F59E0B; }
/* Dos meses lado a lado */
.cal-meses {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cal-mes {}
.cal-mes-nav {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.cal-mes-nav span {
  font-size: 13px; font-weight: 600; color: var(--text); flex: 1; text-align: center;
}
.cal-arr {
  background: none; border: none;
  color: var(--navy); font-size: 15px; cursor: pointer;
  padding: 3px 6px; border-radius: 4px;
  transition: background .15s;
}
.cal-arr:hover { background: var(--bg); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; text-align: center;
}
.cal-dh {
  font-size: 9px; font-weight: 600;
  color: var(--muted-l); letter-spacing: .04em;
  padding-bottom: 6px;
}
.cal-day {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 4px; cursor: pointer;
  transition: background .15s;
  font-size: 11px; font-weight: 500; color: var(--text);
  gap: 1px;
}
.cal-day:hover:not(.cd-off):not(.cd-past):not(.cd-blk) { background: #f0f0f0; }
.cd-off { visibility: hidden; cursor: default; }
.cd-past { color: #ccc; cursor: default; }
.cd-blk { background: #efefef; color: #bbb; cursor: not-allowed; }
.cd-sel { background: var(--navy) !important; color: var(--white) !important; border-radius: 4px; }
.cd-range { background: rgba(0,48,83,.1); color: var(--navy); }
.cd-price {
  font-size: 8px; color: var(--muted-l); font-weight: 400; line-height: 1;
}
.cd-sel .cd-price { color: rgba(255,255,255,.7); }
.cd-of-price { color: #F59E0B !important; }
@media (max-width: 640px) { .cal-meses { grid-template-columns: 1fr; } }

/* Resumen reserva */
.resumen {
  background: var(--navy); color: var(--white);
  border-radius: var(--r12); padding: 22px;
  width: 260px; flex-shrink: 0;
}
.res-h { font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.res-dates {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.15);
  border-radius: 6px; overflow: hidden; margin-bottom: 14px;
}
.res-date {
  background: rgba(255,255,255,.08);
  padding: 10px 12px;
}
.res-dl { font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.res-dv { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.9); }
.res-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}
.res-row:last-of-type { border-bottom: none; }
.res-rl { color: rgba(255,255,255,.7); }
.res-rl small { display: block; font-size: 10px; color: rgba(255,255,255,.45); }
.res-ctrl { display: flex; align-items: center; gap: 8px; }
.res-btn {
  background: rgba(255,255,255,.15); border: none; color: var(--white);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; line-height: 1;
}
.res-btn:hover { background: rgba(255,255,255,.28); }
.res-cnt { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; }
.res-sel {
  width: 100%; margin: 14px 0 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); border-radius: 6px; padding: 10px 12px;
  font-size: 12px; font-family: 'Inter', sans-serif;
  appearance: none; cursor: pointer;
}
.res-cancel-help { font-size: 10px; color: rgba(255,255,255,.45); margin: 6px 0 14px; }
.btn-reservar {
  width: 100%; padding: 13px;
  background: rgba(255,255,255,.18); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.btn-reservar:hover { background: rgba(255,255,255,.28); }
.res-nota { text-align: center; font-size: 10px; color: rgba(255,255,255,.4); margin-top: 8px; }
@media (max-width: 900px) {
  .tar-main { grid-template-columns: 1fr; }
  .resumen { width: 100%; }
}

/* ═══════════════════════════════════════════
   CONDICIONES
═══════════════════════════════════════════ */
#condiciones {
  background: var(--bg);
  padding: clamp(52px, 6vw, 88px) 0;
}
.cond-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 700;
  color: var(--text); line-height: 1.1;
  margin-bottom: 40px;
}
.cond-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cond-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.cond-item:nth-child(odd) { padding-right: 40px; }
.cond-item:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--rule); }
.cond-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.cond-item p {
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
@media (max-width: 640px) {
  .cond-grid { grid-template-columns: 1fr; }
  .cond-item:nth-child(odd), .cond-item:nth-child(even) {
    padding: 24px 0; border-left: none;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}
.ft {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.ft-left { display: flex; gap: 24px; flex-wrap: wrap; }
.ft-left a {
  font-size: 12px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s;
}
.ft-left a:hover { color: var(--navy); }
.ft-copy { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ═══════════════════════════════════════════
   WHATSAPP
═══════════════════════════════════════════ */
#wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.42);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
#wa:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.58); }
#wa svg { width: 26px; height: 26px; fill: #fff; }
/* ═══════════════════════════════════════════
   RESPONSIVE ADICIONAL — Mobile First
═══════════════════════════════════════════ */

/* ── Ajuste general de sección en móvil ─── */
@media (max-width: 480px) {
  :root { --px: 16px; }

  /* Header */
  #hdr { height: 56px; }
  .logo { font-size: 13px; }
  .btn-res { padding: 8px 14px; font-size: 9px; }
  .hdr-av { width: 28px; height: 28px; }

  /* Hero */
  #hero { height: calc(100svh - 56px); min-height: 420px; }
  .hero-h1 { font-size: 40px; letter-spacing: -.015em; }
  .hero-sub { font-size: 13px; }
  .btn-hero { padding: 12px 24px; font-size: 10px; }

  /* Un espacio único */
  .esp-left h2 { font-size: 22px; }
  .feat-c { width: 56px; height: 56px; }
  .feat-c svg { width: 22px; height: 22px; }
  .feats { gap: 18px 10px; }

  /* Galería */
  .gal-hdr h2 { font-size: 22px; }

  /* Entorno */
  .ent-l h2 { font-size: 22px; }

  /* Tarifas */
  .tar-h2 { font-size: 22px; }
  .cal-box { padding: 16px; }
  .cal-day { font-size: 10px; }
  .cd-price { font-size: 7px; }
  .resumen { padding: 16px; }
  .res-h { font-size: 12px; }
  .booking-num { font-size: 26px; }

  /* Condiciones */
  .cond-h2 { font-size: 28px; }
  .cond-item h3 { font-size: 15px; }
  .cond-item p { font-size: 13px; }

  /* Footer */
  .ft { flex-direction: column; gap: 10px; align-items: flex-start; }
  .ft-left { flex-wrap: wrap; gap: 12px; }
}

/* ── Tablet (481px – 768px) ──────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  :root { --px: 24px; }

  .hero-h1 { font-size: clamp(40px, 6vw, 60px); }

  .cal-meses { grid-template-columns: 1fr; }

  .cond-grid { grid-template-columns: 1fr; }
  .cond-item:nth-child(odd), .cond-item:nth-child(even) {
    padding: 20px 0; border-left: none;
  }
}

/* ── Evitar zoom en inputs en iOS ───────── */
input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  font-size: 16px !important; /* iOS no hace zoom si font-size >= 16px */
}

/* ── Scroll suave sin barra en móvil ────── */
html { -webkit-overflow-scrolling: touch; }

/* ── Tap highlight desactivado ──────────── */
* { -webkit-tap-highlight-color: transparent; }

/* ── Imágenes responsive ────────────────── */
.gi img,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Lightbox en pantallas pequeñas ─────── */
@media (max-width: 480px) {
  #lb-wrap { max-width: 95vw; border-radius: 6px; }
  #lb-img { border-radius: 6px; }
  #lb-x { top: 12px; right: 12px; width: 34px; height: 34px; font-size: 17px; }
  #lb-p { left: 6px; width: 36px; height: 36px; font-size: 18px; }
  #lb-n { right: 6px; width: 36px; height: 36px; font-size: 18px; }
}
