/* ================================================================
   CASA BRÉTEMA — STYLESHEET v5
   Paleta: Oceano + Arena + Niebla atlántica
================================================================ */

/* ----------------------------------------------------------------
   1. RESET & TOKENS
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-ocean:       #1a2e38;
  --c-ocean-mid:   #253d4a;
  --c-teal:        #4e9a8c;
  --c-teal-light:  #7dbdb2;
  --c-sand:        #e8d5b0;
  --c-fog:         #faf8f4;
  --c-fog-mid:     #f0ece3;
  --c-text:        #2c2c2a;
  --c-text-muted:  #6b6860;
  --c-white:       #ffffff;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Jost', system-ui, sans-serif;

  --fs-hero: clamp(2.8rem, 6vw, 5.2rem);
  --fs-h2:   clamp(2rem, 4vw, 3.2rem);
  --fs-h3:   clamp(1.3rem, 2.5vw, 1.75rem);

  --s-section:     clamp(4rem, 8vw, 7rem);
  --s-gap:         clamp(1.5rem, 3vw, 2.5rem);
  --container:     1180px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  --t-fast:   0.2s ease;
  --t-normal: 0.4s ease;
  --t-slow:   0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:    72px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-fog);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-position: center;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----------------------------------------------------------------
   2. TIPOGRAFÍA
---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--c-teal); }
p  { font-weight: 300; line-height: 1.75; }
strong { font-weight: 500; }

/* ----------------------------------------------------------------
   3. UTILIDADES
---------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section { padding: var(--s-section) 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--s-gap);
}
.section-header h2 { font-size: var(--fs-h2); margin-top: 0.4rem; }

.section-eyebrow {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-teal);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------
   4. BOTONES
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary   { background: var(--c-teal); color: var(--c-white); border-color: var(--c-teal); }
.btn-primary:hover { background: var(--c-ocean); border-color: var(--c-ocean); }

.btn-secondary { background: transparent; color: var(--c-ocean); border-color: var(--c-ocean); }
.btn-secondary:hover { background: var(--c-ocean); color: var(--c-white); }

.btn-ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: var(--c-white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow::after { content: '→'; transition: transform var(--t-fast); }
.link-arrow:hover  { color: var(--c-ocean); gap: 0.75em; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------------------
   5. ANIMACIONES
---------------------------------------------------------------- */
.reveal-fade, .reveal-slide, .reveal-hero {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal-slide { transform: translateX(40px); }
.reveal-fade.is-visible,
.reveal-slide.is-visible,
.reveal-hero.is-visible { opacity: 1; transform: translate(0,0); }

/* ----------------------------------------------------------------
   6. NAVEGACIÓN
---------------------------------------------------------------- */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t-normal), box-shadow var(--t-normal);
}
.nav-header.nav-scrolled {
  background: rgba(26,46,56,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-text {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.logo-text em { font-style: italic; color: var(--c-teal-light); margin-left: 0.2em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--c-teal-light);
  transition: width var(--t-normal);
}
.nav-links a:hover { color: var(--c-white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--c-teal) !important;
  color: var(--c-white) !important;
  padding: 0.6em 1.4em;
  transition: background var(--t-fast) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--c-teal-light) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--c-white);
  transition: transform var(--t-normal), opacity var(--t-fast);
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   7. HERO
---------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 8s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,46,56,0.5) 0%,
    rgba(26,46,56,0.35) 40%,
    rgba(26,46,56,0.7) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px;
  padding: var(--container-pad);
  padding-top: calc(var(--nav-h) + 2rem);
  margin: 0 auto;
  text-align: center;
  color: var(--c-white);
}
.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-teal-light); margin-bottom: 1rem; opacity: 0.9;
}
.hero-title {
  font-family: var(--f-display);
  font-size: var(--fs-hero); font-weight: 300;
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--c-white); margin-bottom: 1.2rem;
}
.hero-title em { color: var(--c-sand); font-style: italic; }
.hero-subtitle {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; letter-spacing: 0.04em;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.55); font-family: var(--f-body);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px; background: rgba(255,255,255,0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ----------------------------------------------------------------
   8. INTRO
---------------------------------------------------------------- */
.intro { background: var(--c-fog); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.intro-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 0.5rem 0 1.25rem; }
.intro-body { font-size: 1.05rem; color: var(--c-text-muted); margin-bottom: 1.75rem; }
.intro-highlights { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.intro-highlights li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; line-height: 1.5; }
.highlight-icon { color: var(--c-teal); font-size: 0.5rem; margin-top: 0.45rem; flex-shrink: 0; }

.distancias-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 1.25rem 0 1.75rem;
  border: 1px solid rgba(26,46,56,0.1); background: var(--c-fog-mid);
}
.distancia-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.9rem 0.5rem; text-align: center;
  border-right: 1px solid rgba(26,46,56,0.08);
}
.distancia-item:last-child { border-right: none; }
.distancia-valor { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; color: var(--c-teal); line-height: 1; }
.distancia-label { font-size: 0.67rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-muted); margin-top: 0.25rem; }

