:root {
  --terracota: #bd4e2a;
  --terracota-dark: #8c3a22;
  --ocre: #d99b46;
  --ocre-light: #f0c688;
  --crema: #f7efe0;
  --blanco-cal: #fdf9f1;
  --blanco: #ffffff;
  --anil: #2b4a5e;
  --anil-dark: #1c3340;
  --oliva: #6e7b4a;
  --texto: #2a2118;
  --texto-suave: #6b5d4f;
  --borde: #e6d8bf;
  --sombra: 0 4px 16px rgba(42, 33, 24, 0.08);
  --sombra-hover: 0 18px 36px rgba(42, 33, 24, 0.18);
  --radio: 16px;
  --radio-sm: 10px;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body:not([data-page="home"]) {
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header / nav ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.solid {
  background: rgba(253, 249, 241, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--sombra);
  border-bottom: 1px solid var(--borde);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blanco);
  white-space: nowrap;
  transition: transform 0.15s, color 0.3s ease;
  margin-right: 6px;
}

.site-header.solid .logo {
  color: var(--terracota-dark);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo .icon {
  width: 26px;
  height: 26px;
  color: var(--ocre);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--blanco);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.9;
  transition: background 0.15s, opacity 0.15s, transform 0.15s, color 0.3s ease;
}

.site-header.solid .nav-links a {
  color: var(--texto);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.site-header.solid .nav-links a:hover,
.site-header.solid .nav-links a.active {
  background: var(--crema);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.solid .nav-utils {
  background: var(--crema);
  border-color: var(--borde);
}

.nav-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blanco);
  transition: color 0.3s ease, background 0.15s ease;
}

.nav-search-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-header.solid .nav-search-link {
  color: var(--terracota-dark);
}

.site-header.solid .nav-search-link:hover {
  background: var(--blanco);
}

.lang-switch {
  display: flex;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--blanco);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, color 0.3s ease;
}

.site-header.solid .lang-btn {
  color: var(--texto-suave);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.solid .lang-btn:hover {
  background: var(--blanco);
}

.lang-btn.active {
  background: var(--ocre);
  color: var(--texto);
}

.site-header.solid .lang-btn.active {
  background: var(--terracota);
  color: var(--blanco);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  cursor: pointer;
  padding: 6px;
  transition: color 0.3s ease;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.site-header.solid .nav-toggle {
  color: var(--texto);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: var(--blanco-cal);
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--sombra);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    color: var(--texto);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--crema);
  }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
}

.btn-primary {
  background: var(--ocre);
  color: var(--texto);
  box-shadow: 0 8px 20px rgba(217, 155, 70, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 155, 70, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  text-align: center;
  overflow: hidden;
  padding: 140px 0 60px;
}

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(28, 20, 13, 0.55) 0%,
      rgba(28, 20, 13, 0.42) 40%,
      rgba(20, 14, 10, 0.82) 100%
    ),
    linear-gradient(100deg, rgba(140, 58, 34, 0.35), rgba(43, 74, 94, 0.35));
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre-light);
  margin-bottom: 18px;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  margin: 0 0 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.7s ease 0.05s both;
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.18rem;
  font-weight: 400;
  opacity: 0.96;
  animation: fadeUp 0.7s ease 0.15s both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  animation: fadeUp 0.7s ease 0.22s both;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--blanco-cal);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 20px 45px rgba(20, 14, 10, 0.35);
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero-search .icon {
  color: var(--terracota);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-search input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--texto);
  padding: 8px 4px;
}

.hero-search input::placeholder {
  color: var(--texto-suave);
}

