:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F3F6F7;
  --ink: #0B2A3C;
  --muted: #4D6573;
  --line: #D9E2E6;
  --deep: #0B2A3C;
  --deep-ink: #F2F7F8;
  --lagoon: #1FA3A8;
  --lagoon-dark: #0E5B63;
  --sun: #F2A541;
  --sun-ink: #1B1305;
  --coral: #E8604C;
  --terracotta: #B8503E;
  --indigo: #2B3F7A;
  --success: #13795B;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(11, 42, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 42, 60, 0.11);
  box-sizing: border-box;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081B27;
    --surface: #0F2D3F;
    --surface-alt: #13384E;
    --ink: #EAF3F5;
    --muted: #9DB5C0;
    --line: #1D4258;
    --deep: #06141D;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #081B27;
  --surface: #0F2D3F;
  --surface-alt: #13384E;
  --ink: #EAF3F5;
  --muted: #9DB5C0;
  --line: #1D4258;
  --deep: #06141D;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  font-weight: 800;
}

p {
  margin: 0 0 1em;
  max-width: 64ch;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--sun);
  color: var(--sun-ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* =========================================================
   NAVIGATION (MOBILE-FIRST STICKY HEADER)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 42, 60, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: env(safe-area-inset-top, 0px);
  color: #F2F7F8;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  display: inline-block;
}

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

.nav-links a {
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #DCECEF;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.nav-links a.nav-admin {
  border: 1.5px solid rgba(242, 165, 65, 0.7);
  color: var(--sun);
}

.nav-links a.nav-admin:hover,
.nav-links a.nav-admin[aria-current="page"] {
  background: var(--sun);
  color: var(--sun-ink);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  border-radius: 12px;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  gap: 6px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0B2A3C;
    padding: 16px 20px 24px;
    border-bottom: 2px solid var(--sun);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    gap: 8px;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.02rem;
  }
}

/* =========================================================
   BUTTONS & BADGES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.sun {
  background: var(--sun);
  color: var(--sun-ink);
}

.btn.deep {
  background: var(--deep);
  color: #FFFFFF;
}

.btn.lagoon {
  background: var(--lagoon);
  color: #042326;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  background: transparent;
}

.btn.outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn.outline:hover {
  border-color: var(--ink);
}

.btn.danger {
  border-color: rgba(232, 96, 76, 0.45);
  background: rgba(232, 96, 76, 0.1);
  color: var(--coral);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-block;
  border: 1.5px solid var(--sun);
  color: var(--sun);
  border-radius: 999px;
  padding: 5px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-paquete {
  background: #0E5B63;
  color: #FFFFFF;
}

.badge-circuito {
  background: #B8503E;
  color: #FFFFFF;
}

/* =========================================================
   HOME HERO & SECTIONS (FROM página principal.html)
   ========================================================= */
.hero-home {
  background: linear-gradient(180deg, #0B2A3C 0%, #0E4A57 62%, #1FA3A8 100%);
  color: var(--deep-ink);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: calc(92svh - 66px);
  display: flex;
  align-items: center;
}

.hero-home .wrap {
  padding-top: 72px;
  padding-bottom: 84px;
  position: relative;
  z-index: 2;
}

.hero-home h1 {
  font-size: clamp(2.45rem, 7.5vw, 5.6rem);
  font-weight: 800;
  max-width: 14ch;
}

.hero-home .sub,
.hero-catalog .sub {
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  max-width: 46ch;
  color: #CFE6E9;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.route-svg path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 2.5;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
}

.route-svg .draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawRoute 4.5s 0.3s ease-out forwards;
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

.route-svg circle {
  fill: var(--sun);
}

.sun-orb {
  position: absolute;
  right: -6vw;
  bottom: -14vw;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, #F2A541 0, #E8604C 70%, transparent 72%);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.dream-sec {
  text-align: center;
  padding: 96px 0;
}

.dream-sec p {
  margin-inline: auto;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--muted);
}

.dream-sec strong {
  display: block;
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  margin-top: 0.8em;
  font-weight: 700;
}

/* FOLDERS */
.doors-sec h2 {
  text-align: center;
}
.doors-sec .lead {
  text-align: center;
  margin: 0 auto 48px;
  color: var(--muted);
}

.folders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: end;
}