.intro-image { position: relative; overflow: hidden; }
.intro-image img { width: 100%; height: auto; object-fit: contain; background: var(--c-fog-mid); transition: transform 0.6s ease; }
.intro-image:hover img { transform: scale(1.02); }

/* ----------------------------------------------------------------
   9. FORMULARIO DE RESERVA
---------------------------------------------------------------- */
.reservar { background: var(--c-ocean); color: var(--c-white); }
.reservar .section-header h2    { color: var(--c-white); }
.reservar .section-header h2 em { color: var(--c-sand); }
.reservar .section-eyebrow      { color: var(--c-teal-light); }
.reservar .section-lead         { color: rgba(255,255,255,0.7); }

.booking-form-wrapper { max-width: 760px; margin: 0 auto; }
.booking-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-row { display: grid; gap: 1.25rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: var(--f-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.form-required { color: var(--c-teal-light); }
.form-input {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--c-white); font-family: var(--f-body); font-size: 0.95rem; font-weight: 300;
  padding: 0.75rem 1rem; outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%; border-radius: 0; -webkit-appearance: none;
}
.form-input[type="date"] { cursor: pointer; color-scheme: dark; }
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus { border-color: var(--c-teal-light); background: rgba(255,255,255,0.12); }
.form-select {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.2rem;
}
.form-select option { background: var(--c-ocean); color: var(--c-white); }
.telefono-wrap { display: flex; }
.form-select--prefix { width: auto; min-width: 100px; flex-shrink: 0; border-right: none; font-size: 0.85rem; }
.form-textarea { resize: vertical; min-height: 110px; }
.btn-form-submit { align-self: flex-start; font-size: 0.85rem; padding: 1em 2.5em; }
.form-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.25rem; }
.form-disclaimer a { color: var(--c-teal-light); border-bottom: 1px solid currentColor; transition: color var(--t-fast); }
.form-disclaimer a:hover { color: var(--c-sand); }

/* ----------------------------------------------------------------
   10. LA CASA — ROOM BLOCKS
---------------------------------------------------------------- */
.la-casa { background: var(--c-fog-mid); }

.room-block {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(26,46,56,0.1);
}
.room-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.room-block--reverse { grid-template-columns: 2fr 3fr; }
.room-block--reverse .room-images { order: 2; }
.room-block--reverse .room-text   { order: 1; }

.room-images { display: grid; gap: 0.6rem; }
.room-images--single img  { width: 100%; height: auto; object-fit: contain; }
.room-images--double      { grid-template-columns: 1fr 1fr; }
.room-images--double img  { width: 100%; height: auto; object-fit: contain; }
.room-images--triple      { grid-template-columns: 1fr 1fr; }
.room-images--triple img  { width: 100%; height: auto; object-fit: contain; }
.room-images--triple img:first-child { grid-column: 1 / -1; }
.room-images img { transition: transform 0.5s ease; }
.room-images img:hover { transform: scale(1.02); }

.room-text h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; color: var(--c-ocean); }
.room-text p  { font-size: 0.95rem; color: var(--c-text-muted); line-height: 1.8; }

/* ----------------------------------------------------------------
   11. AMENITIES
---------------------------------------------------------------- */
.amenities { background: var(--c-ocean); color: var(--c-white); }
.amenities .section-header h2    { color: var(--c-white); }
.amenities .section-header h2 em { color: var(--c-teal-light); }
.amenities .section-eyebrow      { color: var(--c-sand); opacity: 0.8; }

.amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
}
.amenity-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.75rem 1rem; background: var(--c-ocean);
  text-align: center; font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.8);
  transition: background var(--t-fast), color var(--t-fast);
}
.amenity-item:hover { background: var(--c-ocean-mid, #253d4a); color: var(--c-white); }
.amenity-icon { font-size: 1.6rem; line-height: 1; }

/* ----------------------------------------------------------------
   12. GALERÍA CATEGORIZADA
---------------------------------------------------------------- */
.galeria { background: var(--c-fog); padding-bottom: var(--s-section); }

/* ── Bloque de categoría ── */
.gallery-category {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(26,46,56,0.08);
}
.gallery-category:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ── Título de categoría ── */
.gallery-category-title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--c-ocean);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--c-teal);
}
.gallery-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26,46,56,0.1);
  margin-left: 0.5rem;
}

.gallery-cat-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Grid de fotos dentro de cada categoría ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  align-items: start;   /* filas independientes por altura */
}

.gallery-item {
  overflow: hidden;
  cursor: zoom-in;
  background: var(--c-fog-mid);
}

.gallery-item a {
  display: block;
  overflow: hidden;
  line-height: 0;       /* elimina espacio extra bajo la imagen */
}

/* Fotos respetan su proporción original — sin recorte forzado */
.gallery-item img {
  width: 100%;
  height: auto;         /* mantiene ratio original */
  object-fit: cover;    /* rellena el espacio disponible sin distorsión */
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Las horizontales ocupan 2 columnas del grid */
.gallery-item--wide {
  grid-column: span 2;
}

/* ----------------------------------------------------------------
   13. ENTORNO
---------------------------------------------------------------- */
.entorno { background: var(--c-fog-mid); }

.entorno-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.entorno-card {
  background: var(--c-white); overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-normal);
}
.entorno-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,46,56,0.12); }

.entorno-card-img { overflow: hidden; background: var(--c-fog-mid); }
.entorno-card-img img { width: 100%; height: auto; object-fit: cover; transition: transform 0.5s ease; }
.entorno-card:hover .entorno-card-img img { transform: scale(1.04); }

.entorno-card-body { padding: 1.5rem; }
.entorno-dist {
  font-family: var(--f-body); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-teal);
  display: block; margin-bottom: 0.4rem;
}
.entorno-card h3 { font-size: 1.2rem; color: var(--c-ocean); margin-bottom: 0.5rem; }
.entorno-card p  { font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.65; }

.entorno-extra {
  position: relative; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end;
}
.entorno-extra img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entorno-extra::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,46,56,0.85) 0%, transparent 65%);
}
.entorno-extra-text {
  position: relative; z-index: 1; padding: 3rem var(--container-pad); max-width: 640px; color: var(--c-white);
}
.entorno-extra-text h3 { font-size: clamp(1.5rem,3vw,2rem); color: var(--c-sand); margin-bottom: 0.75rem; }
.entorno-extra-text p  { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* ----------------------------------------------------------------
   14. DOSSIER
---------------------------------------------------------------- */
.dossier { background: var(--c-fog); }
.dossier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.dossier-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 0.5rem 0 1.25rem; }
.dossier-text > p { font-size: 0.95rem; color: var(--c-text-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.dossier-features { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.dossier-features li { display: flex; align-items: flex-start; gap: 1rem; }
.dossier-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }
.dossier-features li div { display: flex; flex-direction: column; gap: 0.15rem; }
.dossier-features strong { font-size: 0.9rem; color: var(--c-ocean); font-weight: 500; }
.dossier-features span  { font-size: 0.82rem; color: var(--c-text-muted); }
.dossier-image { overflow: hidden; }
.dossier-image img { width: 100%; height: auto; object-fit: contain; background: var(--c-fog-mid); transition: transform 0.6s ease; }
.dossier-image:hover img { transform: scale(1.02); }

/* ----------------------------------------------------------------
   15. TARIFAS
---------------------------------------------------------------- */
.tarifas { background: var(--c-fog-mid); }
.tarifas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tarifas-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 0.5rem 0 1.25rem; }
.tarifas-text > p { font-size: 0.95rem; color: var(--c-text-muted); margin-bottom: 2rem; }

.precio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.precio-card {
  border: 1px solid rgba(26,46,56,0.15); padding: 1.5rem; text-align: center;
  background: var(--c-fog); transition: border-color var(--t-fast), background var(--t-fast);
}
.precio-card:hover { border-color: var(--c-teal); background: var(--c-white); }
.precio-card--alt  { background: var(--c-ocean); border-color: var(--c-ocean); color: var(--c-white); }
.precio-card--alt .precio-label  { color: var(--c-teal-light); }
.precio-card--alt .precio-amount strong { color: var(--c-sand); }
.precio-card--alt .precio-note   { color: rgba(255,255,255,0.6); }

.precio-label { font-family: var(--f-body); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--c-teal); margin-bottom: 0.3rem; }
.precio-amount { font-family: var(--f-display); line-height: 1; margin-bottom: 0.3rem; }
.precio-amount strong { font-size: 2.4rem; font-weight: 400; color: var(--c-ocean); }
.precio-amount span   { font-size: 0.9rem; color: var(--c-text-muted); margin-left: 0.2em; }
.precio-note { font-size: 0.75rem; color: var(--c-text-muted); margin: 0; }

