/* =============================================================
   Template "Temporada" — v2
   Sobreescribe y extiende estilos compartidos
   Paleta: teal como primario (reemplaza emerald), fondos teal-50
   ============================================================= */

/* ─── Tema ────────────────────────────────────────────── */
:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #14b8a6;
  --color-primary-bg: #f0fdfa;
  --color-accent: #8b5cf6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  white-space: nowrap;
}

body {
  background-color: #f0fdfa; /* teal-50 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Navbar ──────────────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.625rem 1rem;
}

/* ===== Logo: brujula (SVG) + wordmark (TEXTO real) =====
   La brujula es un SVG en linea; la gira js/plantilla/aguja.js mediante el
   selector .logo-sd .aguja-spin. El nombre "SalirdeLima.com" es TEXTO HTML
   normal (no imagen, no SVG): queda seleccionable y buscable.
   La altura se controla con --logo-h y el texto escala con ella, de modo que
   las media queries solo cambian --logo-h. */
.navbar-logo {
  --logo-h: 3.25rem; /* 52px en escritorio */
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  /* El aro de la brujula usa currentColor dentro del SVG: este es el tema */
  color: #19323f;
}
html.dark .navbar-logo { color: #f1f5f9; }

/* Brujula: alto por --logo-h, ancho por su viewBox */
.navbar-logo .logo-sd {
  display: block;
  height: var(--logo-h);
  width: auto;
  flex-shrink: 0;
}

/* Wordmark: TEXTO real, escala con --logo-h */
.navbar-logo .logo-texto {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: calc(var(--logo-h) * 0.44);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* Wordmark: "SalirdeLima" en negro y ".com" en verde (teal de marca). */
.navbar-logo .lt-sl,
.navbar-logo .lt-dl { color: #0f172a; }
.navbar-logo .lt-com { color: #0d9488; font-size: 0.8em; font-weight: 800; }
html.dark .navbar-logo .lt-sl,
html.dark .navbar-logo .lt-dl { color: #f1f5f9; }
html.dark .navbar-logo .lt-com { color: #2dd4bf; }

.navbar-grupos {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.navbar-grupos::-webkit-scrollbar { display: none; }

.navbar-grupos-wrapper {
  position: relative;
  display: flex;
  flex: 1;
  overflow: hidden;
}
.navbar-grupos-wrapper .nav-scroll-arrow {
  opacity: 0.7;
}
.navbar-grupos-wrapper:hover .nav-scroll-arrow,
.navbar-grupos-wrapper:focus-within .nav-scroll-arrow {
  opacity: 1;
}

.nav-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.nav-scroll-arrow:hover {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-scroll-right {
  right: 0.125rem;
}
.nav-scroll-left {
  left: 0.125rem;
}
.nav-scroll-arrow.hidden {
  display: none;
}

.nav-grupo-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.nav-grupo-btn:hover {
  background: #ccfbf1;
  color: #0f766e;
}

.nav-grupo-btn.active {
  background: #0d9488;
  color: #fff;
}

.nav-grupo-btn i { font-size: 0.8125rem; }

.destino-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.375rem;
}
.destino-sidebar-nombre {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .destino-sidebar-item {
  color: #2dd4bf;
  border-bottom-color: #334155;
}

.nav-chevron {
  font-size: 0.5625rem !important;
  margin-left: 0.125rem;
  transition: transform 0.2s ease;
}

.nav-grupo-btn.dropdown-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-grupo-btn.dropdown-open {
  background: #ccfbf1;
  color: #0f766e;
}

/* ─── Dropdown wrapper ──────────────────────────────── */
.nav-grupo-wrapper {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 260px;
  max-width: 400px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  z-index: 100;
  padding: 0.75rem;
  animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown.open {
  display: block;
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.nav-dropdown-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-title i {
  font-size: 0.875rem;
  color: #0d9488;
}

.nav-dropdown-ver-todas {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0d9488;
  background: #ccfbf1;
  border: none;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-dropdown-ver-todas:hover {
  background: #0d9488;
  color: #fff;
}

.nav-dropdown-ver-todas i {
  font-size: 0.5625rem;
}

.nav-dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

/* ─── Badges de conteo ─────────────────────────────────── */
.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-count-badge.empty {
  background: transparent;
  color: #94a3b8;
  font-weight: 500;
}
html.dark .nav-count-badge {
  background: #94a3b8;
  color: #0f172a;
}
html.dark .nav-count-badge.empty {
  background: transparent;
  color: #475569;
}
/* Items sin contenido se atenúan */
.nav-dropdown-item.empty,
.nav-grupo-btn.empty {
  opacity: 0.45;
  pointer-events: none;
}
/* Badge en hero chips */
.hero-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  margin-left: 0.25rem;
}
.hero-chip.empty { opacity: 0.5; pointer-events: none; }
/* Badge en card de categoría */
.cat-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  margin-left: auto;
  flex-shrink: 0;
}
.cat-card.empty { opacity: 0.5; pointer-events: none; }
html.dark .cat-card-count { background: #94a3b8; color: #0f172a; }
/* Badge en mini-chip de categoría */
.cat-mini-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.1875rem;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  margin-left: 0.1875rem;
}
html.dark .cat-mini-count { background: #94a3b8; color: #0f172a; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.1s;
  text-align: left;
  width: 100%;
}

.nav-dropdown-item:hover {
  background: #f0fdfa;
  color: #0d9488;
}

.nav-dropdown-item i {
  font-size: 0.75rem;
  width: 1.25rem;
  text-align: center;
  color: #94a3b8;
}

.nav-dropdown-item:hover i {
  color: #0d9488;
}

.nav-dropdown-empty {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 0.5rem;
}

/* ─── Dark mode dropdown ────────────────────────────── */
html.dark .nav-dropdown {
  background: #1e293b;
  border-color: #334155;
}

html.dark .nav-dropdown-header {
  border-bottom-color: #334155;
}

html.dark .nav-dropdown-title {
  color: #f1f5f9;
}

html.dark .nav-dropdown-item {
  color: #94a3b8;
}

html.dark .nav-dropdown-item:hover {
  background: #0f172a;
  color: #5eead4;
}

html.dark .nav-dropdown-item:hover i {
  color: #5eead4;
}

html.dark .nav-dropdown-ver-todas {
  background: #134e4a;
  color: #5eead4;
}

html.dark .nav-dropdown-ver-todas:hover {
  background: #0d9488;
  color: #fff;
}

/* ─── Destino Bar (persistente debajo del navbar) ───── */
.destino-bar {
  position: sticky;
  top: 3.5rem;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.2rem 1rem;
  background: #f0fdfa;
  border-bottom: 1px solid #ccfbf1;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-wrap: nowrap;
  text-align: center;
}

.destino-bar:hover {
  background: #ccfbf1;
}

html.dark .destino-bar {
  background: #0f172a;
  border-bottom-color: #134e4a;
}

html.dark .destino-bar:hover {
  background: #1e293b;
}

.destino-bar-label {
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

html.dark .destino-bar-label {
  color: #94a3b8;
}

.destino-bar-value {
  color: #0d9488;
  font-weight: 700;
}

html.dark .destino-bar-value {
  color: #5eead4;
}

.destino-bar-hint {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}

html.dark .destino-bar-hint {
  color: #64748b;
}

/* Ajustar espaciado del main por la barra adicional */
.main-content {
  padding-top: 0.1rem;
  flex: 1 0 auto;
}

/* Cerrar el hueco entre la barra de destino y el hero cuando el banner
   superior está oculto (caso habitual): el margin del space-y-4 lo deja
   en 24px; con esto queda en lo que deja el padding del main (8px). */
#section-home > #banner-top[hidden] + #hero-categorias {
  margin-top: 0;
}

/* La home nace justo debajo de la barra de destino: sin padding superior
   extra (`.page-section` trae 1rem). Espacio final = padding del main. */
#section-home.page-section {
  padding-top: 0;
}

/* ─── Popup selector de destino ─────────────────────── */
#popup-destinos {
  z-index: 80;
}

.popup-destinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.destino-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  break-inside: avoid;
}

.destino-card:hover {
  border-color: #14b8a6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.destino-card.active {
  border-color: #0d9488;
  background: #ccfbf1;
}

html.dark .destino-card {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html.dark .destino-card:hover {
  border-color: #14b8a6;
}

html.dark .destino-card.active {
  border-color: #5eead4;
  background: #134e4a;
}

.destino-card-icon {
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccfbf1;
  border-radius: 9999px;
  margin: 0 auto 0.5rem;
  color: #0d9488;
}

.destino-card-icon.has-img {
  width: 100%;
  height: 6.5rem;
  border-radius: 0.625rem;
  background-color: #e5e7eb;
  overflow: hidden;
}

html.dark .destino-card-icon {
  background: #0f766e;
  color: #5eead4;
}

.destino-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.destino-card p {
  font-size: 0.75rem;
  color: #64748b;
}

html.dark .destino-card p {
  color: #94a3b8;
}

/* ─── Responsive destino bar ────────────────────────── */
@media (max-width: 640px) {
  .destino-bar {
    top: 3.25rem;
    font-size: 0.8125rem;
    padding: 0.15rem 0.75rem;
    gap: 0.25rem;
  }
  .destino-bar-hint {
    font-size: 0.6875rem;
  }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* flex-shrink:0 es OBLIGATORIO aqui: sin esto los botones se encogen cuando el
   navbar se llena (el de Explore medía 9px con su ícono de 12px desbordando,
   porque el wrap .navbar-grupos le robaba 42px). */
/* flex-shrink:0 es OBLIGATORIO aqui: sin esto los botones se encogen cuando el
     navbar se llena (el de Explore medía 9px con su ícono de 12px desbordando,
     porque el wrap .navbar-grupos le robaba 42px). */
.navbar-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 1rem;
}

.navbar-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ─── Mobile Sidebar ─────────────────────────────────── */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 40;
  overflow-y: auto;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mobile-sidebar.open {
  left: 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Submenú desplegable de categorías dentro del sidebar */
.sidebar-grupo-cats {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.125rem 0 0.25rem 1.25rem;
}
.sidebar-grupo-cats.open {
  display: flex;
}
.sidebar-grupo-wrapper .nav-dropdown-item.ver-todas {
  font-size: 0.6875rem;
  color: #0d9488;
}
html.dark .sidebar-grupo-wrapper .nav-dropdown-item.ver-todas {
  color: #2dd4bf;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.sidebar-favoritos-box {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.5rem;
}

/* ─── Banner inferior: foto a OPACIDAD TOTAL y SIN degradado teal (GIF Bahías, 07/10/2026)
   - opacity:1 gana a la clase .opacity-20 de Tailwind por especificidad (#id .clase).
   - background-image:none quita el degradado from-teal-600/to-teal-800 (color verdoso);
     queda un fondo neutro oscuro por si la foto tarda en cargar.
   Para volver al diseño original: borrar este bloque. ───────────────── */
#banner-bottom {
  background-image: none;
  background-color: #0f172a;
}
#banner-bottom .banner-bg {
  opacity: 1;
}
/* Sin etiqueta "Sugerido" ni botón "Ver más" (pedido 07/10/2026);
   el enlace a la URL del banner lo maneja banners.js sobre todo el contenedor. */
#banner-bottom .banner-btn {
  display: none;
}
#banner-bottom span {
  display: none;
}

/* ─── Banner Sidebar ───────────────────────────────── */
.banner-sidebar {
  background: linear-gradient(to bottom right, #0f172a, #1e293b);
  color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* ─── Hero Categorías ────────────────────────────────── */
.hero-categorias {
  min-height: 340px;
  position: relative;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-destino-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(13,148,136,0.9);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 5;
  display: none;
}

/* Descripción del destino — DEBAJO del carrusel (ya no es overlay).
   Antes era `position:absolute` sobre la foto con fondo negro traslúcido
   (top:54px/left:16px), lo que tapaba la imagen y recortaba en móvil. */
.hero-destino-desc {
  position: static;
  /* Mismo ancho que el carrusel (#hero-categorias) — 29/09/2026.
     Antes max-width: 900px, que quedaba más angosta que el carrusel. */
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  background: #ffffff;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  display: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html.dark .hero-destino-desc {
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots .dot.active {
  background: #14b8a6;
}

.hero-search-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 16px;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2.5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}

.hero-subtitle {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-chip:hover {
  background: var(--chip-color, #0d9488);
  border-color: var(--chip-color, #0d9488);
  transform: translateY(-1px);
}

.hero-chip i { font-size: 0.875rem; }

.hero-search {
  position: relative;
  max-width: 560px;
  width: 100%;
}

.hero-search input {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 3rem 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: box-shadow 0.2s;
}

.hero-search input:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.3);
}

.hero-search input::placeholder {
  color: #94a3b8;
}

.hero-search-btn {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: #0d9488;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-search-btn:hover {
  background: #0f766e;
}

.hero-search-btn:active {
  background: #115e59;
}

html.dark .hero-search-btn {
  background: #14b8a6;
}

html.dark .hero-search-btn:hover {
  background: #0d9488;
}

/* ─── Content Sections ───────────────────────────────── */
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header p {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 0.75rem;
}

.page-header {
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.page-title-inline {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}

/* ─── Cards ──────────────────────────────────────────── */
.card-hover {
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Categoría card */
.cat-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.cat-card.cat-card-active {
  border-color: #0891b2;
  background: #ecfeff;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2);
}

html.dark .cat-card.cat-card-active {
  border-color: #22d3ee;
  background: rgba(8, 145, 178, 0.12);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.cat-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.cat-card-header i {
  font-size: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  border-radius: 0.5rem;
}

.cat-card-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.cat-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* Botón limpiar filtro de categoría */
.btn-clear-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: none;
  background: rgba(8, 145, 178, 0.15);
  color: #0891b2;
  font-size: 0.875rem;
  cursor: pointer;
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.btn-clear-filter:hover {
  background: #0891b2;
  color: #fff;
}
html.dark .btn-clear-filter {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
}
html.dark .btn-clear-filter:hover {
  background: #22d3ee;
  color: #0f172a;
}

.cat-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.cat-mini-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.cat-mini-chip.more {
  background: #ccfbf1;
  color: #0f766e;
}

/* Producto card */
.prod-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.prod-card-img {
  height: 140px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-card-body {
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prod-card-body h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.prod-precio {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0d9488;
}

/* Lugar card (restaurantes, hospedajes, destinos) */
.lugar-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.65rem;
  align-items: stretch;
  gap: 0;
}
.lugar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #f0fdfa;
  border-color: #99f6e4;
}
.lugar-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  flex-shrink: 0;
  border-radius: 0.5rem;
}
.lugar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lugar-rating {
  position: absolute;
  top: 32px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.lugar-cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 118, 110, 0.85);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: calc(100% - 60px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.lugar-tipo-chip {
  display: inline-block;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
html.dark .lugar-tipo-chip {
  background: rgba(13, 148, 136, 0.2);
  color: #5eead4;
}
.lugar-card-body {
  padding: 8px 10px;
}
.lugar-card-body h4 {
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
  line-height: 1.2;
}
.lugar-card-body p {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 2px;
}
/* Footer de card: distancia a la izquierda, precio+share a la derecha */
.lugar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
  flex-shrink: 0;
}
.lugar-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.lugar-precio {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0d9488;
}
.precio-barras {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.precio-barras-iconos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.precio-barras-iconos .fa-money-bill-wave {
  font-size: 0.7rem;
  color: #64748b; /* slate-500 */
  line-height: 1;
}
.precio-barras-texto {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1;
  margin-left: 3px;
  letter-spacing: 0.05em;
}
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  margin-left: 8px;
  font-size: 0.7rem;
  color: #64748b;
  cursor: default;
}
.distancia-badge .fa-road {
  color: #64748b; /* slate-500 */
  font-size: 0.75rem;
}
.distancia-origen {
  font-size: 0.6rem;
  color: #94a3b8;
}
.tiempo-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  margin-left: 8px;
  font-size: 0.7rem;
  color: #64748b;
  cursor: default;
  white-space: nowrap;
}
.tiempo-badge .fa-clock {
  color: #64748b; /* slate-500 */
  font-size: 0.75rem;
}

/* Distancia/Tiempo REAL por carretera (medido desde Lima, dato de OSRM).
   Se distinguen del cálculo estimado con un punto verde, para que el
   visitante sepa que ese valor es real y no una estimación. */
.distancia-badge--real,
.tiempo-badge--real {
  color: #0f766e; /* teal-700 */
}
.distancia-badge--real .fa-road,
.tiempo-badge--real .fa-clock {
  color: #14b8a6; /* teal-500 */
}
.distancia-badge--real .distancia-origen,
.tiempo-badge--real .distancia-origen {
  color: #0d9488; /* teal-600 (legible sobre tarjeta blanca) */
}
html.dark .distancia-badge--real,
html.dark .tiempo-badge--real {
  color: #5eead4;
}
html.dark .distancia-badge--real .fa-road,
html.dark .tiempo-badge--real .fa-clock {
  color: #2dd4bf;
}
html.dark .distancia-badge--real .distancia-origen,
html.dark .tiempo-badge--real .distancia-origen {
  color: #5eead4; /* teal-300 (legible sobre tarjeta oscura) */
}

/* Lugar detalle */
.lugar-detalle {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.lugar-detalle-bg {
  height: 250px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}
.lugar-detalle-bg--sinfoto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 50%, #e0f2fe 100%);
}
.lugar-detalle-bg--sinfoto i {
  font-size: 4.5rem;
  color: rgba(13, 148, 136, 0.45);
}
html.dark .lugar-detalle-bg--sinfoto {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(2, 132, 199, 0.15) 100%);
}
html.dark .lugar-detalle-bg--sinfoto i {
  color: rgba(94, 234, 212, 0.35);
}
.lugar-detalle-content {
  padding: 24px;
}
.lugar-detalle-meta .meta-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.lugar-detalle-meta .meta-item i {
  font-size: 1.25rem;
}

/* Review cards */
.review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 14px;
}
.review-card + .review-card {
  margin-top: 8px;
}
html.dark .review-card {
  background: #1e293b;
  border-color: #334155;
}

html.dark .lugar-card {
  background: #1e293b;
  border-color: #334155;
}
html.dark .lugar-card:hover {
  background: #1a2e35;
  border-color: #0d9488;
}
html.dark .lugar-card-body h4 { color: #f1f5f9; }
html.dark .lugar-card-body p { color: #94a3b8; }
html.dark .lugar-detalle {
  background: #1e293b;
  border-color: #334155;
}
html.dark .lugar-detalle-meta .meta-item {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

/* Atractivo card */
.atractivo-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.atractivo-card-img {
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.atractivo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atractivo-card-img .btn-fav-card,
.lugar-card-img .btn-fav-card,
.prod-card-img .btn-fav-card {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: all 0.15s ease;
  z-index: 2;
}
.atractivo-card-img .btn-fav-card:hover,
.lugar-card-img .btn-fav-card:hover,
.prod-card-img .btn-fav-card:hover {
  color: #ef4444;
  background: #fff;
  transform: scale(1.1);
}
.atractivo-card-img .btn-fav-card.active,
.lugar-card-img .btn-fav-card.active,
.prod-card-img .btn-fav-card.active {
  color: #ef4444;
}

/* Botón compartir en card */
.btn-share-card {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #0d9488;
  transition: all 0.15s ease;
}
.btn-share-card:hover {
  color: #fff;
  background: #0d9488;
  transform: scale(1.1);
}

/* Toast de "link copiado" */
.toast-share {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  z-index: 9999;
  animation: toastFadeShare 2.5s ease forwards;
}
@keyframes toastFadeShare {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Corazón de favorito en el detalle de lugar/proveedor (junto al título) */
.btn-fav-detalle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #cbd5e1;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-fav-detalle:hover {
  color: #ef4444;
  background: #fff;
  transform: scale(1.08);
}
.btn-fav-detalle.active {
  color: #ef4444;
}

.atractivo-card-body {
  padding: 0.75rem;
}

.atractivo-cat {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}

.atractivo-card-body h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.125rem;
}

.atractivo-card-body p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* Nota card */
.nota-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.nota-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.nota-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nota-tipo {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: rgba(13, 148, 136, 0.9);
  color: #fff;
}

.nota-card-body {
  padding: 0.875rem;
}

.nota-fecha {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
}

.nota-card-body h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.25rem 0;
  line-height: 1.3;
}

.nota-card-body p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

.nota-autor {
  font-size: 0.6875rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.375rem;
}

/* ─── Product mini card (in provider modal) ──────────── */
.prod-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.prod-mini-card:hover {
  background: #f1f5f9;
}

.prod-mini-card img {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  object-fit: cover;
  background: #e2e8f0;
}

.prod-mini-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.prod-mini-nombre {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

.prod-mini-precio {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0d9488;
}

/* ─── Carousel ───────────────────────────────────────── */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  min-height: 280px;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.3), transparent);
}

.carousel-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.carousel-content h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
}

.carousel-content p {
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  max-width: 500px;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.carousel-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #fff;
  width: 2rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-nav.left {
  left: 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.carousel-nav.right {
  right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: #fff;
  width: 1.25rem;
}

/* ─── Botones ────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-back:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.6875rem;
  padding: 0.375rem 0.75rem;
}

/* ─── Ruta portada ───────────────────────────────────── */
.ruta-portada {
  min-height: 240px;
}

/* ─── Skeleton ───────────────────────────────────────── */
.skeleton-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* ─── Clima cards ────────────────────────────────────── */
.clima-card {
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.625rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.clima-mes {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clima-temp {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.125rem 0;
}

.clima-sol {
  font-size: 0.6875rem;
  color: #64748b;
}

/* ─── Review cards ───────────────────────────────────── */
.review-card {
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}

.review-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.review-date {
  font-size: 0.625rem;
  color: #94a3b8;
}

.review-card p {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.25rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* ─── Flora/Fauna ────────────────────────────────────── */
.ff-card {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.ff-card i {
  font-size: 1rem;
  color: #0d9488;
  margin-top: 0.125rem;
}

.ff-card strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.ff-card p {
  font-size: 0.6875rem;
  color: #64748b;
}

/* ─── POI items ──────────────────────────────────────── */
.poi-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.poi-item strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.poi-item p {
  font-size: 0.6875rem;
  color: #64748b;
}

/* ─── Gallery thumbs ─────────────────────────────────── */
.gallery-thumb {
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* ─── Banner de error de carga (API no disponible) ──── */
.banner-error-carga {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: #b91c1c;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.banner-error-carga i {
  font-size: 1.125rem;
}
.banner-error-carga strong {
  display: block;
}
.banner-error-carga span {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.125rem;
}

/* ─── Toast ──────────────────────────────────────────── */
.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Mobile bottom bar ──────────────────────────────── */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  padding: 0.375rem 0;
  padding-bottom: max(0.375rem, env(safe-area-inset-bottom));
  z-index: 30;
  transition: transform 0.35s ease;
}
.mobile-bottom-bar.nav-hide {
  transform: translateY(100%);
}

/* La barra inferior es SOLO para móvil.
   El HTML la marca `md:hidden` (Tailwind), pero template.css y styles.css se
   cargan DESPUÉS de tailwind-compiled.css y ambos pone `display: flex`, así que
   ganaban por orden y la barra se veía en desktop. Esta regla lo bloquea. */
@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}

.mobile-bottom-bar button i {
  font-size: 1.125rem;
}

.mobile-bottom-bar button:hover {
  color: #0d9488;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-grupos {
    display: none;
  }

/* Compactar acciones del navbar en móvil: sin texto en Explore,
       toggle ES/EN más angosto para que la hamburguesa no se desborde */
    .navbar-inner {
      gap: 0.5rem;
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }
  .navbar-actions {
    gap: 0.125rem;
  }
  .navbar-btn-explore span {
    display: none;
  }
  /* Ancho minimo real: con solo width:2.25rem el botón de Explore colapsaba a
     9px (su contenido es un ícono de 9px, y el flex lo comprimía al mínimo).
     Fix por bug de layout, no por diseño: el ícono debe tener 36px de caja
     clickeable igual que el resto de botones. */
  .navbar-btn-explore {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0 !important;
  }
  #lang-toggle {
    gap: 0.125rem;
    padding: 0.125rem;
  }
  #lang-toggle .lang-btn {
    font-size: 0.6875rem;
    padding: 0.25rem 0.375rem !important;
    min-width: 1.375rem;
  }

  /* El wrapper de grupos desktop ya no tiene nada que mostrar en móvil (sus 3
     hijos tienen display:none por la regla .navbar-grupos de arriba), pero como
     el wrapper es display:flex seguía reservando 37-55px de alto y apretando la
     barra, lo que hacía que los botones de acciones se encogieran a 9px.
     Ocultarlo libera esa medida. */
  .navbar-grupos-wrapper {
    display: none !important;
  }

  /* Alto de la brújula en móvil. El wordmark (texto) escala con --logo-h, así
     que no se ajusta aparte; el ancho total lo forman la brújula (viewBox)
     más el texto. En pantallas angostas se compacta (ver reglas al final). */
  .navbar-logo {
    --logo-h: 2.5rem; /* 40px */
  }

  /* Pantallas muy estrechas (≤360px, ej. iPhone SE): compactar navbar */
  @media (max-width: 360px) {
    .navbar-inner {
      gap: 0.25rem;
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
  }

  /* 320px es el piso real del navbar: aquí ya solo cabe la brújula (el texto
     se oculta por la regla de 340px del final). */
  @media (max-width: 340px) {
    .navbar-inner {
      gap: 0.125rem;
      padding-left: 0.375rem;
      padding-right: 0.375rem;
    }
    .navbar-actions {
      gap: 0;
    }
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-categorias {
    min-height: 260px;
  }

  .hero-search-wrap {
    padding: 10px 12px 14px;
  }

.hero-destino-badge {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 12px;
  }

  .hero-destino-desc {
    max-width: 100%;
    font-size: 12.5px;
    padding: 10px 12px;
  }

}

@media (min-width: 769px) {
  .mobile-sidebar {
    display: none;
  }
  #sidebar-overlay {
    display: none !important;
  }
}

/* ─── Dark mode ──────────────────────────────────────── */
.dark body,
html.dark body {
  background-color: #0f172a;
}

html.dark .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #1e293b;
}

html.dark .nav-grupo-btn {
  color: #94a3b8;
}

html.dark .nav-grupo-btn:hover {
  background: #1e293b;
  color: #ccfbf1;
}

html.dark .nav-grupo-btn.active {
  background: #0d9488;
  color: #fff;
}

html.dark .cat-card,
html.dark .prod-card,
html.dark .atractivo-card,
html.dark .nota-card {
  background: #1e293b;
  border-color: #334155;
}

html.dark .cat-card-header i {
  background: rgba(255, 255, 255, 0.08);
  color: #22d3ee;
}

html.dark .cat-card-header h3,
html.dark .cat-card-desc,
html.dark .section-header h2,
html.dark .page-header h1 {
  color: #f1f5f9;
}

html.dark .page-title-inline {
  color: #f1f5f9;
}

html.dark .section-header p,
html.dark .page-header p {
  color: #94a3b8;
}

html.dark .hero-search input {
  background: #1e293b;
  color: #f1f5f9;
}

html.dark .mobile-bottom-bar {
  background: rgba(15, 23, 42, 0.98);
  border-top-color: #1e293b;
}

html.dark .mobile-bottom-bar button {
  color: #64748b;
}

html.dark .mobile-bottom-bar button:hover {
  color: #14b8a6;
}

html.dark .mobile-sidebar {
  background: #0f172a;
}

html.dark .sidebar-footer {
  border-top-color: #1e293b;
}

html.dark .sidebar-favoritos-box {
  background: #1e293b;
}

html.dark .btn-back {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .btn-back:hover {
  background: #334155;
}

html.dark .skeleton-card {
  background: #1e293b;
  border-color: #334155;
}

html.dark .clima-card,
html.dark .review-card,
html.dark .ff-card {
  background: #1e293b;
  border-color: #334155;
}

html.dark .clima-mes { color: #5eead4; }
html.dark .clima-temp { color: #f1f5f9; }
html.dark .cat-mini-chip { background: #334155; color: #94a3b8; }
html.dark .cat-mini-chip.more { background: #134e4a; color: #5eead4; }

/* ─── Navbar user avatar ────────────────────────────── */
.user-avatar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #0d9488;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name-nav {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .user-name-nav { color: #e2e8f0; }

/* ─── Navbar user dropdown menu ──────────────────────── */
.navbar-user-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
}
.user-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #0d9488;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-menu-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-menu-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-email {
  font-size: 0.6875rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-divider {
  height: 1px;
  background: #e2e8f0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.user-menu-item:hover {
  background: #f1f5f9;
}
.user-menu-item i {
  width: 16px;
  text-align: center;
  font-size: 0.75rem;
}
html.dark .user-menu-dropdown {
  background: #1e293b;
  border-color: #334155;
}
html.dark .user-menu-name { color: #f1f5f9; }
html.dark .user-menu-email { color: #94a3b8; }
html.dark .user-menu-divider { background: #334155; }
html.dark .user-menu-item { color: #cbd5e1; }
html.dark .user-menu-item:hover { background: #334155; }

/* ─── Scroll infinito — sentinel y loader ────────────── */
.scroll-sentinel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}
.scroll-loader {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.scroll-loader i {
  font-size: 1rem;
}
html.dark .scroll-loader {
  color: #94a3b8;
}
/* El scroll infinito oculta el sentinel y el loader con la clase .hidden de Tailwind
   (.hidden{display:none} en css/vendor/tailwind-compiled.css). Las reglas de arriba
   usan display:flex con la MISMA especificidad (0,1,0) y este archivo se carga DESPUÉS,
   así que ganaban por orden: el código ocultaba el mensaje correctamente pero el
   navegador lo seguía pintando ("Cargando más..." congelado, 30/09/2026).
   Estas líneas devuelven el control a la clase .hidden. */
.scroll-sentinel.hidden,
.scroll-loader.hidden,
.scroll-error.hidden {
  display: none !important;
}
/* Error del scroll infinito (falló la carga): mensaje + botón Reintentar */
.scroll-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #b45309;
  text-align: center;
}
html.dark .scroll-error {
  color: #fbbf24;
}
.scroll-retry-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #0d9488;
  background: #0d9488;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.scroll-retry-btn:hover {
  background: #0f766e;
  border-color: #0f766e;
}

html.dark .section-label {
  color: #e2e8f0;
}

html.dark .lugar-detalle-bg {
  background-color: #1e293b;
}

html.dark .lugar-detalle-content p,
html.dark .lugar-detalle-content .text-sm {
  color: #cbd5e1;
}

/* ─── Sticky footer con flexbox ──────────────────────── */
.site-footer {
  margin-top: 0;
  flex-shrink: 0;
}

/* ─── Categorías rápidas móvil ─────────────────────── */
@media (min-width: 641px) {
  .mobile-categorias { display: none !important; }
}

.mobile-categorias {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 3;
}

.mobile-categorias::-webkit-scrollbar { display: none; }

.mobile-cat-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.mobile-cat-chip:active {
  background: #0d9488;
  color: white;
  border-color: #0d9488;
}

.mobile-cat-chip i { font-size: 0.8125rem; color: rgba(255,255,255,0.8); }
.mobile-cat-chip:active i { color: white; }

/* ─── Widget de clima (módulo aditivo — plantilla/clima.js) ─────────── */
.hero-clima-widget {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 6;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.hero-clima-label {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-clima-temp { font-size: 13px; color: #fff; }
.hero-clima-f { color: #cbd5e1; font-size: 12px; font-weight: 600; }
.hero-clima-cond { color: #e2e8f0; font-weight: 600; }

/* Íconos clásicos: sol amarillo, nube gris, etc. */
.clima-ico-sol     { color: #f59e0b; }
.clima-ico-nube    { color: #cbd5e1; }
.clima-ico-niebla  { color: #94a3b8; }
.clima-ico-lluvia  { color: #7dd3fc; }
.clima-ico-nieve   { color: #bae6fd; }
.clima-ico-tormenta{ color: #f59e0b; }
.clima-ico-stack {
  position: relative;
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}
.clima-ico-stack .clima-ico-sol {
  position: absolute;
  top: -0.2em;
  left: -0.15em;
  font-size: 0.85em;
  z-index: 1;
}
.clima-ico-stack .clima-ico-nube {
  position: absolute;
  top: 0.05em;
  left: 0.2em;
  font-size: 1em;
}
.clima-ico-stack-tormenta .clima-ico-tormenta {
  position: absolute;
  top: -0.2em;
  left: 0.3em;
  font-size: 0.85em;
  z-index: 1;
}

.clima-forecast { margin-top: 0.75rem; }
.clima-forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.clima-fcard {
  /* Tono dorado suave (29/09/2026, a pedido del usuario): crema cálido tirado
     hacia el gris para que siga legible y no se salga de la paleta.
     Antes #f8fafc (gris frío puro) -> primer intento #fdf3d9 (muy dorado) ->
     ahora #faf7ec (gris cálido). Para volver al gris: #f8fafc / #e2e8f0 */
  background: #faf7ec;
  border-radius: 0.5rem;
  padding: 0.625rem;
  text-align: center;
  border: 1px solid #e7e0cb;
  min-width: 0;
}
.clima-fdia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.clima-fdia-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0d9488;
  text-transform: none;
  letter-spacing: 0;
}
html.dark .clima-fdia-num { color: #5eead4; }
.clima-ficon { font-size: 1.125rem; margin: 0 0 0 auto; flex-shrink: 0; line-height: 1.15; }
.clima-fcols { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.clima-ftemp { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.875rem; }
.clima-temp-col { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.clima-temp-col em { font-style: normal; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.clima-ftemp-f .clima-temp-col em { color: #94a3b8; }
.clima-ftemp-f {
  font-size: 0.6875rem;
  opacity: 0.75;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.45rem;
  margin-top: 0.45rem;
}
html.dark .clima-ftemp-f { border-top-color: #334155; }
.clima-fmax { font-weight: 800; color: #0f172a; }
.clima-fmin { font-weight: 600; color: #64748b; }

@media (max-width: 400px) {
  .clima-fcard { padding: 0.5rem 0.4rem; }
  .clima-ftemp { font-size: 0.75rem; gap: 0.4rem; }
  .clima-fdia { font-size: 0.625rem; }
}

html.dark .clima-fcard { background: #1e293b; border-color: #334155; }
html.dark .clima-fdia { color: #5eead4; }
html.dark .clima-fmax { color: #f1f5f9; }
html.dark .clima-fmin { color: #94a3b8; }

/* Solo desktop: día, fecha e ícono más grandes (29/09/2026).
   En móvil se mantienen los tamaños base y el ajuste de ≤400px. */
@media (min-width: 768px) {
  .clima-fcard { padding: 0.75rem 0.5rem; }
  .clima-fdia { font-size: 0.875rem; gap: 0.4rem; }
  .clima-fdia-num { font-size: 1rem; }
  .clima-ficon { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-clima-widget {
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    font-size: 11px;
  }
  .hero-clima-temp { font-size: 11px; }
  .hero-clima-f { font-size: 10px; }
  .hero-clima-label { font-size: 10px; }
}

/* Tira de pronóstico en el detalle completo (lugar/proveedor) — módulo clima */
.clima-detalle-strip {
  margin-top: 1rem;
  padding: 1rem 1.25rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.clima-detalle-strip .clima-forecast { margin-top: 0; }
html.dark .clima-detalle-strip { background: #0f172a; border-color: #334155; }

/* ==========================================================================
   Boton "Ver mas" (listado de negocios del grupo, paginado de a 8)
   El listado de negocios del grupo antes se cortaba a 8 tarjetas sin
   forma de ver el resto, aunque los conteos del menu contaran todos.
   ========================================================================== */
.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: #fff;
  border: 1px solid #0d9488;
  border-radius: 9999px;
  color: #0d9488;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-ver-mas:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.btn-ver-mas:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}
.btn-ver-mas i {
  font-size: 0.75rem;
}

html.dark .btn-ver-mas {
  background: #1e293b;
  border-color: #5eead4;
  color: #5eead4;
}
html.dark .btn-ver-mas:hover {
  background: #5eead4;
  border-color: #5eead4;
  color: #0f172a;
}


/* Clima: hacer más grande en desktop (≥768px) */
@media (min-width: 768px) {
  .clima-fcard { padding: 1rem 0.75rem; }
  .clima-fdia { font-size: 1rem; gap: 0.5rem; }
  .clima-fdia-num { font-size: 1.125rem; }
  .clima-ficon { font-size: 2rem; }
  .clima-ftemp { font-size: 1rem; gap: 0.5rem; }
  .clima-ftemp-f { padding-top: 0.5rem; margin-top: 0.5rem; }
}


/* Clima: versión más grande en desktop (≥768px) */
@media (min-width: 768px) {
  .clima-fcard { padding: 1.25rem 1rem; }
  .clima-fdia { font-size: 1.125rem; gap: 0.5rem; }
  .clima-fdia-num { font-size: 1.25rem; }
  .clima-ficon { font-size: 2.5rem; }
  .clima-ftemp { font-size: 1.125rem; gap: 0.5rem; line-height: 1.15; }
  .clima-ftemp-f { padding-top: 0.625rem; margin-top: 0.625rem; }
}


/* Clima: versión XL en desktop (≥768px) */
@media (min-width: 768px) {
  .clima-fcard { padding: 1.5rem 1.25rem; }
  .clima-fdia { font-size: 1.25rem; gap: 0.625rem; }
  .clima-fdia-num { font-size: 1.5rem; }
  .clima-ficon { font-size: 3rem; }
  .clima-ftemp { font-size: 1.25rem; gap: 0.625rem; line-height: 1.1; }
  .clima-ftemp-col { min-width: 3rem; }
  .clima-ftemp-f { padding-top: 0.75rem; margin-top: 0.75rem; }
}

/* ============ GUÍA DE RUTA DEL DESTINO (info_ruta_html) ============ */

/*
 * Guía de ruta del destino (campo `destinos.info_ruta_html`, editable en el
 * admin como HTML multilenguaje). El HTML llega sanitizado desde
 * `UI._sanearGuiaHtml()` y se inyecta en `#destino-guia-wrapper`, que se
 * inserta entre la descripción del hero y la tira del clima.
 *
 * Los valores están fijados con colores explícitos (no tokens) porque el sitio
 * alterna claro/oscuro con la clase `html.dark` sobre <html>, tal como hacen
 * `.hero-destino-desc` y las tarjetas de clima.
 */

/* El wrapper no debe imponer ancho: hereda el del section-home como la descripción */
.destino-guia-wrapper {
  max-width: 100%;
}

.destino-guia {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2vw, 1.75rem);
  text-align: left;
}

html.dark .destino-guia {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

.destino-guia-header {
  display: flex;
  flex-direction: column;
  gap: clamp(.75rem, 1.5vw, 1rem);
}

.destino-guia-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  width: fit-content;
  padding: .375rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(13, 148, 136, .08);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, .16);
}

html.dark .destino-guia-eyebrow {
  background: rgba(13, 148, 136, .16);
  color: #5eead4;
  border-color: rgba(13, 148, 136, .32);
}

.destino-guia-title {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0;
}

html.dark .destino-guia-title { color: #f1f5f9; }

.destino-guia-subtitle {
  color: #475569;
  font-size: clamp(.98rem, 2vw, 1.0625rem);
  line-height: 1.7;
  max-width: 78ch;
  margin: 0;
}

html.dark .destino-guia-subtitle { color: #cbd5e1; }

/* ── Tarjetas de resumen (tiempo, altitud, peajes, clima) ── */
.destino-guia-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1rem);
}

@media (max-width: 1024px) { .destino-guia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .destino-guia-grid { grid-template-columns: minmax(0, 1fr); } }

.destino-guia-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: clamp(.875rem, 2vw, 1.25rem);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: clamp(.375rem, 1.5vw, .5rem);
  height: 100%;
}

html.dark .destino-guia-card {
  background: #172033;
  border-color: #334155;
  box-shadow: none;
}

.destino-guia-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.destino-guia-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, .08);
  color: #0f766e;
}

html.dark .destino-guia-card-icon { background: rgba(13, 148, 136, .16); color: #5eead4; }

.destino-guia-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

html.dark .destino-guia-card-title { color: #f1f5f9; }

.destino-guia-card-text {
  color: #475569;
  font-size: clamp(.95rem, 2vw, .98rem);
  line-height: 1.7;
}

html.dark .destino-guia-card-text { color: #cbd5e1; }

.destino-guia-card-text small {
  display: block;
  margin-top: .25rem;
  font-size: .875rem;
  color: #64748b;
}

html.dark .destino-guia-card-text small { color: #94a3b8; }

/* Hueco reservado para el dato de clima dentro de la tarjeta */
.destino-guia-card-clima {
  margin-top: .25rem;
  min-height: .25rem;
  font-size: .875rem;
  color: #64748b;
}

html.dark .destino-guia-card-clima { color: #94a3b8; }

/* ── Secciones de texto (cómo llegar, perfil, consejos) ── */
.destino-guia-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
}

.destino-guia-section-header {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.destino-guia-section-title {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

html.dark .destino-guia-section-title { color: #f1f5f9; }

.destino-guia-section-title i { color: #0f766e; }
html.dark .destino-guia-section-title i { color: #5eead4; }

.destino-guia-prose {
  display: flex;
  flex-direction: column;
  gap: clamp(.875rem, 2vw, 1.25rem);
  color: #334155;
  line-height: 1.75;
}

html.dark .destino-guia-prose { color: #e2e8f0; }

.destino-guia-prose p { max-width: 78ch; margin: 0; }

/* Enlaces que el admin inserta con el editor visual. */
.destino-guia-prose a { color: #0f766e; text-decoration: underline; }
html.dark .destino-guia-prose a { color: #5eead4; }

/* Subtítulos (h3) creados desde el editor visual. */
.destino-guia-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
html.dark .destino-guia-prose h3 { color: #f1f5f9; }

/* Listas: acepta tanto la clase historica .destino-guia-list como el <ul>
   simple que genera el editor visual del admin (03/10/2026). */
.destino-guia-prose ul,
.destino-guia-list {
  display: flex;
  flex-direction: column;
  gap: clamp(.75rem, 2vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
  color: #334155;
}

html.dark .destino-guia-prose ul,
html.dark .destino-guia-list { color: #e2e8f0; }

.destino-guia-prose ul li,
.destino-guia-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.75;
}

.destino-guia-prose ul li::before,
.destino-guia-list li::before {
  content: '';
  position: absolute;
  left: .5rem;
  top: .65rem;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--color-primary);
}

html.dark .destino-guia-prose ul li::before,
html.dark .destino-guia-list li::before { background: #5eead4; }

/* ── Hueco reservado para el perfil de altitud / mapa ── */
.destino-guia-embed {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

html.dark .destino-guia-embed { background: #1e293b; border-color: #334155; }

.destino-guia-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(.75rem, 2vw, 1rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  min-height: clamp(220px, 40vw, 320px);
  color: #475569;
}

html.dark .destino-guia-placeholder { color: #cbd5e1; }

.destino-guia-placeholder i {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #0f766e;
}

html.dark .destino-guia-placeholder i { color: #5eead4; }

.destino-guia-placeholder-title {
  font-weight: 700;
  color: #0f172a;
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin: 0;
}

html.dark .destino-guia-placeholder-title { color: #f1f5f9; }

.destino-guia-placeholder-text {
  color: #64748b;
  font-size: .9rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

html.dark .destino-guia-placeholder-text { color: #94a3b8; }

.destino-guia-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .625rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(13, 148, 136, .08);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, .16);
}

html.dark .destino-guia-badge {
  background: rgba(13, 148, 136, .16);
  color: #5eead4;
  border-color: rgba(13, 148, 136, .32);
}

/* ── Aviso / consejo destacado ── */
.destino-guia-alert {
  display: flex;
  align-items: flex-start;
  gap: clamp(.75rem, 2vw, 1rem);
  padding: clamp(.875rem, 2vw, 1.125rem);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(13, 148, 136, .08) 0%, rgba(13, 148, 136, .04) 100%);
  border: 1px solid rgba(13, 148, 136, .24);
  color: #0f172a;
  line-height: 1.75;
}

html.dark .destino-guia-alert {
  background: linear-gradient(90deg, rgba(13, 148, 136, .16) 0%, rgba(13, 148, 136, .08) 100%);
  border-color: rgba(13, 148, 136, .4);
  color: #f1f5f9;
}

.destino-guia-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, .12);
  color: #0f766e;
}

html.dark .destino-guia-alert-icon { background: rgba(13, 148, 136, .24); color: #5eead4; }

/* Solo el rótulo "Consejo de oro" (hijo directo) va en su propia línea.
   Con `>` las negritas DENTRO del párrafo quedan en línea (antes saltaban). */
.destino-guia-alert-content > strong {
  display: block;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: .125rem;
}

html.dark .destino-guia-alert-content > strong { color: #5eead4; }

.destino-guia-alert-content p { margin: 0; }

/* ===== Logo: responsive =====
   El lockup brújula + "SalirdeLima.com" tiene que caber junto a las acciones
   del navbar. OJO al medir: el ancho disponible NO es el de la pantalla, es
   pantalla - 24px (padding .navbar-inner) - gap, porque los dos bloques van
   con flex-shrink:0 (no se pueden encoger). Con la brújula a 32px el wordmark
   completo mide 146px y el conjunto necesita 388px de pantalla, no 361px. */
@media (max-width: 430px) {
  /* Para que el wordmark completo con ".com" quepa junto a los botones del
     navbar (210px medidos) sin desborde, la brújula baja a 25.6px y el gap
     del navbar a 0.35rem. Medido: total ~334px = 25.6 + 7.2 + 85 (texto)
     + 5.6 + 210, o sea el ".com" necesita 375px de pantalla. */
  .navbar-logo { --logo-h: 1.6rem; /* 25.6px */ }
  .navbar-inner { gap: 0.35rem; }
}
@media (max-width: 374px) {
  /* Sin ".com" el logo original (32px) vuelve a caber de sobra, asi que se
     restaura el tamaño de antes. El gap NO se toca: el bloque de 360px ya lo
     reduce a 0.25rem y hay que respetar ese ajuste previo. */
  .navbar-logo { --logo-h: 2rem; /* 32px */ }
  .navbar-logo .lt-com { display: none; }
}
@media (max-width: 340px) {
  .navbar-logo .logo-texto { display: none; }
}


/* ======================================================================
   TIRA DE VIDEOS / SHORTS por destino (módulo frontend/js/plantilla/videos.js)
   Reglas aprobadas (07/10/2026): 0 → oculta | 1 → embebido 16:9 a todo el
   ancho | ≥2 → GRID 16:9 estilo YouTube: en desktop todas en la misma línea
   (cada una llena el ancho); en móvil una debajo de otra (1 columna).
   ====================================================================== */
.videos-strip {
  min-width: 0;
  padding: 1rem 0 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
html.dark .videos-strip { background: #0f172a; border-color: #334155; }

.videos-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0 1.25rem;
}
.videos-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #64748b; margin: 0;
}
.videos-title .fa-solid { color: #0d9488; }
html.dark .videos-title { color: #94a3b8; }
.videos-count { font-size: .72rem; color: #94a3b8; white-space: nowrap; }

/* ---- Tarjeta 16:9 (grid de ≥2 videos) ---- */
.video-single { padding: .8rem 1.25rem .5rem; }

/* Grid estilo YouTube: las N tarjetas llenan el ancho en la misma línea.
   Cada una ocupa 1fr (igual distribución); en móvil se apilan (1 columna). */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: .8rem 1.25rem .5rem;
}
@media (min-width: 641px) {
  .videos-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* Caso "1 solo video": reproductor embebido en la página (sin popup). */
.video-embed { margin: 0; }
.video-embed-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px;
  border-radius: .9rem; overflow: hidden; background: #000;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}
.video-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-embed-cap {
  display: flex; align-items: center; gap: .6rem;
  margin-top: .6rem; padding: 0 .1rem;
}
.video-embed-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem;
  padding: .18rem .6rem; border-radius: 9999px;
  background: #f1f5f9; color: #475569; font-size: .68rem; font-weight: 700;
}
html.dark .video-embed-badge { background: #1e293b; color: #cbd5e1; }
.video-embed-title { font-size: .82rem; font-weight: 700; color: #0f172a; }
html.dark .video-embed-title { color: #f1f5f9; }

.video-featured {
  display: block; width: 100%; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer; font-family: inherit; text-align: left;
}
.video-featured:focus-visible { outline: 2px solid #0d9488; outline-offset: 3px; border-radius: .9rem; }
.video-featured-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px;
  border-radius: .9rem; overflow: hidden; background: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}
.video-featured-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Botón de reproducción superpuesto (usa .video-featured y el lightbox) */
.video-play {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.35) 100%);
}
.video-play i {
  width: 46px; height: 46px; border-radius: 9999px;
  background: rgba(255,255,255,.94); color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; padding-left: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.video-featured:hover .video-play i { transform: scale(1.08); }
.video-featured-media .video-play i { width: 64px; height: 64px; font-size: 22px; padding-left: 4px; }

/* Degradado de respaldo por plataforma (cuando aún no hay miniatura del oEmbed) */
.video-thumb--youtube   { background: linear-gradient(160deg, #7f1d1d 0%, #dc2626 100%); }
.video-thumb--tiktok    { background: linear-gradient(160deg, #0f172a 0%, #334155 100%); }
.video-thumb--vimeo     { background: linear-gradient(160deg, #075985 0%, #1ab7ea 100%); }
.video-thumb--instagram { background: linear-gradient(160deg, #7c2d92 0%, #dc2743 55%, #f59e0b 100%); }
.video-thumb--facebook  { background: linear-gradient(160deg, #0c2d6b 0%, #1877f2 100%); }

.video-featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; align-items: center; gap: .4rem;
  padding: .32rem .65rem; border-radius: 9999px;
  background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700;
  backdrop-filter: blur(2px);
}
.video-featured-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.6rem 1.1rem .95rem;
  background: linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,.88) 72%);
  color: #fff;
}
.video-featured-meta h4 { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.video-featured-sub {
  display: flex; align-items: center; gap: .55rem; margin-top: .35rem;
  font-size: .75rem; font-weight: 600; color: #cbd5e1;
}
.video-featured-sub .sep { width: 3px; height: 3px; border-radius: 50%; background: #94a3b8; }

/* ---- Lightbox / reproductor fullscreen ---- */
.video-lightbox {
  position: fixed; inset: 0; z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 23, .92);
  padding: 1rem;
}
.video-lightbox.hidden { display: none; }
.video-lightbox-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 9999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.video-lightbox-close:hover { background: rgba(255,255,255,.26); }
.video-lightbox-frame {
  width: min(420px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 90vh;
  border-radius: 1rem; overflow: hidden; background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
/* Reproductor apaisado para tarjetas 16:9 (destacado / dúo) */
.video-lightbox-frame--wide {
  width: min(940px, 94vw);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
}
.video-lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-lightbox-cap {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  color: #e2e8f0; font-size: .8rem; padding: 0 1rem; pointer-events: none;
}

/* Foco del lightbox: el contenedor recibe el foco (tabindex -1) para que Escape llegue al documento */
.video-lightbox:focus { outline: none; }

/* ======================================================================
   BÚSQUEDA desde el home: los resultados deben quedar JUSTO debajo del
   buscador (fix 13/10/2026). Al buscar se agrega la clase `buscando` a
   #section-home (buscador.js) y aquí se oculta la portada (descripción del
   destino, guía de ruta, clima y videos) y las secciones del home. Así los
   resultados suben por encima de las tiras que insertan ui.js/clima.js/videos.js
   (antes quedaban ~1900px abajo, debajo de la guía de ruta y el clima).
   Se usa !important porque estos bloques tienen su propio `display` en esta
   hoja, que se carga después de la utilidad .hidden de Tailwind.
   ====================================================================== */
#section-home.buscando > #hero-destino-desc,
#section-home.buscando > #destino-guia-wrapper,
#section-home.buscando > #clima-home-strip,
#section-home.buscando > #videos-home-strip,
#section-home.buscando > #destino-lugares-section,
#section-home.buscando > #destino-mapa-section,
#section-home.buscando > #seccion-recomendados {
  display: none !important;
}