.folder {
  position: relative;
  display: block;
  text-decoration: none;
  color: #FFFFFF;
  padding-top: 32px;
  transition: transform 0.35s;
}

.folder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 46px;
  border-radius: 16px 16px 0 0;
  background: var(--c);
}

.folder .body {
  position: relative;
  min-height: 410px;
  border-radius: 0 22px 22px 22px;
  background: var(--c);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.folder .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.folder .body > *:not(.art) {
  position: relative;
  z-index: 2;
}

.folder .body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.62));
  z-index: 1;
}

.folder h3 {
  font-size: 1.85rem;
  margin-bottom: 0.3em;
}

.folder p {
  font-size: 0.98rem;
  margin-bottom: 0.8em;
  color: #F4F4F4;
}

.folder .peek {
  font-weight: 600;
  font-size: 0.9rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s, opacity 0.35s;
  color: var(--sun);
}

.folder .go {
  display: inline-block;
  font-weight: 700;
  border-bottom: 2px solid var(--sun);
  padding-bottom: 2px;
  align-self: flex-start;
}

.folder:hover,
.folder:focus-visible {
  transform: translateY(-8px) rotate(-0.5deg);
}

.folder:hover .peek,
.folder:focus-visible .peek {
  max-height: 60px;
  opacity: 1;
  margin-bottom: 0.8em;
}

.f1 { --c: #0E5B63; }
.f2 { --c: #B8503E; }
.f3 { --c: #2B3F7A; }

@media (hover: none) {
  .folder .peek {
    max-height: 60px;
    opacity: 1;
    margin-bottom: 0.8em;
  }
}

/* =========================================================
   CATALOG HERO & PRODUCT CARDS (WITH IMAGES!)
   ========================================================= */
.hero-catalog {
  background: linear-gradient(180deg, #3A1A2B 0%, #B8503E 60%, #F2A541 100%);
  color: #F2F7F8;
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}

.hero-catalog .wrap {
  position: relative;
  z-index: 2;
}

.hero-catalog h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.8rem);
  font-weight: 800;
  max-width: 16ch;
}

.hero-catalog .art-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(62vw, 700px);
  z-index: 1;
  opacity: 0.88;
  pointer-events: none;
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1.5px solid var(--line);
  color: var(--muted);
  background: var(--bg);
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.search-box {
  display: flex;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 380px;
}

.search-box input {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
}

/* PLAN PRODUCT GRID */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.plan-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--deep);
}

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

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

.plan-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.duration-pill {
  background: rgba(11, 42, 60, 0.86);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

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

.plan-card-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lagoon);
  margin-bottom: 6px;
}

.plan-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.18;
}

.plan-card h3 a {
  text-decoration: none;
}

.plan-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sun);
}

.plan-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-block small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-block strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
}

/* =========================================================
   SHARED CONTENT BLOCKS (TEAM, MAP, TRUST, ALEJANDRA, STEPS)
   ========================================================= */
.sec-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.sec-deep {
  background: var(--deep);
  color: var(--deep-ink);
}

.sec-deep p {
  color: #B9D3D9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  border-top: 2px solid var(--sun);
  padding-top: 14px;
}

.stat-item b {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
}

.stat-item span {
  color: #B9D3D9;
  font-size: 0.94rem;
}

.global-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}

.map-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.map-box svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-box .land { fill: var(--line); }
.map-box .r { fill: none; stroke: var(--lagoon); stroke-width: 2; stroke-dasharray: 5 7; }
.map-box .pt { fill: var(--coral); }
.map-box .hq { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.map-box text { fill: var(--ink); font-size: 13px; font-family: 'Figtree', sans-serif; }

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--terracotta);
  border-radius: 18px;
  padding: 24px;
}

.info-card.dream-accent {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
}

.info-card.dream-accent p,
.info-card.dream-accent .tag {
  color: #FFFFFF;
}

.info-card .num {
  font: 800 2.3rem/1 'Bricolage Grotesque', sans-serif;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.info-card h3 {
  font-size: 1.3rem;
}

.info-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.seals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 34px;
}

