/* ============================================================
   Qispi — pages.css
   Actividades, Restaurantes, Carrusel, Directorio, Footer, Lightbox, Responsive, Mapa
   ============================================================ */

/* ── 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; }
  .about-hero-img { display: block; }
  .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; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal-item { height: 180px; }
  .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; }
  .gal-grid { grid-auto-rows: 160px; }
  .gal-item { height: 160px; }
  .about-hero-img { height: 200px; }
}

/* ── 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; }
