/* ============================================================
   ApartmentsOS — styles.css  v2.1
   Los colores --ocean / --coral / --wave se sobreescriben
   dinámicamente desde Supabase (apartment_settings)
   ============================================================ */

/* ── VARIABLES BASE ── */
:root {
  --ocean:        #1e5f8c;
  --coral:        #e8734a;
  --wave:         #4ab3d6;
  --dark:         #0d1117;
  --ink:          #1a2030;
  --paper:        #f9f7f3;
  --border:       #e0dbd0;
  --text:         #3a4050;
  --muted:        #7a8090;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:        60px;
  --r:            14px;
  --shadow:       0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.13);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
body.loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── LOADER ── */
#pageLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.pl-wave {
  font-size: 3rem;
  animation: wave-bob 1.4s ease-in-out infinite;
}
.pl-text {
  font-family: var(--font-body);
  font-size: .85rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .1em;
}
@keyframes wave-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-12px) rotate(5deg); }
}

/* ── NAV ── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
#mainNav.scrolled {
  background: rgba(13, 17, 23, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
}
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { list-style: none; display: flex; gap: .2rem; }
.nav-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  padding: .3rem .7rem;
  border-radius: 100px;
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Selector idioma */
.lang-selector { position: relative; }
.lang-btn {
  font-size: .72rem; color: rgba(255,255,255,.5);
  padding: .3rem .65rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  transition: all .2s;
}
.lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.lang-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.lang-dropdown.show { display: block; }
.lang-option {
  display: block; width: 100%;
  padding: .55rem 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s, color .15s;
}
.lang-option:last-child { border: none; }
.lang-option:hover, .lang-option.active { background: rgba(255,255,255,.07); color: #fff; }

.nav-menu-btn { display: none; color: #fff; font-size: 1.3rem; }

/* Menú móvil */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: var(--dark);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: #fff; font-size: 1.4rem; font-family: var(--font-heading); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,.5); font-size: 1.5rem;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--dark);
}
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,17,23,.55) 0%,
    rgba(13,17,23,.3)  50%,
    rgba(13,17,23,.7)  100%
  );
}
.hero-c {
  position: relative; z-index: 1;
  max-width: 700px;
  padding: 8rem 4rem 5rem;
}
.eyebrow {
  display: block;
  font-size: .72rem;
  color: var(--coral);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--coral); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-p {
  padding: .8rem 1.8rem;
  background: var(--coral);
  color: #fff;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  transition: opacity .2s, transform .2s;
  display: inline-block;
}
.btn-p:hover { opacity: .88; transform: translateY(-1px); }
.btn-g {
  padding: .8rem 1.8rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  font-size: .85rem;
  transition: background .2s;
  display: inline-block;
}
.btn-g:hover { background: rgba(255,255,255,.2); }

/* ── HIGHLIGHTS BAR ── */
.hl-bar {
  background: var(--ocean);
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.hl {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.4rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.1);
  min-width: 120px;
  gap: .2rem;
}
.hl:last-child { border: none; }
.hl-icon { font-size: 1.3rem; }
.hl-lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.hl-val { font-size: .88rem; color: #fff; font-weight: 500; }

/* ── SECCIONES COMUNES ── */
.sec-eye {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--coral);
  margin-bottom: .8rem;
}
.sec-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.sec-text {
  color: var(--muted);
  line-height: 1.85;
  max-width: 580px;
}