.hero-search .btn {
  padding: 11px 22px;
  white-space: nowrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll-cue .icon {
  width: 26px;
  height: 26px;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Sections ============ */

.section {
  padding: 64px 0;
}

.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 8px;
  color: var(--texto);
}

.section-subtitle {
  color: var(--texto-suave);
  margin: 0 0 32px;
  font-size: 1.05rem;
  max-width: 640px;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Cards grid ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.card-clickable {
  position: relative;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.card-clickable .favorite-btn {
  z-index: 4;
}

.card-clickable .btn-ticket {
  position: relative;
  z-index: 4;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  pointer-events: none;
  margin: 0;
}

.filter-note {
  grid-column: 1 / -1;
  margin: -14px 0 4px;
  font-size: 0.82rem;
  color: var(--texto-suave);
  font-style: italic;
}

.card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--ocre);
  cursor: zoom-in;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.09);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(20, 14, 10, 0.32));
  pointer-events: none;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.card-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--crema);
  color: var(--terracota);
}

.card-icon .icon {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin: 0;
  font-size: 1.22rem;
  color: var(--texto);
  line-height: 1.25;
}

.card .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--ocre-light);
  color: var(--terracota-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}

.card p {
  margin: 4px 0 0;
  color: var(--texto-suave);
  font-size: 0.96rem;
  flex-grow: 1;
}

.card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--anil);
  margin-top: 4px;
  font-weight: 500;
}

.card .meta .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-ticket {
  justify-content: center;
  margin-top: 10px;
  padding: 11px 18px;
  font-size: 0.9rem;
  width: 100%;
}

.section-divider {
  margin-top: 20px;
  border-top: 1px solid var(--borde);
  padding-top: 44px;
}

.carta {
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 14px 16px;
  margin-top: 4px;
}

.carta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--terracota-dark);
  margin-bottom: 8px;
}

.carta ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--texto-suave);
}

.carta li {
  margin-bottom: 4px;
}

/* Favorite button */

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 249, 241, 0.9);
  backdrop-filter: blur(3px);
  color: var(--terracota);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 2;
}

.favorite-btn .icon {
  width: 18px;
  height: 18px;
  fill: none;
  transition: fill 0.15s ease;
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: var(--blanco);
}

.favorite-btn.active .icon {
  fill: var(--terracota);
}

.favorite-btn.active {
  animation: heartBeat 0.35s ease;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* ============ Filters ============ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  align-items: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--borde);
  background: var(--blanco-cal);
  color: var(--texto);
  padding: 8px 17px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.filter-btn .icon {
  width: 15px;
  height: 15px;
}

.filter-btn:hover {
  border-color: var(--terracota);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--terracota);
  border-color: var(--terracota);
  color: var(--blanco);
}

.filter-btn.favorite-filter {
  margin-left: auto;
}

/* ============ Search box (buscar.html) ============ */

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: var(--sombra);
  margin-bottom: 32px;
}

.search-box input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-family: var(--font-body);
  font-size: 1.02rem;
  background: transparent;
  color: var(--texto);
}

.search-icon {
  display: flex;
  color: var(--terracota);
  flex-shrink: 0;
}

.search-icon .icon {
  width: 20px;
  height: 20px;
}

.empty-state {
  text-align: center;
  color: var(--texto-suave);
  padding: 48px 0;
  font-size: 1.05rem;
}

/* ============ Map ============ */

.map-shell {
  position: relative;
}

.map-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.map-search {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--sombra);
}

.map-search-icon {
  display: flex;
  color: var(--terracota);
  flex-shrink: 0;
}

.map-search-icon .icon {
  width: 18px;
  height: 18px;
}

.map-search input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--texto);
}

.map-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  box-shadow: var(--sombra-hover);
  max-height: 340px;
  overflow-y: auto;
  z-index: 30;
  display: none;
}

.map-search-results.open {
  display: block;
}

.map-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  border-bottom: 1px solid var(--borde);
}

.map-search-result:last-child {
  border-bottom: none;
}

.map-search-result:hover {
  background: var(--crema);
}

.map-search-result-icon,
.map-nearby-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blanco);
  flex-shrink: 0;
}

.map-search-result-icon .icon,
.map-nearby-icon .icon {
  width: 16px;
  height: 16px;
}

.map-search-result strong,
.map-nearby-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--texto);
}

.map-search-result small,
.map-nearby-item small {
  color: var(--texto-suave);
  font-size: 0.8rem;
}

.map-search-empty {
  padding: 14px 16px;
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.map-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--borde);
  background: var(--blanco-cal);
  color: var(--texto);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color 0.15s, transform 0.15s;
}