.normas-bloque { margin-top: 0.5rem; }
.normas-titulo {
  font-family: var(--f-body); font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--c-ocean);
  margin-bottom: 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(26,46,56,0.12);
}
.normas-titulo--mt { margin-top: 1.5rem; }
.normas-list { display: flex; flex-direction: column; gap: 0.65rem; }
.normas-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.55; }
.normas-list li span:first-child { flex-shrink: 0; margin-top: 0.05rem; }
.norma-nota { display: block; font-size: 0.78rem; color: var(--c-teal); font-style: italic; margin-top: 0.1rem; }

.tarifas-image { overflow: hidden; position: sticky; top: calc(var(--nav-h) + 2rem); }
.tarifas-image img { width: 100%; height: auto; object-fit: contain; background: var(--c-fog); }

/* ----------------------------------------------------------------
   16. MAPA
---------------------------------------------------------------- */
.ubicacion { background: var(--c-fog); }
.ubicacion .section-lead { text-align: center; }
.mapa-container { margin-top: 2rem; overflow: hidden; border: 1px solid rgba(26,46,56,0.12); }
.mapa-container iframe { display: block; }

/* ----------------------------------------------------------------
   17. RESEÑAS
---------------------------------------------------------------- */
.testimonios { background: var(--c-fog-mid); }

.reviews-platforms {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; flex-wrap: wrap;
  margin-top: 0.75rem; font-size: 0.85rem; color: var(--c-text-muted);
}
.platform-badge {
  display: inline-flex; align-items: center;
  padding: 0.25em 0.75em; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.05em; border-radius: 2px;
}
.platform-google  { background: #fff; color: #4285F4; border: 1px solid #ddd; }
.platform-airbnb  { background: #FF5A5F; color: #fff; }
.platform-booking { background: #003580; color: #fff; }

.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonio-card--wide { grid-column: 1 / -1; }

.testimonio-card {
  background: var(--c-white); padding: 2rem;
  border-top: 3px solid var(--c-teal); position: relative;
}
.testimonio-card::before {
  content: '\201C'; position: absolute; top: 0.5rem; right: 1.5rem;
  font-family: var(--f-display); font-size: 5rem; line-height: 1;
  color: var(--c-fog-mid); pointer-events: none;
}
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-ocean); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; flex-shrink: 0;
}
.reviewer-info { display: flex; flex-direction: column; gap: 0.15rem; }
.reviewer-name { font-family: var(--f-body); font-size: 0.88rem; font-weight: 500; color: var(--c-ocean); }
.review-source { font-size: 0.72rem; color: var(--c-text-muted); letter-spacing: 0.04em; }
.review-google  { color: #4285F4; }
.review-airbnb  { color: #FF5A5F; }
.review-booking { color: #003580; }
.testimonio-text {
  font-size: 0.92rem; line-height: 1.8; color: var(--c-text-muted);
  font-style: italic; font-family: var(--f-display); margin-bottom: 1.25rem;
}
.testimonio-footer { display: flex; flex-direction: column; gap: 0.25rem; }
.testimonio-footer cite {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-ocean); font-style: normal;
}

/* ----------------------------------------------------------------
   18. FOOTER
---------------------------------------------------------------- */
.site-footer { background: var(--c-ocean); color: rgba(255,255,255,0.65); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo { font-size: 1.5rem; display: inline-block; margin-bottom: 1rem; }
.footer-brand p   { font-size: 0.85rem; line-height: 1.7; max-width: 280px; margin-bottom: 0.75rem; }
.footer-address   { font-style: normal; font-size: 0.82rem; line-height: 1.6; margin-bottom: 0.5rem; color: rgba(255,255,255,0.55); }
.footer-brand address { font-style: normal; font-size: 0.85rem; line-height: 1.9; }
.footer-brand address a { color: rgba(255,255,255,0.65); transition: color var(--t-fast); }
.footer-brand address a:hover { color: var(--c-teal-light); }

.footer-social { margin-top: 0.75rem; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
  border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
}
.social-link:hover { color: var(--c-teal-light); border-color: var(--c-teal-light); }

.footer-nav h4, .footer-info h4 {
  font-family: var(--f-body); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-sand); margin-bottom: 1rem;
}
.footer-nav ul, .footer-info ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--c-white); }
.footer-info li { font-size: 0.85rem; }

.footer-legal-block {
  font-size: 0.72rem; color: rgba(255,255,255,0.35); padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 1rem; line-height: 1.7;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem;
}
.footer-credit { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.btn-privacy-modal {
  background: none; border: none; color: var(--c-teal-light);
  font-family: var(--f-body); font-size: inherit; cursor: pointer;
  padding: 0; margin-left: 0.75rem; text-decoration: underline;
  text-underline-offset: 3px; transition: color var(--t-fast);
}
.btn-privacy-modal:hover { color: var(--c-white); }

/* ----------------------------------------------------------------
   19. WHATSAPP FAB — fijo, visible, z-index alto
---------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;          /* siempre en pantalla */
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;             /* encima de modales y banners */
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30),
              0 0 0 0 rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Animación de pulso para llamar la atención */
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  animation: none;          /* detiene el pulso al pasar el ratón */
}
.whatsapp-fab svg { flex-shrink: 0; }