/* ── ABOUT ── */
.about { padding: 7rem 4rem; }
.about-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.img-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 240px 180px;
  gap: .6rem;
}
.img-main { grid-column: 1; grid-row: 1/3; border-radius: var(--r); background: var(--wave) center/cover; }
.img-side { grid-column: 2; grid-row: 1;   border-radius: var(--r); background: var(--ocean) center/cover; }
.img-bot  { grid-column: 2; grid-row: 2;   border-radius: var(--r); background: var(--coral) center/cover; }
.amenities { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.amen {
  font-size: .78rem;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--border);
  padding: .3rem .7rem;
  border-radius: 100px;
  color: var(--text);
}
.location-box {
  margin-top: 1.5rem;
  background: rgba(0,0,0,.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.3rem;
  font-size: .88rem;
  color: var(--muted);
}
.location-box h3 { font-size: .88rem; font-family: var(--font-body); font-weight: 600; color: var(--ink); margin-bottom: .3rem; }

/* ── GALERÍA ── */
.gallery { padding: 5rem 0; background: var(--ink); }
.gal-hdr {
  text-align: center; padding: 0 4rem 3rem;
}
.gal-hdr .sec-eye { color: rgba(255,255,255,.45); }
.gal-hdr .sec-title { color: #fff; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
}
.gal-item {
  position: relative; height: 240px; overflow: hidden; cursor: pointer;
}
.gal-bg {
  width: 100%; height: 100%;
  background: var(--ocean) center/cover;
  transition: transform .4s ease;
}
.gal-ov {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gal-ov span { color: #fff; font-size: .8rem; letter-spacing: .1em; }
.gal-item:hover .gal-bg { transform: scale(1.05); }
.gal-item:hover .gal-ov { opacity: 1; }

/* ── RESERVAS ── */
.booking { padding: 7rem 4rem; background: var(--paper); }
.booking-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}

/* Calendario */
.cal-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 2rem;
  background: #fff;
}
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.2rem;
  background: var(--ocean);
}
.cal-nav button {
  color: rgba(255,255,255,.7); font-size: 1.3rem;
  padding: .1rem .5rem;
  border-radius: 6px;
  transition: background .2s;
}
.cal-nav button:hover { background: rgba(255,255,255,.15); color: #fff; }
.cal-month-lbl { font-weight: 600; font-size: .9rem; color: #fff; }
.cal-days-hdr {
  display: grid; grid-template-columns: repeat(7,1fr);
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid var(--border);
  padding: .4rem 0;
}
.cal-days-hdr span { text-align: center; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cal-loading { padding: 2rem; text-align: center; font-size: .82rem; color: var(--muted); }
.cal-loading.hide { display: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); padding: .4rem; gap: 2px; }
.cal-day {
  border-radius: 8px; padding: .45rem .2rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; transition: background .15s;
  min-height: 48px; justify-content: center;
}
.cal-day:hover:not(.booked):not(.past):not(.other) { background: rgba(0,0,0,.05); }
.cal-day.other { opacity: 0; pointer-events: none; }
.cal-day.past { opacity: .3; pointer-events: none; }
.cal-day.booked { background: rgba(255,80,80,.08); cursor: not-allowed; }
.cal-day.booked .day-num { color: rgba(200,50,50,.6); text-decoration: line-through; }
.cal-day.selected { background: var(--coral); }
.cal-day.selected .day-num, .cal-day.selected .day-price { color: #fff; }
.cal-day.in-range { background: rgba(232,115,74,.12); }
.day-num { font-size: .85rem; font-weight: 500; color: var(--ink); }
.day-price { font-size: .6rem; color: var(--ocean); font-weight: 600; }
.cal-legend {
  display: flex; gap: 1.2rem;
  padding: .7rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--muted);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }

/* Extras */
.extras-wrap { margin-top: 1.5rem; }
.extras-mandatory { margin-bottom: .75rem; }
.extra-info {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .5rem .75rem;
  background: rgba(0,0,0,.03);
  border-radius: 8px; border: 1px solid var(--border);
  font-size: .82rem; margin-bottom: .4rem;
}
.extra-label { font-weight: 500; color: var(--ink); }
.extra-price { margin-left: auto; color: var(--ocean); font-weight: 600; }
.extra-note { font-size: .72rem; color: var(--muted); width: 100%; }
.extras-opt-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.extra-check {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; margin-bottom: .4rem;
  transition: background .15s;
  font-size: .85rem;
}
.extra-check:hover { background: rgba(0,0,0,.025); }
.extra-check input { margin-top: .18rem; accent-color: var(--coral); }

/* Price preview */
.price-preview {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  background: #fff;
  display: none;
}
.price-preview.show { display: block; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .35rem 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.price-row:last-child { border: none; }
.price-row .lbl { color: var(--muted); }
.price-row .val { font-weight: 500; }
.price-row.total { padding-top: .65rem; margin-top: .35rem; border-top: 2px solid var(--border); }
.price-row.total .lbl { font-weight: 700; color: var(--ink); }
.price-row.total .val { font-size: 1.2rem; font-weight: 700; color: var(--coral); }

/* Booking contact */
.booking-contact {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(0,0,0,.03);
  border-radius: var(--r);
  font-size: .84rem;
  color: var(--muted);
  line-height: 2;
}
.booking-contact a { color: var(--ocean); text-decoration: underline; }

/* Formulario */
.bk-form {
  background: #fff;
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-title { font-family: var(--font-heading); font-size: 1.4rem; color: var(--ink); margin-bottom: 1.5rem; }
.loading-bar {
  height: 3px; background: var(--coral);
  width: 0; transition: width .4s ease;
  border-radius: 100px; margin-bottom: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-g { display: flex; flex-direction: column; gap: .3rem; }
.form-g label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; }
.form-g input, .form-g select, .form-g textarea {
  padding: .65rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font: inherit; font-size: .88rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s;
  outline: none;
}
.form-g input:focus, .form-g select:focus, .form-g textarea:focus { border-color: var(--ocean); background: #fff; }
.form-g input[readonly] { background: rgba(0,0,0,.03); cursor: pointer; color: var(--ocean); }
.form-g textarea { resize: vertical; min-height: 80px; }

/* Resumen */
#bookingSummary {
  background: rgba(0,0,0,.03);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
}
.sum-title { font-weight: 700; font-size: .88rem; margin-bottom: .75rem; color: var(--ink); }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .6rem; }
.sum-grid div { display: flex; flex-direction: column; }
.sum-lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sum-val { font-size: .88rem; font-weight: 500; color: var(--ink); }
.sum-extras { border-top: 1px solid var(--border); padding-top: .5rem; margin-bottom: .5rem; }
.sum-extra-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); padding: .15rem 0; }
.sum-total-row { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--border); padding-top: .6rem; font-weight: 700; }
.sum-total-val { font-size: 1.15rem; color: var(--coral); }
.sum-note { font-size: .72rem; color: var(--muted); margin-top: .3rem; }
#noDateWarning { text-align: center; padding: .9rem; font-size: .85rem; color: var(--muted); }

