:root {
  --background: rgb(250, 248, 245);
  --surface: rgba(255, 255, 247, 0.94);
  --surface-strong: #fffdf9;
  --text: #1c2528;
  --muted: #455059;
  --line: rgba(28, 37, 40, 0.1);
  --primary: #2996b6;
  --primary-deep: #1d647b;
  --accent: #d2a05e;
  --ink: #11181c;
  --shadow-soft: 0 16px 48px rgba(17, 24, 28, 0.12);
  --shadow-card: 0 12px 32px rgba(17, 24, 28, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(41, 150, 182, 0.05), transparent 28%), var(--background);
  background-image: radial-gradient(rgba(17, 24, 28, 0.03) 1px, transparent 1px), radial-gradient(circle at top, rgba(41, 150, 182, 0.05), transparent 28%);
  background-size: 22px 22px, auto;
  line-height: 1.65;
}

a:not([class]) {
  color: var(--primary-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(29, 100, 123, 0.42);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease;
}

a:not([class]):hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid rgba(41, 150, 182, 0.35);
  outline-offset: 3px;
}

.button,
.card-link,
.section-link,
.nav a,
.footer-list a,
.header-cta {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

[ng-cloak] {
  display: none !important;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  object-fit: cover;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary);
}

/* Buttons inside .nav keep their own color (e.g. Book Now in mobile drawer) */
.nav a.button {
  color: #fff;
}

.menu-button {
  display: none;
}

/* Mobile-only nav elements — hidden on desktop */
.nav-mobile-header,
.nav-mobile-cta {
  display: none;
}

/* ===== MOBILE OVERLAY =====
   Pure CSS: controlled via #menuToggle:checked sibling selectors.
   No JavaScript needed — same approach as the admin panel.
   ====================================== */

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}

#menuToggle:checked ~ .menu-overlay {
  display: block;
}

/* ===== BUTTON SYSTEM =====
   Base: .button
   Modifiers: .sm  .light  .outline
   Combinable: .button.sm.light  etc.
   ========================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  /* Primary: gradient teal */
  color: #fff;
  background: linear-gradient(135deg, #34b8d8 0%, #2996b6 45%, #1d7a99 100%);
  box-shadow: 0 8px 24px rgba(41, 150, 182, 0.45);
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.button:hover {
  background: linear-gradient(135deg, #45c8e8 0%, #34a8c8 45%, #2490b0 100%);
  box-shadow: 0 12px 32px rgba(41, 150, 182, 0.55);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(41, 150, 182, 0.4);
}

/* Modifier: tamaño pequeño */
.button.sm {
  min-height: 2.4rem;
  padding: 0 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* Modifier: fondo claro, texto teal (para fondos blancos) */
.button.light {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 4px 16px rgba(41, 150, 182, 0.15);
  border: 1.5px solid rgba(41, 150, 182, 0.25);
}

.button.light::after {
  display: none;
}

.button.light:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  box-shadow: 0 8px 24px rgba(41, 150, 182, 0.2);
}

/* Modifier: transparente con borde blanco (para fondos oscuros/hero) */
.button.outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fefcf8;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.button.outline::after {
  display: none;
}

.button.outline:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  transform: translateY(-1px);
}

.button-icon {
  margin-right: 0.5rem;
  font-size: 1em;
  line-height: 1;
}



.hero {
  position: relative;
  overflow: hidden;
  min-height: 47rem;
  color: #fefcf8;
}

.hero-media,
.hero-overlay,
.hero-fade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(180deg, rgb(0 102 255 / 20%) 0%, rgb(0 0 0 / 15%) 48%, rgb(0 0 0 / 0%) 70%);
}

.hero-fade {
  background: linear-gradient(180deg, rgb(247 242 234 / 0%) 68%, rgb(247 242 234 / 50%) 100%);
}

.hero-content {
  position: relative;
  padding: 7rem 0 16rem;
}