@keyframes waPulse {
  0%   { box-shadow: 0 4px 20px rgba(0,0,0,0.30), 0 0 0 0   rgba(37,211,102,0.50); }
  60%  { box-shadow: 0 4px 20px rgba(0,0,0,0.30), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(0,0,0,0.30), 0 0 0 0   rgba(37,211,102,0); }
}

/* ----------------------------------------------------------------
   20. LIGHTBOX — pantalla completa con fondo oscuro
---------------------------------------------------------------- */
.lightbox-modal {
  display: none;            /* oculto por defecto */
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  /* centrado perfecto de la imagen */
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-modal.is-open {
  display: flex;
}

/* Contenido centrado */
.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  /* evita que los botones se superpongan */
  padding: 0 4rem;
}

/* La imagen ampliada */
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;   /* nunca recorta */
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Pie de foto */
.lightbox-caption {
  color: rgba(255,255,255,0.6);
  font-family: var(--f-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-align: center;
  max-width: 600px;
}

/* ── Botones de control ── */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--c-white);
  cursor: pointer;
  line-height: 1;
  padding: 0.4rem 0.75rem;
  opacity: 0.8;
  transition: opacity var(--t-fast), background var(--t-fast), transform var(--t-fast);
  z-index: 1001;
  border-radius: 4px;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.18);
}

/* X de cierre */
.lightbox-close {
  top: 1rem; right: 1.25rem;
  font-size: 2rem;
  padding: 0.25rem 0.7rem;
}

/* Flecha izquierda */
.lightbox-prev {
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  padding: 0.4rem 0.9rem;
}
.lightbox-prev:hover { transform: translateY(-50%) scale(1.15); }

/* Flecha derecha */
.lightbox-next {
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  padding: 0.4rem 0.9rem;
}
.lightbox-next:hover { transform: translateY(-50%) scale(1.15); }