.btn-submit {
  width: 100%; padding: .9rem;
  background: var(--coral); color: #fff;
  border-radius: 10px;
  font-size: .9rem; font-weight: 600;
  margin-top: .75rem;
  transition: opacity .2s, transform .2s;
  letter-spacing: .02em;
}
.btn-submit:hover { opacity: .88; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Mensaje éxito */
.form-msg { display: none; text-align: center; padding: 3rem 2rem; }
.form-msg.show { display: block; }
.form-msg .big { font-size: 3rem; margin-bottom: 1rem; }
.form-msg h3 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--ink); margin-bottom: .5rem; }
.form-msg p { color: var(--muted); line-height: 1.8; }

/* ── ACTIVIDADES ── */
.activities {
  padding: 6rem 4rem;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(30,95,140,.04) 100%);
}
.activities-inner { max-width: 1100px; margin: 0 auto; }
.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.act-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem;
  transition: transform .2s, box-shadow .2s;
}
.act-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.act-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.act-card h3 { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.act-card p { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.act-link {
  display: inline-block; margin-top: .75rem;
  font-size: .75rem; color: var(--ocean);
  border-bottom: 1px solid var(--ocean);
  padding-bottom: 1px;
  transition: opacity .2s;
}
.act-link:hover { opacity: .7; }

/* ── RESTAURANTES ── */
.restaurants { padding: 6rem 4rem; background: var(--ink); }
.rest-inner { max-width: 1100px; margin: 0 auto; }
.rest-inner .sec-eye { color: rgba(255,255,255,.4); }
.rest-inner .sec-title { color: #fff; }
.rest-inner .sec-text { color: rgba(255,255,255,.45); }
.rest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.rest-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  padding: 1.6rem;
  transition: background .2s;
}
.rest-card:hover { background: rgba(255,255,255,.07); }
.rest-type { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--coral); margin-bottom: .4rem; }
.rest-card h3 { font-size: 1rem; color: #fff; font-weight: 500; margin-bottom: .5rem; }
.rest-desc { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.7; }

/* ── CARRUSEL MINI-CARDS (actividades + restaurantes) ── */
.apt-carousel {
  display: flex !important;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(128,128,128,.25) transparent;
  margin-top: 2.5rem;
}
.apt-carousel:active { cursor: grabbing; }
.apt-carousel::-webkit-scrollbar { height: 4px; }
.apt-carousel::-webkit-scrollbar-thumb { background: rgba(128,128,128,.25); border-radius: 2px; }

.apt-card-mini {
  flex: 0 0 170px;
  border-radius: var(--r);
  padding: 16px 14px 28px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background .2s, transform .15s, box-shadow .2s;
  position: relative;
  user-select: none;
}
.apt-mini-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.apt-card-mini h3 { font-size: .84rem; font-weight: 700; margin: 0 0 5px; line-height: 1.3; }
.apt-mini-desc {
  font-size: .72rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.apt-expand-hint {
  position: absolute;
  bottom: 9px; right: 12px;
  font-size: .68rem;
  font-weight: 600;
}

/* Actividades — sección fondo claro */
.activities .apt-card-mini {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.activities .apt-card-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.activities .apt-card-mini h3   { color: var(--ink); }
.activities .apt-mini-desc      { color: var(--muted); }
.activities .apt-expand-hint    { color: var(--ocean); opacity: .6; }

/* Restaurantes — sección fondo oscuro */
.restaurants .apt-card-mini {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.restaurants .apt-card-mini:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.restaurants .apt-card-mini h3   { color: #fff; }
.restaurants .apt-mini-desc      { color: rgba(255,255,255,.75); }
.restaurants .apt-expand-hint    { color: rgba(255,255,255,.45); }

/* ── DIRECTORIO ── */
.directory { padding: 6rem 4rem; background: var(--paper); }
.dir-inner { max-width: 1100px; margin: 0 auto; }
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.dir-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dir-thumb {
  display: block; height: 150px; overflow: hidden;
}
.dir-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dir-card:hover .dir-thumb img { transform: scale(1.05); }
.dir-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.dir-body { padding: 1.1rem; }
.dir-city { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dir-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink); margin: .25rem 0 .4rem; }
.dir-price { font-size: .8rem; color: var(--coral); margin-bottom: .85rem; font-weight: 600; }
.dir-btn {
  display: block; text-align: center;
  background: var(--ocean); color: #fff;
  font-size: .75rem; font-weight: 500;
  padding: .5rem;
  border-radius: 8px;
  transition: background .2s;
}
.dir-btn:hover { background: color-mix(in srgb, var(--ocean) 85%, black); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 3.5rem 4rem;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  line-height: 2.2;
}
.flogo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
  margin-bottom: .5rem;
}
footer a { color: var(--wave); }

/* ── LIGHTBOX ── */
.lbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.lbox.show { display: flex; }
.lbox-x {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,.6); font-size: 1.5rem;
  background: rgba(255,255,255,.08);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; z-index: 10;
  transition: background .2s;
}
.lbox-x:hover { background: rgba(255,255,255,.18); }
#lboxImg {
  max-width: 88vw; max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
  user-select: none;
}
.lbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 2rem; line-height: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: background .2s;
}
.lbox-nav:hover { background: rgba(255,255,255,.25); }
.lbox-prev { left: 1.5rem; }
.lbox-next { right: 1.5rem; }
.lbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem;
  background: rgba(0,0,0,.4); padding: .3rem .9rem;
  border-radius: 20px; letter-spacing: .05em;
}
@media (max-width: 600px) {
  .lbox-prev { left: .5rem; }
  .lbox-next { right: .5rem; }
  .lbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* ── PANEL ADMIN RÁPIDO (en web pública) ── */
.admin-panel {
  display: none; position: fixed; top: var(--nav-h); right: 1rem; z-index: 200;
  background: var(--dark); color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 1.4rem 1.5rem;
  width: 300px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.admin-panel.show { display: block; }
.admin-close {
  position: absolute; top: .75rem; right: .75rem;
  color: rgba(255,255,255,.4); font-size: 1rem;
}
.admin-title {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .88rem; margin-bottom: 1rem;
}
.admin-title button {
  font-size: .68rem; padding: .2rem .6rem;
  background: rgba(255,255,255,.07);
  border-radius: 6px; color: rgba(255,255,255,.5);
}
.stat-row {
  display: flex; justify-content: space-between;
  padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .82rem;
}
.slbl { color: rgba(255,255,255,.4); }
.sval { font-weight: 600; color: #fff; }
.admin-subtitle { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); margin: 1rem 0 .6rem; }
.pending-item { padding: .75rem; background: rgba(255,255,255,.04); border-radius: 8px; margin-bottom: .5rem; }
.p-id { font-weight: 600; font-size: .85rem; display: block; margin-bottom: .2rem; }
.p-dates { font-size: .72rem; color: rgba(255,255,255,.4); margin-bottom: .5rem; }
.p-actions { display: flex; gap: .4rem; }
.btn-confirm {
  flex: 1; font-size: .7rem; padding: .3rem;
  background: rgba(45,106,79,.4); color: #6fcf97;
  border-radius: 6px;
}
.btn-cancel {
  flex: 1; font-size: .7rem; padding: .3rem;
  background: rgba(200,50,50,.3); color: #ff8080;
  border-radius: 6px;
}

/* ── ANIMACIONES DE SCROLL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-inner, .booking-inner { grid-template-columns: 1fr; gap: 3rem; }
  .img-grid { display: none; }
  .booking { padding: 5rem 2.5rem; }
}
@media (max-width: 768px) {
  #mainNav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .hero-c { padding: 7rem 1.5rem 4rem; }
  .hl-bar { gap: 0; }
  .hl { padding: 1rem 1.2rem; min-width: 90px; }
  .about, .activities, .restaurants, .directory, .booking { padding: 4rem 1.5rem; }
  .gallery { padding: 3rem 0; }
  .act-grid, .rest-grid, .dir-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .act-grid, .rest-grid, .dir-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .bk-form { padding: 1.3rem; }
}

/* ── WHATSAPP FLOTANTE ── */
.wa-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300;
  background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
@media (max-width: 768px) {
  .wa-btn { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
}

/* ── MAPA ── */
.apt-map {
  width: 100%; height: 280px; border-radius: 14px;
  overflow: hidden; margin-top: 1.2rem;
  border: 1px solid rgba(255,255,255,.06);
}
.apt-map iframe { width: 100%; height: 100%; border: 0; }

/* ── NAV DROPDOWN APARTAMENTOS ── */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-apt-dropdown {
  display: none; position: absolute; top: calc(100% + .5rem); left: 50%;
  transform: translateX(-50%); min-width: 220px;
  background: var(--surface, #fff); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 400; overflow: hidden;
}
.nav-apt-dropdown.show { display: block; }
.nav-apt-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; text-decoration: none;
  color: var(--ink); font-size: .85rem; font-weight: 500;
  transition: background .15s;
}
.nav-apt-item:hover { background: rgba(0,0,0,.04); }
.nav-apt-item img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.nav-apt-item-placeholder { width: 36px; height: 36px; border-radius: 6px; background: var(--ocean); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.nav-apt-item-info { display: flex; flex-direction: column; gap: .1rem; }
.nav-apt-item-name { font-weight: 600; font-size: .83rem; }
.nav-apt-item-city { font-size: .72rem; color: var(--muted); }

/* ── DIRECTORIO CARRUSEL ── */
.dir-carousel-wrap { position: relative; overflow: hidden; margin: 0 -1.5rem; padding: 0 1.5rem; }
.dir-carousel {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dir-carousel::-webkit-scrollbar { display: none; }
.dir-card {
  scroll-snap-align: start; flex-shrink: 0;
  width: 240px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface, #fff);
  transition: transform .2s, box-shadow .2s;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.dir-thumb { display: block; height: 140px; overflow: hidden; }
.dir-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dir-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.dir-body { padding: .9rem 1rem; }
.dir-city { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.dir-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.dir-price { font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.dir-btn {
  display: inline-block; background: var(--ocean); color: #fff;
  padding: .35rem .9rem; border-radius: 100px; font-size: .75rem;
  font-weight: 600; text-decoration: none; transition: opacity .2s;
}
.dir-btn:hover { opacity: .85; }