.hero-title,
.section-title,
.cta-title,
.page-title,
.detail-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  line-height: 0.88;
}

.hero-title {
  max-width: 62rem;
  margin: 0 0 1.5rem;
  font-size: clamp(4.5rem, 10vw, 8.6rem);
}

.hero-title .accent {
  color: var(--primary);
  text-shadow: 5px 2px 10px #fff;
}

.hero-copy {
  max-width: 37rem;
  margin: 0 0 1.4rem;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 0 0 2rem;
}

.hero-benefits span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.hero-title-br {
  display: none;
}

.hero-actions,
.cta-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.stats-wrap {
  position: relative;
  margin-top: -7rem;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 2rem 1.4rem;
  text-align: center;
}

.stat-card+.stat-card {
  border-left: 1px solid var(--line);
}

.stat-value {
  font-family: 'Lora', serif;
  color: var(--primary);
  font-size: clamp(1.6rem, 2.5vw, 3rem);
  line-height: 1;
}

.stat-label {
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.84rem;
  color: var(--muted);
}

.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}

.section-title {
  margin: 0;
  max-width: none;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.1;
}

.section-link {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  white-space: nowrap;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.tour-card,
.panel,
.contact-card,
.booking-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 150, 182, 0.35);
  box-shadow: var(--shadow-soft);
}

.tour-media {
  display: flex;
  align-items: flex-end;
  position: relative;
  min-height: 18.5rem;
  padding: 1rem;
  color: #fefcf8;
  overflow: hidden;
  background: linear-gradient(180deg, #2e99b7 0%, #18566e 100%);
}

.tour-media-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tour-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 58%);
  mix-blend-mode: overlay;
  z-index: 1;
}

.tour-media img.tour-promo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tour-badge {
  display: inline-block;
  text-align: center;
  border-radius: 999px;
  min-height: 2.1rem;
  padding: 0.4rem 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.tour-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 252, 247, 0.95);
  color: var(--ink);
  z-index: 1;
}

.tour-meta {
  flex: 1;
  min-width: 0;
}

.tour-body p,
.muted,
.page-copy {
  color: var(--muted);
}

.tour-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tour-category-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-deep);
  background: rgba(41, 150, 182, 0.1);
  border: 1px solid rgba(41, 150, 182, 0.22);
}

.tour-meta h3,
.tour-body h3,
.detail-card h3 {
  margin: 0;
}

.tour-meta h3 {
  font-family: 'Lora', serif;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.1;
  text-wrap: balance;
}

.tour-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem;
}