.map-locate-btn:hover {
  border-color: var(--terracota);
  transform: translateY(-1px);
}

.map-locate-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.map-chips,
.map-routes-panel {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1.5px solid var(--borde);
  background: var(--blanco-cal);
  color: var(--texto-suave);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.map-chip .icon {
  width: 15px;
  height: 15px;
}

.map-chip.active {
  background: var(--chip-color, var(--terracota));
  border-color: var(--chip-color, var(--terracota));
  color: var(--blanco);
}

.map-route-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1.5px solid var(--borde);
  background: var(--blanco-cal);
  color: var(--texto);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
}

.map-route-chip.active {
  border-color: var(--route-color, var(--anil));
  background: color-mix(in srgb, var(--route-color, var(--anil)) 12%, var(--blanco-cal));
}

.map-route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-route-duration {
  color: var(--texto-suave);
  font-weight: 500;
  font-size: 0.78rem;
}

#map {
  height: 560px;
  width: 100%;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.map-marker-wrap {
  background: none;
  border: none;
}

.map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  color: var(--blanco);
  box-shadow: 0 3px 8px rgba(20, 14, 10, 0.35);
  border: 2px solid var(--blanco-cal);
}

.map-marker .icon {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

.map-marker-number {
  border-radius: 50%;
  transform: none;
  width: 26px;
  height: 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
}

.map-marker-user {
  border-radius: 50%;
  transform: none;
  width: 18px;
  height: 18px;
  background: var(--anil);
  border: 3px solid var(--blanco);
  box-shadow: 0 0 0 4px rgba(43, 74, 94, 0.25);
}

/* Bottom sheet */

.map-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--blanco-cal);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(20, 14, 10, 0.3);
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform 0.3s ease;
}

.map-sheet.open {
  transform: translateY(0);
}

.map-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--borde);
  margin: 12px auto 4px;
}

.map-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--crema);
  color: var(--texto);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-sheet-close .icon {
  width: 16px;
  height: 16px;
}

.map-sheet-media {
  height: 200px;
  overflow: hidden;
}

.map-sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-sheet-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
}

.map-sheet-media-fallback .icon {
  width: 44px;
  height: 44px;
}

.map-sheet-body {
  padding: 20px 24px 28px;
}

.map-sheet-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 8px 0 4px;
  color: var(--texto);
}

.map-sheet-badge {
  color: var(--terracota-dark);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.map-sheet-desc {
  color: var(--texto-suave);
  margin: 0 0 10px;
}

.map-sheet-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--anil);
  margin-top: 4px;
  font-weight: 500;
}

.map-sheet-meta .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.map-sheet-flag {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--texto-suave);
  margin: 8px 0 0;
}

.map-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.map-nearby-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.map-nearby-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  border-top: 1px solid var(--borde);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.map-nearby-item:hover {
  background: var(--crema);
}

@media (min-width: 640px) {
  .map-sheet {
    left: 50%;
    right: auto;
    transform: translate(-50%, 105%);
    width: 420px;
    border-radius: 20px;
    bottom: 24px;
    max-height: 75vh;
  }

  .map-sheet.open {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  #map {
    height: 460px;
  }

  .map-toolbar {
    flex-direction: column;
  }

  .map-locate-btn {
    justify-content: center;
  }
}

/* ============ Ficha de lugar ============ */

.lugar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracota);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 22px;
}

.lugar-back .icon {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

.lugar-back:hover {
  text-decoration: underline;
}

.lugar-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
  border-radius: var(--radio);
  overflow: hidden;
}

.lugar-gallery-single {
  grid-template-columns: 1fr;
}

.lugar-gallery .card-media {
  height: 320px;
  border-radius: 0;
}

.lugar-gallery-thumb:first-child {
  grid-column: span 2;
  height: 380px;
}

.lugar-header {
  margin-bottom: 30px;
}

.lugar-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 10px 0 0;
  color: var(--texto);
}

.lugar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--terracota);
  color: var(--blanco);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-left: 8px;
}