.seals span {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.quotes-grid blockquote {
  margin: 0;
  padding: 22px;
  border-left: 4px solid var(--sun);
  background: var(--bg);
  border-radius: 0 14px 14px 0;
}

.quotes-grid cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.ale-sec {
  background: linear-gradient(135deg, #0E4A57, #2B3F7A);
  color: #FFFFFF;
}

.ale-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.ale-sec blockquote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.8em;
}

.ale-sec small {
  color: #CFE6E9;
  display: block;
}

.video-placeholder {
  aspect-ratio: 9 / 16;
  max-height: 440px;
  margin: 0 auto;
  width: min(100%, 260px);
  border-radius: 26px;
  background: #06141D;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #CFE6E9;
  font-size: 0.95rem;
}

.note-callout {
  border-left: 4px solid var(--sun);
  padding: 12px 18px;
  background: var(--surface-alt);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 24px;
}

/* =========================================================
   DETAIL PAGE (/planes/:slug)
   ========================================================= */
.breadcrumb {
  padding: 18px 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.detail-header {
  padding: 16px 0 28px;
}

.detail-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-header h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 12px;
}

.detail-lead {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 72px;
}

/* GALLERY */
.gallery-card {
  margin-bottom: 32px;
}

.gallery-main {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--deep);
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--sun);
  opacity: 1;
}

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

/* DETAIL BLOCKS */
.detail-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-box h2 {
  font-size: 1.55rem;
  margin-bottom: 16px;
}

.hotel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hotel-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 165, 65, 0.18);
  color: var(--ink);
  border: 1px solid var(--sun);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}

.inc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}

.check-yes {
  background: rgba(31, 163, 168, 0.18);
  color: var(--lagoon);
}

.check-no {
  background: rgba(232, 96, 76, 0.16);
  color: var(--coral);
}

/* ITINERARY TIMELINE */
.timeline {
  position: relative;
  padding-left: 26px;
  display: grid;
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--sun);
}

.timeline-item {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--surface);
}

.timeline-item strong {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.08rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* STICKY BOOKING ASIDE */
.booking-card {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-top: 6px solid var(--sun);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.booking-price-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.booking-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0 6px;
}

.booking-per {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.booking-highlights {
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.93rem;
}

/* MOBILE STICKY CTA BAR ON DETAIL PAGE */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 920px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .booking-card {
    position: static;
  }
  .inc-grid {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
  }
  body.has-sticky-cta {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body.has-sticky-cta .wa-float {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================================================
   FORMS (LEAD FORMS & ADMIN MODULE)
   ========================================================= */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  max-width: 760px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.93rem;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Previene zoom automático en iOS */
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--lagoon);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 163, 168, 0.22);
}

textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.full {
  grid-column: 1 / -1;
}

.field-hint {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

/* =========================================================
   ADMIN MODULE (/admin)
   ========================================================= */
.admin-hero {
  background: var(--deep);
  color: var(--deep-ink);
  padding: 40px 0;
  border-bottom: 4px solid var(--sun);
}

.admin-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 6px;
}

.admin-hero p {
  color: #B9D3D9;
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0 80px;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.type-option {
  position: relative;
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
}

.type-tile strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
}

.type-tile span {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--muted);
}

.type-option input:checked + .type-tile {
  border-color: var(--lagoon);
  background: rgba(31, 163, 168, 0.1);
}

.type-option input:focus-visible + .type-tile {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.conditional-fieldset {
  grid-column: 1 / -1;
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 20px;
  margin: 4px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.conditional-fieldset legend {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 10px;
  color: var(--ink);
}

.is-hidden {
  display: none !important;
}

.slug-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--lagoon);
  font-weight: 600;
  word-break: break-all;
}

.upload-dropzone {
  border: 2px dashed var(--lagoon);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  background: rgba(31, 163, 168, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.upload-dropzone:hover {
  background: rgba(31, 163, 168, 0.11);
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--deep);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 42, 60, 0.85);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-plan-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  align-items: center;
}

.admin-plan-thumb {
  width: 76px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--deep);
}

.admin-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.toast {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 90;
  background: var(--deep);
  color: #FFFFFF;
  border-left: 5px solid var(--sun);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  max-width: 380px;
  font-weight: 600;
}

/* =========================================================
   FOOTER & FLOATING WHATSAPP
   ========================================================= */