.tour-footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tour-media-price {
  flex-shrink: 0;
  align-self: flex-end;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.tmp-label {
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.tmp-value {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.tour-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: rgba(41, 150, 182, 0.08);
  border: 1px solid rgba(41, 150, 182, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  width: fit-content;
}

.price-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.price-value {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1;
}

.price-value small {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.15rem;
}

.tour-actions {
  display: flex;
  gap: 0.5rem;
}

.card-link {
  flex: 1;
  display: block;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(41, 150, 182, 0.28);
}

.card-link:hover {
  background: var(--primary-deep);
  box-shadow: 0 4px 16px rgba(29, 100, 123, 0.35);
  transform: translateY(-1px);
}

.card-link-secondary {
  background: transparent;
  color: var(--primary-deep);
  border: 1.5px solid rgba(29, 100, 123, 0.35);
  box-shadow: none;
}

.card-link-secondary:hover {
  background: rgba(41, 150, 182, 0.08);
  color: var(--primary);
  border-color: rgba(41, 150, 182, 0.5);
  box-shadow: none;
  transform: translateY(-1px);
}

.cta {
  padding: 5.5rem 0;
  background: var(--primary);
  color: #fefcf8;
}

.cta-panel {
  text-align: center;
}

.cta-title {
  margin: 0 0 1rem;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
}

.cta-copy {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: rgba(255, 252, 247, 0.97);
}

.site-footer {
  margin-top: 0;
  color: #fefcf8;
  background: var(--ink);
}

.wave {
  height: 4rem;
  margin-top: 4rem;
  background: var(--primary);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,40 C240,120 480,0 720,50 C960,100 1200,20 1440,60 L1440,120 L0,120 Z'/></svg>") center / 100% 100% no-repeat;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0;
}

.footer-title,
.footer-heading {
  margin: 0;
  font-family: 'Lora', serif;
}

.footer-title {
  font-size: 3rem;
  color: var(--primary);
}

.footer-heading {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-copy,
.footer-list a,
.footer-list li,
.copyright {
  color: rgba(255, 252, 247, 0.88);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li+li {
  margin-top: 0.75rem;
}

.copyright {
  padding: 1.4rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
  text-align: center;
  color: #fefcf8;
  box-shadow: 0 28px 42px -34px rgba(8, 20, 28, 0.55);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 28, 0.24) 0%, rgba(8, 20, 28, 0.16) 56%, rgba(8, 20, 28, 0.22) 100%),
    url('../assets/hero-blur.webp') top / cover no-repeat;
  filter: blur(2px) saturate(0.98) brightness(0.98);
  transform: scale(1.02);
  z-index: 0;
}

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

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .detail-title {
  margin: 0.5rem 0 1rem;
  font-size: clamp(3rem, 6vw, 5rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.page-hero .page-title {
  margin: 0 0 1rem;
  color: #fefcf8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.page-hero .page-copy {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

.catalog-hero-copy {
  padding: 1rem 0 1.5rem;
}

.catalog-hero-copy .page-copy {
  margin: 0 auto;
  color: var(--muted);
  text-shadow: none;
  font-size: 1.08rem;
}

.page-hero .tour-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1.2rem;
  background: rgba(255, 252, 247, 0.12);
  color: #fefcf8;
  border: 1px solid rgba(255, 252, 247, 0.22);
}

.hero-inline-link {
  color: #d9f3f2;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(217, 243, 242, 0.45);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-inline-link:hover {
  color: #ffffff;
  text-decoration-color: currentColor;
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
}

.page-copy {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.15rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.catalog-hero .container {
  max-width: 66rem;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.75rem;
  margin: 0 0 2.2rem;
  padding: 1rem;
  border: 1px solid rgba(28, 37, 40, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 10px 24px rgba(17, 24, 28, 0.05);
  backdrop-filter: blur(10px);
}

.filter-btn {
  position: relative;
  display: inline-block;
  text-align: center;
  min-height: 2.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(28, 37, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 150, 182, 0.3);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(17, 24, 28, 0.08);
}

.filter-btn.active {
  border-color: rgba(41, 150, 182, 0.28);
  background: linear-gradient(180deg, rgba(41, 150, 182, 0.16), rgba(41, 150, 182, 0.08));
  color: var(--primary-deep);
  box-shadow: 0 12px 26px rgba(41, 150, 182, 0.14);
}

.filter-btn:focus-visible {
  outline: 2px solid rgba(41, 150, 182, 0.28);
  outline-offset: 3px;
}

.catalog-grid .tour-card {
  border-radius: 1.15rem;
}

.catalog-grid .tour-media {
  min-height: 14.75rem;
}

.catalog-grid .tour-body {
  gap: 0.85rem;
  padding: 1.5rem;
}

.catalog-grid .tour-body>p {
  margin: 0;
  min-height: 4.5rem;
}



.field,
.field select,
.field input,
.field textarea {
  width: 100%;
}

.field input,
.field select,
.field textarea {
  min-height: 3.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf9;
  color: var(--text);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.info-grid,
.detail-layout {
  display: grid;
  gap: 1.4rem;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-layout {
  grid-template-columns: 1.25fr 0.85fr;
  align-items: start;
}



.reserve-page .page-title {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
}

.reserve-form-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.55rem;
  border-radius: 1.5rem;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: 0 16px 42px rgba(17, 24, 28, 0.08);
}

.detail-panels {
  display: grid;
  gap: 1.4rem;
}

.reserve-form-head h2 {
  margin: 0 0 0.25rem;
  font-family: 'Lora', serif;
  font-size: 2.1rem;
  color: var(--primary);
}

.reserve-form-head p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.reserve-form-card .field {
  margin-bottom: 0.95rem;
}

.reserve-form-card .field label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(28, 37, 40, 0.88);
}

.reserve-form-card .field input,
.reserve-form-card .field textarea,
.tour-select-trigger {
  min-height: 3rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(28, 37, 40, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 252, 247, 0.98);
}

.reserve-form-card .field input:focus,
.reserve-form-card .field textarea:focus,
.tour-select-trigger.is-open {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(41, 150, 182, 0.15);
}

.reserve-form-card textarea {
  min-height: 4.25rem;
}

.reserve-footnote {
  margin-top: 1.4rem;
  font-size: 14px;
  color: var(--muted);
}

.tour-select {
  position: relative;
}

.tour-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tour-select-trigger:hover {
  border-color: var(--primary);
}

.tour-select-trigger.is-open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 150, 182, 0.1);
}

.tour-select-trigger::after {
  content: '▾';
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 0.2s ease;
}

.tour-select-trigger.is-open::after {
  transform: rotate(180deg);
}

.tour-select-trigger.is-placeholder {
  color: rgba(28, 37, 40, 0.75);
}

.tour-select-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 100;
  overflow-y: auto;
  max-height: 26rem;
  border: 1px solid rgba(28, 37, 40, 0.22);
  border-radius: 0.8rem;
  background: #fffdf9;
  box-shadow: 0 16px 42px rgba(17, 24, 28, 0.15);
}

.tour-select-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(28, 37, 40, 0.08);
}

.tour-select-option:last-child {
  border-bottom: none;
}

.tour-select-option:hover,
.tour-select-option.is-selected {
  background: rgba(41, 150, 182, 0.1);
}

.tour-select-option-icon {
  width: 1.5rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.2rem;
}

/* ========== Tour Modal Styles ========== */
.tour-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  animation: fadeIn 0.2s ease;
}

.tour-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  width: 100%;
  max-height: 85vh;
  z-index: 200;
  background: #fffdf9;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.tour-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(28, 37, 40, 0.1);
  flex-shrink: 0;
}

.tour-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.tour-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(41, 150, 182, 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-modal-close:hover {
  background: var(--primary);
  color: white;
}

.tour-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Responsive modal grid */
@media (max-width: 768px) {
  .tour-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .tour-modal {
    max-width: 95vw;
    max-height: 90vh;
  }
  
  .tour-modal-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.tour-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border: 2px solid rgba(28, 37, 40, 0.1)!important;
  border-radius: var(--radius-md);
  background: #fefdfb;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tour-modal-card:hover {
  border: 2px solid var(--primary);
  background: rgba(41, 150, 182, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 150, 182, 0.15);
}

.tour-modal-card:active {
  transform: translateY(0);
}

.tour-modal-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.tour-modal-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.2;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-modal-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  font-size: 0.75rem;
}

.tour-detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  line-height: 1.3;
}