/* ----------------------------------------------------------------
   21. MODAL PRIVACIDAD
---------------------------------------------------------------- */
.privacy-modal {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.65); align-items: center; justify-content: center; padding: 1.5rem;
}
.privacy-modal.is-open { display: flex; }
.privacy-modal-inner {
  background: var(--c-white); max-width: 540px; width: 100%; padding: 2.5rem;
  position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.privacy-modal-inner h2 { font-size: 1.5rem; color: var(--c-ocean); margin-bottom: 1.25rem; }
.privacy-modal-inner p  { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.75; margin-bottom: 1rem; }
.privacy-modal-inner a  { color: var(--c-teal); border-bottom: 1px solid currentColor; }
.privacy-modal-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; font-size: 1.75rem; line-height: 1;
  cursor: pointer; color: var(--c-text-muted); transition: color var(--t-fast);
}
.privacy-modal-close:hover { color: var(--c-ocean); }
.privacy-modal-ok { margin-top: 0.5rem; }

/* ----------------------------------------------------------------
   22. BANNER DE COOKIES
---------------------------------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--c-ocean); color: rgba(255,255,255,0.85);
  padding: 1.1rem var(--container-pad);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cookie-banner-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-text { font-size: 0.85rem; line-height: 1.6; flex: 1; min-width: 200px; }
.cookie-privacy-link {
  background: none; border: none; color: var(--c-teal-light);
  font-family: inherit; font-size: inherit; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; transition: color var(--t-fast);
}
.cookie-privacy-link:hover { color: var(--c-sand); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie-accept { font-size: 0.75rem; padding: 0.65em 1.5em; }
.btn-cookie-reject {
  font-size: 0.75rem; padding: 0.65em 1.5em; background: transparent;
  color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.3);
}
.btn-cookie-reject:hover { background: rgba(255,255,255,0.1); color: var(--c-white); border-color: rgba(255,255,255,0.6); transform: none; }

/* ----------------------------------------------------------------
   23. RESPONSIVE — TABLET ≤ 900px
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .intro-grid, .tarifas-grid, .dossier-grid { grid-template-columns: 1fr; }
  .tarifas-image { position: static; }

  .room-block,
  .room-block--reverse { grid-template-columns: 1fr; }
  .room-block--reverse .room-images { order: 0; }
  .room-block--reverse .room-text   { order: 0; }

  /* Galería: 2 columnas en tablet */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .precio-cards { grid-template-columns: 1fr; }
  .distancias-strip { grid-template-columns: repeat(3, 1fr); }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-content { padding: 0 3.5rem; }
}

/* ----------------------------------------------------------------
   24. RESPONSIVE — MÓVIL ≤ 640px
---------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(26,46,56,0.98); backdrop-filter: blur(12px);
    flex-direction: column; gap: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1.1rem var(--container-pad); border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.8rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 1rem var(--container-pad); text-align: center; display: block; }

  .hero-content { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }

  .room-images--double,
  .room-images--triple { grid-template-columns: 1fr; }
  .room-images--triple img:first-child { grid-column: 1; }

  /* Galería: 1 columna en móvil */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: 1; }

  /* Títulos de categoría más compactos */
  .gallery-category-title { font-size: 1.2rem; }

  .testimonios-grid { grid-template-columns: 1fr; }
  .testimonio-card--wide { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

  .form-row--2 { grid-template-columns: 1fr; }
  .telefono-wrap { flex-direction: column; }
  .form-select--prefix { width: 100%; border-right: 1px solid rgba(255,255,255,0.2); }
  .btn-form-submit { width: 100%; justify-content: center; }

  .entorno-grid { grid-template-columns: 1fr; }
  .distancias-strip { grid-template-columns: repeat(2, 1fr); }

  /* WhatsApp en móvil: bien visible, no tapa contenido importante */
  .whatsapp-fab { bottom: 1rem; right: 1rem; width: 56px; height: 56px; }

  /* Lightbox en móvil */
  .lightbox-content { padding: 0 2.5rem; max-height: 92vh; }
  .lightbox-content img { max-height: 72vh; }
  .lightbox-prev, .lightbox-next { font-size: 1.8rem; padding: 0.3rem 0.6rem; }
  .lightbox-close { font-size: 1.7rem; top: 0.75rem; right: 0.75rem; }

  /* Cookie banner en móvil */
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; justify-content: center; max-width: none; }

  /* Modal privacidad en móvil */
  .privacy-modal-inner { padding: 2rem 1.5rem; }
}

/* ----------------------------------------------------------------
   25. PRINT
---------------------------------------------------------------- */
@media print {
  .nav-header, .whatsapp-fab, .cookie-banner,
  .hero-scroll-hint, .nav-hamburger { display: none; }
  body { background: #fff; color: #000; }
}