.site-footer {
  background: var(--deep);
  color: #B9D3D9;
  padding: 48px 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  color: #DCECEF;
}

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

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  background: #25D366;
  color: #06301A;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 960px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  section {
    padding: 60px 0;
  }
  .folders {
    grid-template-columns: 1fr;
  }
  .folder .body {
    min-height: 320px;
  }
  .global-grid,
  .ale-grid,
  .lead-form,
  .admin-form-grid,
  .conditional-fieldset {
    grid-template-columns: 1fr;
  }
  .type-selector {
    grid-template-columns: 1fr;
  }
  .hero-catalog .art-bg {
    width: 92vw;
    opacity: 0.45;
  }
  .search-box {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-svg .draw {
    animation: none;
    stroke-dashoffset: 0;
  }
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   AUTH / LOGIN + 2FA
   ========================================================= */
.auth-body {
  min-height: 100svh;
  background: linear-gradient(180deg, #0B2A3C 0%, #0E4A57 55%, var(--bg) 55%);
}

.auth-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.auth-brand {
  display: inline-flex;
  margin-bottom: 28px;
  color: #fff;
  text-decoration: none;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 32px;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.auth-lead {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.96rem;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-alert {
  background: rgba(232, 96, 76, 0.12);
  border-left: 4px solid var(--coral);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-qr {
  display: block;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}

.auth-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 0.9rem;
}

.auth-foot a {
  color: #dcecef;
}

/* =========================================================
   FOLDER PREVIEW (admin categorías)
   ========================================================= */
.folder-art-img {
  object-fit: cover;
}

.folder-preview-wrap {
  max-width: 300px;
  margin: 0 auto;
}

.folder-preview {
  transform: none !important;
  pointer-events: none;
}

.folder-preview .body {
  min-height: 360px;
}

.folder-preview .peek {
  max-height: 60px;
  opacity: 1;
  margin-bottom: 0.8em;
}

/* =========================================================
   PANEL ADMIN — layout con barra lateral
   ========================================================= */
body.is-admin {
  background: #eef2ee;
}

body.is-admin main.admin-main-root {
  padding: 0;
  max-width: none;
  width: 100%;
}

.admin-shell {
  position: relative;
  min-height: 100vh;
  background: #eef2ee;
}

.admin-sidebar {
  background: #0b2a3c;
  color: #e8f3f1;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  width: 268px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(11, 42, 60, 0.15);
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-workspace {
  margin-left: 268px;
  min-height: 100vh;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-toggle {
  display: none;
  flex-shrink: 0;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-brand strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  color: #fff;
}

.admin-sidebar-brand small {
  display: block;
  color: #9eb5b2;
  font-size: 0.82rem;
  margin-top: 2px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #c8dbd8;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  position: relative;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.admin-nav-icon {
  font-size: 1.2rem;
  width: 1.6rem;
  text-align: center;
}

.admin-nav-text strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-nav-text small {
  display: block;
  font-size: 0.78rem;
  color: #9eb5b2;
  margin-top: 2px;
}

.admin-nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sun);
  color: #1b1305;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-sidebar-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-footer .admin-logout-btn {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 12px;
  background: #f4f6f2;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-page-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin: 0;
  color: var(--ink);
}

.admin-page-sub {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.admin-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-workspace-body {
  padding: 8px 24px 48px;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.admin-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.65rem;
  line-height: 1.1;
  margin-top: 4px;
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-chip.is-active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.admin-panel--flush {
  padding: 0;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  background: #eef1ea;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.sol-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.sol-viaje {
  font-weight: 600;
}

.sol-estado-select,
.sol-notas {
  width: 100%;
  max-width: 180px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.sol-notas {
  max-width: 220px;
  min-height: 60px;
  resize: vertical;
}

.sol-actions {
  white-space: nowrap;
}

.sol-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px !important;
}

.sol-row--nuevo td:first-child strong {
  color: var(--lagoon);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 26, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.is-hidden {
  display: none;
}

.admin-modal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

@media (max-width: 960px) {
  .admin-sidebar-toggle {
    display: inline-flex;
  }

  .admin-workspace {
    margin-left: 0;
  }

  .admin-sidebar {
    transform: translateX(-102%);
    transition: transform 0.25s ease;
  }

  .admin-shell.is-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(6, 20, 29, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .admin-shell.is-sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-nav-text small {
    display: none;
  }

  .admin-workspace-body {
    padding-inline: 16px;
  }
}