.tour-detail-item:last-child {
  margin-bottom: 0;
}

.tour-detail-icon {
  display: inline-block;
  min-width: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.tour-detail-text {
  flex: 1;
  word-break: break-word;
}

.tour-detail-label {
  display: inline;
  font-weight: 600;
  color: var(--muted);
}

.tour-detail-price {
  display: inline;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.tour-detail-inquire {
  color: var(--accent);
  font-style: italic;
}

.tour-selected-card {
  padding: 1.5rem;
  border: 2px solid rgba(28, 37, 40, 0.1);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fefdfb 0%, rgba(254, 253, 251, 0.9) 100%);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.tour-selected-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(41, 150, 182, 0.12);
}

.tour-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tour-card-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .tour-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tour-card-change-btn {
    align-self: flex-start;
  }
}

.tour-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.tour-card-change-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 1rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.tour-card-change-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(41, 150, 182, 0.3);
}

.tour-card-details {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  border-top: 1px solid rgba(28, 37, 40, 0.08);
  padding-top: 0.75rem;
}

.tour-card-details .tour-detail-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(28, 37, 40, 0.06);
  color: var(--muted);
}

.tour-card-details .tour-detail-item:last-child {
  border-bottom: none;
}

.tour-card-details .tour-detail-item span:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.tour-card-details .tour-detail-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-left: auto;
}