.lugar-badge .icon {
  width: 12px;
  height: 12px;
}

.lugar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.lugar-main > * + * {
  margin-top: 32px;
}

.lugar-why h2,
.lugar-tips h2,
.lugar-nearby h2,
.lugar-info-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--texto);
}

.lugar-why p {
  color: var(--texto-suave);
  font-size: 1.03rem;
}

.lugar-history {
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 16px 20px;
}

.lugar-history summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--terracota-dark);
  font-size: 1.05rem;
}

.lugar-history p {
  color: var(--texto-suave);
  margin: 14px 0 0;
}

.lugar-tips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lugar-tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--texto-suave);
}

.lugar-tips li .icon {
  width: 16px;
  height: 16px;
  color: var(--ocre);
  flex-shrink: 0;
  margin-top: 3px;
}

.lugar-map {
  height: 280px;
  width: 100%;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.lugar-nearby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lugar-nearby-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crema);
  border: 1px solid var(--borde);
  color: var(--texto);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.lugar-nearby-chip:hover {
  border-color: var(--terracota);
  background: var(--ocre-light);
  transform: translateY(-1px);
}

.lugar-nearby-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--terracota);
}

.lugar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline-dark {
  background: var(--blanco-cal);
  color: var(--texto);
  border: 1.5px solid var(--borde);
}

.btn-outline-dark:hover {
  border-color: var(--terracota);
  transform: translateY(-2px);
}

.route-btn.active {
  background: var(--terracota);
  color: var(--blanco);
  border-color: var(--terracota);
}

.route-btn.active .icon {
  fill: var(--blanco);
}

.lugar-info-card {
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.lugar-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--borde);
}

.lugar-info-row:first-of-type {
  border-top: none;
}

.lugar-info-icon {
  display: flex;
  color: var(--terracota);
  flex-shrink: 0;
  margin-top: 2px;
}

.lugar-info-icon .icon {
  width: 18px;
  height: 18px;
}

.lugar-info-row strong {
  display: block;
  font-size: 0.82rem;
  color: var(--texto);
  margin-bottom: 2px;
}

.lugar-info-row p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.lugar-info-card .btn-ticket {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .lugar-layout {
    grid-template-columns: 1fr;
  }

  .lugar-info-card {
    position: static;
  }

  .lugar-gallery-thumb:first-child {
    grid-column: span 2;
    height: 260px;
  }
}

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 30px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 950px);
  max-height: 85vh;
  border-radius: 12px;
  transform: scale(0.92);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--blanco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.lightbox-close .icon {
  width: 20px;
  height: 20px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ============ Toast ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--texto);
  color: var(--crema);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--sombra-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ Back to top ============ */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--terracota);
  color: var(--blanco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-hover);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  z-index: 90;
}

.back-to-top .icon {
  width: 20px;
  height: 20px;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--terracota-dark);
}

/* ============ Footer ============ */

.site-footer {
  background: var(--anil-dark);
  color: rgba(253, 249, 241, 0.88);
  margin-top: 60px;
  font-size: 0.92rem;
}

.footer-main {
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blanco-cal);
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-brand .icon {
  width: 24px;
  height: 24px;
  color: var(--ocre);
}

.footer-tagline {
  color: rgba(253, 249, 241, 0.65);
  margin: 0 0 20px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(253, 249, 241, 0.1);
  color: var(--blanco-cal);
  transition: background 0.15s, transform 0.15s;
}

.footer-social a:hover {
  background: var(--terracota);
  transform: translateY(-2px);
}

.footer-social .icon {
  width: 17px;
  height: 17px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanco-cal);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(253, 249, 241, 0.72);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ocre-light);
}

.footer-map {
  border-radius: var(--radio-sm);
  overflow: hidden;
  border: 1px solid rgba(253, 249, 241, 0.15);
  height: 150px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(253, 249, 241, 0.14);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(253, 249, 241, 0.6);
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(253, 249, 241, 0.3);
}