.tour-card-details .tour-detail-inquire {
  margin-left: auto;
  font-size: 0.8rem;
}

.tour-select-trigger-active {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 37, 40, 0.1);
}

.form-inline-link {
  color: var(--primary-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(29, 100, 123, 0.42);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.form-inline-link:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.booking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(41, 150, 182, 0.06);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.reserve-submit {
  width: 100%;
  margin-top: 0.4rem;
  min-height: 3.6rem;
}

.reserve-submit:hover:not(:disabled) {
  /* hereda el estilo de .button:hover */
}

.reserve-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Validación de campos */
.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #c62828;
}

.field-input--error {
  border-color: #f44336 !important;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.15) !important;
}

.booking-success {
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  color: #2e7d32;
  font-size: 0.95rem;
  line-height: 1.5;
}

.booking-success p {
  margin: 0;
}

.admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.admin-head .page-title {
  margin: 0.2rem 0 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.45rem, 1.7vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 24rem;
}

.admin-head .page-copy {
  max-width: 36rem;
  margin: 0;
  font-size: 0.98rem;
}

.admin-head-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.admin-head-actions {
  margin-top: 1rem;
}

.admin-primary-action {
  min-height: 2.9rem;
  padding-inline: 1.2rem;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-summary-card,
.admin-calendar-card,
.admin-form-card {
  border: 1px solid rgba(28, 37, 40, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 16px 42px rgba(17, 24, 28, 0.08);
}

.admin-summary-card {
  padding: 1rem 1.1rem;
}

.admin-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}

.admin-summary-label,
.admin-panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(28, 37, 40, 0.7);
}

.admin-layout {
  display: block;
}

.admin-calendar-card,
.admin-form-card {
  padding: 1.4rem;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 24, 28, 0.3);
  backdrop-filter: blur(4px);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-form-modal {
  width: min(100%, 34rem);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.admin-form-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: 999px;
  background: #fffdf9;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.admin-form-context {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-secondary-action,
.admin-submit-action {
  width: 100%;
}

.button-secondary {
  border: 1px solid rgba(28, 37, 40, 0.12);
  background: rgba(255, 252, 247, 0.98);
  color: var(--text);
}

.admin-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-calendar-head h2,
.admin-day-panel h3 {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 2.1rem;
}

.admin-month-button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: 999px;
  background: #fffdf9;
  cursor: pointer;
}

.admin-weekdays,
.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-weekdays {
  margin-bottom: 0.55rem;
}

.admin-weekdays span {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(28, 37, 40, 0.7);
}

.admin-day-card {
  min-height: 7.3rem;
  padding: 0.7rem;
  border: 1px solid rgba(28, 37, 40, 0.08);
  border-radius: 1rem;
  background: #fffdf9;
  text-align: left;
  cursor: pointer;
}

.admin-day-card.is-outside {
  opacity: 0.45;
}

.admin-day-card.is-selected {
  border-color: rgba(41, 150, 182, 0.45);
  box-shadow: 0 0 0 2px rgba(41, 150, 182, 0.15);
}

.admin-day-card.is-today .admin-day-number {
  color: var(--primary);
}

.admin-day-number {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 800;
}

.admin-day-events {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-day-more,
.admin-status-pill {
  display: inline-block;
  border-radius: 999px;
  min-height: 1.45rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.67rem;
  color: #fffdf9;
}

.admin-day-event-dot,
.admin-booking-tour-dot {
  display: inline-flex;
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 253, 249, 0.95);
}

.admin-booking-topline strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-booking-tour-dot {
  width: 0.82rem;
  height: 0.82rem;
  box-shadow: none;
}

.admin-day-more {
  color: rgba(28, 37, 40, 0.72);
  background: rgba(28, 37, 40, 0.06);
}

.status-new {
  background: #e8994a;
}

.status-pending {
  background: #9072cf;
}

.status-confirmed {
  background: #2d9689;
}

.admin-day-panel {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(28, 37, 40, 0.08);
}

.admin-booking-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-booking-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 37, 40, 0.07);
  border-radius: 1rem;
  background: rgba(28, 37, 40, 0.02);
}

.admin-booking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-booking-item p,
.admin-booking-item small,
.admin-empty-state {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.admin-form-card .reserve-form-head {
  margin-bottom: 1rem;
}

.admin-form-split {
  margin-bottom: 0;
}

.panel,
.contact-card,
.booking-card,
.detail-card {
  padding: 1.6rem;
}

.contact-card h3,
.booking-card h3,
.detail-card h3,
.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.detail-title {
  margin: 1rem 0 0;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
}

.detail-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.detail-list li {
  margin-bottom: 0.7rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

@media (max-width: 980px) {

  .tours-grid,
  .info-grid,
  .related-grid,
  .detail-layout,
  .footer-grid,
  .form-row-split,
  .admin-layout,
  .admin-head {
    grid-template-columns: 1fr;
  }

  .admin-modal {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .admin-form-modal {
    width: 100%;
    max-height: min(90vh, 48rem);
  }

  .admin-form-actions {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:nth-child(3),
  .stat-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .stat-card:nth-child(3) {
    border-left: 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 1.5rem 0;
  }

  .header-inner {
    min-height: 4.2rem;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(41, 150, 182, 0.08);
    border: 1.5px solid rgba(41, 150, 182, 0.20);
    color: var(--primary-deep);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
  }

  .menu-button:hover {
    background: rgba(41, 150, 182, 0.16);
  }

  .header-cta {
    display: none;
  }

  /* Same .nav element becomes a fixed side-panel on mobile */
  .nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 270px;
    max-width: 85vw;
    background: #fff;
    transform: translateX(110%);
    will-change: transform;
    transition: transform 0.3s ease;
    z-index: 51;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(17, 24, 28, 0.16);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  #menuToggle:checked ~ .header-inner .nav {
    transform: translateX(0);
  }

  /* Show mobile-only elements */
  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(28, 37, 40, 0.08);
    flex-shrink: 0;
  }

  .nav-mobile-header a img {
    display: block;
  }

  .nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(41, 150, 182, 0.1);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
  }

  .nav-close-btn:hover {
    background: var(--primary);
    color: #fff;
  }

  /* Nav links: direct <a> children only (excludes links inside .nav-mobile-header and .nav-mobile-cta) */
  .nav > a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    margin: 2px 12px;
    width: calc(100% - 24px);
    background: transparent;
    color: var(--text);
    transition: background 0.14s, color 0.14s;
  }

  .nav > a:hover,
  .nav > a.is-active {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(41, 150, 182, 0.25);
  }

  .nav-mobile-cta {
    display: block;
    padding: 20px 20px;
    border-top: 1px solid rgba(28, 37, 40, 0.08);
    margin-top: auto;
    text-align: center;
  }

  .hero {
    min-height: 40rem;
  }

  .hero-content {
    padding: 5rem 0 13rem;
  }

  .hero-title {
    font-size: clamp(2.85rem, 13vw, 4.2rem);
    line-height: 0.92;
  }

  .hero-title-br {
    display: block;
  }

  .hero-benefits {
    gap: 0.5rem 1rem;
  }

  .hero-benefits span {
    font-size: 0.82rem;
  }

  .footer-grid {
    gap: 1.25rem;
    padding: 3rem 0 2.5rem;
  }

  .footer-title {
    font-size: 2.2rem;
    line-height: 0.95;
  }

  .footer-heading {
    font-size: 1.25rem;
  }

  .footer-copy {
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card+.stat-card,
  .stat-card:nth-child(3),
  .stat-card:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ============================================================
   Phone field with country selector
============================================================ */
.phone-input-container {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  border: 1px solid rgba(28, 37, 40, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 252, 247, 0.98);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.phone-input-container:focus-within,
.phone-input-container.phone-input--open {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(41, 150, 182, 0.15);
}

.phone-input-container.field-input--error {
  border-color: #e05454;
  box-shadow: none;
}

.phone-country-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.7rem 0 0.95rem;
  min-height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 0.8rem 0 0 0.8rem;
  flex-shrink: 0;
  transition: background 0.15s;
}

.phone-country-btn:hover {
  background: rgba(41, 150, 182, 0.06);
}

.phone-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.phone-dial {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.phone-chevron {
  color: var(--muted);
  transition: transform 0.18s;
  flex-shrink: 0;
}

.phone-input--open .phone-chevron {
  transform: rotate(180deg);
}

.phone-sep {
  width: 1px;
  height: 1.5rem;
  background: rgba(28, 37, 40, 0.13);
  flex-shrink: 0;
}

.phone-number-input {
  flex: 1;
  min-height: 3rem;
  padding: 0 0.95rem;
  border: none !important;
  background: transparent !important;
  border-radius: 0 0.8rem 0.8rem 0 !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}

/* Phone dropdown */
.phone-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  max-width: 320px;
  background: #fff;
  border: 1px solid rgba(28, 37, 40, 0.12);
  border-radius: 0.8rem;
  box-shadow: 0 8px 28px rgba(17, 24, 28, 0.13);
  z-index: 310;
  overflow: hidden;
}

.phone-search-wrap {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(28, 37, 40, 0.08);
}

.phone-search-input {
  width: 100%;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(28, 37, 40, 0.14);
  border-radius: 0.5rem;
  background: rgba(249, 247, 243, 0.9);
  font-size: 0.84rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.phone-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(41, 150, 182, 0.12);
}

.phone-country-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.phone-country-list::-webkit-scrollbar {
  width: 4px;
}

.phone-country-list::-webkit-scrollbar-track {
  background: transparent;
}

.phone-country-list::-webkit-scrollbar-thumb {
  background: rgba(41, 150, 182, 0.28);
  border-radius: 2px;
}

.phone-country-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.12s;
}

.phone-country-item:hover {
  background: rgba(41, 150, 182, 0.07);
}

.phone-country-item--active {
  background: rgba(41, 150, 182, 0.1);
  font-weight: 600;
}

.phone-item-flag {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phone-item-name {
  flex: 1;
  color: var(--text);
}

.phone-item-dial {
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 500;
  flex-shrink: 0;
}

.phone-placeholder-text {
  font-size: 0.88rem;
  color: rgba(28, 37, 40, 0.38);
  font-weight: 400;
}

.phone-country-btn--placeholder .phone-chevron {
  color: rgba(28, 37, 40, 0.35);
}

/* ============================================================
   Booking Confirmation View
============================================================ */
.booking-confirmation {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Header */
.confirm-header {
  text-align: center;
  padding: 0.5rem 0 0;
}

.confirm-check {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.confirm-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.confirm-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Confirmation code block */
.confirm-code-block {
  background: linear-gradient(135deg, #eef9fc 0%, #e3f3f8 100%);
  border: 1.5px solid rgba(41, 150, 182, 0.3);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  text-align: center;
}

.confirm-code-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-deep);
  margin: 0 0 0.55rem;
}

.confirm-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--primary-deep);
  margin: 0 0 0.8rem;
  word-break: break-all;
}

.confirm-code-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Summary table */
.confirm-summary {
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.confirm-summary-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(28, 37, 40, 0.5);
  padding: 0.85rem 1.2rem 0.7rem;
  border-bottom: 1px solid rgba(28, 37, 40, 0.08);
  margin: 0;
  background: rgba(249, 247, 243, 0.7);
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(28, 37, 40, 0.06);
  gap: 1rem;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-row-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.confirm-row-value {
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
}

.confirm-row-total {
  background: rgba(41, 150, 182, 0.04);
}

.confirm-total-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
}

/* Actions */
.confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

/* Loading & not-found states */
.confirm-loading,
.confirm-not-found {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.confirm-loading-icon,
.confirm-not-found-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.confirm-not-found h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.confirm-not-found p {
  font-size: 0.92rem;
  margin: 0 0 1.4rem;
}

@media (max-width: 480px) {
  .confirm-code {
    font-size: 1.5rem;
    letter-spacing: 0.07em;
  }

  .confirm-code-block {
    padding: 1.25rem 1rem;
  }

  .confirm-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .confirm-row-value {
    text-align: left;
  }
}

/* ============================================================
   Tour hero-carousel (reemplaza page-hero en páginas de tour)
============================================================ */
.tour-hero-section {
  position: relative;
}

.tour-hero-carousel .carousel {
  aspect-ratio: unset;
  height: clamp(340px, 62vh, 650px);
  max-height: none;
  border-radius: 0;
}

.carousel-slide--placeholder {
  background: linear-gradient(160deg, #2e99b7 0%, #18566e 100%);
}

.carousel-slide--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 60%);
  mix-blend-mode: overlay;
}

.tour-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem 0 2.5rem;
  background: linear-gradient(
    to top,
    rgba(8, 20, 28, 0.80) 0%,
    rgba(8, 20, 28, 0.38) 55%,
    transparent 100%
  );
  color: #fefcf8;
  pointer-events: none;
  z-index: 2;
}