/* ============ Home highlights ============ */

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.home-link-card {
  background: var(--blanco-cal);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--texto);
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-link-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.home-link-card .card-icon {
  margin: 0 auto 14px;
  width: 52px;
  height: 52px;
  transition: transform 0.25s ease;
}

.home-link-card .card-icon .icon {
  width: 24px;
  height: 24px;
}

.home-link-card:hover .card-icon {
  transform: scale(1.12) rotate(-4deg);
}

.home-link-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.home-link-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--texto-suave);
}

/* ============ Chat launcher (hero) ============ */

.hero-chat-launcher {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-chat-launcher:hover,
.hero-chat-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(20, 14, 10, 0.4);
  outline: none;
}

.hero-chat-launcher input {
  cursor: pointer;
}

/* ============ Chat widget ============ */

.chat-widget {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.chat-widget.open {
  opacity: 1;
  pointer-events: auto;
}

.chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.55);
}

.chat-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: min(680px, 85vh);
  background: var(--blanco-cal);
  border-radius: var(--radio);
  box-shadow: 0 30px 70px rgba(20, 14, 10, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.chat-widget.open .chat-panel {
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(120deg, var(--terracota), var(--terracota-dark));
  color: var(--blanco);
  flex-shrink: 0;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-bot-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.chat-bot-avatar .icon {
  width: 20px;
  height: 20px;
}

.chat-header-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.chat-header-title p {
  margin: 1px 0 0;
  font-size: 0.76rem;
  opacity: 0.85;
}

.chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--blanco);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-close .icon {
  width: 16px;
  height: 16px;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--ocre);
  color: var(--texto);
  border-bottom-right-radius: 4px;
}

.chat-msg-assistant {
  align-self: flex-start;
  background: var(--blanco);
  border: 1px solid var(--borde);
  color: var(--texto);
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--crema);
  color: var(--terracota);
  flex-shrink: 0;
  margin-top: 1px;
}

.chat-msg-avatar .icon {
  width: 13px;
  height: 13px;
}

.chat-msg-text {
  flex-grow: 1;
}

.chat-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px 0;
}

.chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--texto-suave);
  animation: chatDot 1.2s ease-in-out infinite;
}

.chat-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatDot {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
  flex-shrink: 0;
}

.chat-chip {
  border: 1px solid var(--borde);
  background: var(--crema);
  color: var(--texto);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.chat-chip:hover {
  border-color: var(--terracota);
  background: var(--blanco);
  transform: translateY(-1px);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--borde);
  background: var(--blanco-cal);
  flex-shrink: 0;
}

.chat-input-row input {
  flex-grow: 1;
  border: 1px solid var(--borde);
  background: var(--blanco);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--texto);
  outline: none;
  transition: border-color 0.15s;
}

.chat-input-row input:focus {
  border-color: var(--terracota);
}

.chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--terracota);
  color: var(--blanco);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.chat-send-btn:hover {
  background: var(--terracota-dark);
  transform: scale(1.06);
}

.chat-send-btn .icon {
  width: 18px;
  height: 18px;
}

body.chat-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .chat-widget {
    padding: 0;
  }
  .chat-panel {
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ============ Partner banner ============ */

.partner-banner {
  background: linear-gradient(120deg, var(--anil), var(--anil-dark));
  border-radius: var(--radio);
  padding: 40px;
  color: var(--blanco-cal);
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--sombra);
}

.partner-banner-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-banner-icon .icon {
  width: 32px;
  height: 32px;
}

.partner-banner-content {
  flex: 1;
  min-width: 240px;
}

.partner-banner-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocre-light);
  margin-bottom: 8px;
}

.partner-banner-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.partner-banner-desc {
  color: rgba(253, 249, 241, 0.82);
  margin: 0 0 18px;
  max-width: 540px;
  font-size: 0.98rem;
}

.partner-banner-discount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.partner-banner-discount .icon {
  width: 15px;
  height: 15px;
}

.partner-banner-discount code {
  background: var(--ocre);
  color: var(--texto);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.partner-banner-actions {
  display: flex;
}

@media (max-width: 600px) {
  .partner-banner {
    padding: 28px 22px;
  }
}