.tour-hero-overlay .container {
  pointer-events: auto;
}

.tour-hero-overlay .tour-badge {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem;
  background: rgba(255, 252, 247, 0.15);
  color: #fefcf8;
  border: 1px solid rgba(255, 252, 247, 0.28);
}

.tour-hero-overlay .detail-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

/* Sticky aside — booking card */
.detail-card--sticky {
  position: sticky;
  /* 4.5rem = header min-height + 1px border; 1.5rem = breathing room */
  top: calc(4.5rem + 1.5rem);
}

.booking-price-block {
  background: rgba(41, 150, 182, 0.07);
  border: 1px solid rgba(41, 150, 182, 0.18);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0.85rem 0 1.1rem;
}

.booking-price-block--inquire {
  text-align: center;
  padding: 1.25rem;
}

.booking-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booking-price-item {
  flex: 1;
}

.booking-price-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.booking-price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.booking-price-currency {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-deep);
  align-self: flex-start;
  margin-top: 0.45rem;
}

.booking-price-number {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.booking-price-per {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.25rem;
  align-self: flex-end;
  padding-bottom: 0.2rem;
}

.booking-price-divider {
  width: 1px;
  height: 2.8rem;
  background: rgba(41, 150, 182, 0.25);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .detail-card--sticky {
    position: static;
  }

  .tour-hero-carousel .carousel {
    height: clamp(240px, 50vw, 380px);
  }
}

/* ============================================================
   Tour detail — image carousel
============================================================ */
.tour-carousel-section {
  padding: 3rem 0 0;
}

.carousel-wrap {
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--line);
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 28, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(17, 24, 28, 0.85);
}

.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Tour detail — YouTube embed */
.tour-video-section {
  padding: 2.5rem 0 0;
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 700px) {
  .carousel {
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }
}