:root {
  --yellow: #F7B500;
  --green: #10231D;
  --teal: #0B6E6E;
  --teal-dark: #084F4F;
  --sand: #FAF6EC;
  --white: #FFFFFF;
  --line: #E8E1CF;
  --muted: #3B4B45;
  --on-dark: #D5DDD9;
  --amber: #946000;
  --whatsapp: #177A41;
  --font-title: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --section-y: clamp(48px, 6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Sin el rectángulo azul que Android pone al tocar; cada botón ya tiene su propia respuesta al toque. */
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--green); background: var(--sand); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
source { display: none; } /* con display: contents, ocuparía una celda de grid o flex */
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--teal); transition: filter .15s ease, box-shadow .2s ease, color .15s ease; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, .steps__number { font-family: var(--font-title); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }

.on-dark a { color: var(--white); }
.on-dark a:hover { color: var(--yellow); }
.on-dark a:focus-visible { outline-color: var(--yellow); }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 820px; }
.only-sm { display: none; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; padding: 12px 16px; border-radius: 8px; background: var(--green); color: var(--white); }
.skip:focus { left: 16px; color: var(--white); }

/* Botones */
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-align: center; text-decoration: none; white-space: nowrap; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease; }
.btn--large { padding: 16px 28px; font-size: 18px; }
.btn--primary, .btn--primary:hover { background: var(--yellow); color: var(--green); }
.btn--outline, .btn--outline:hover { padding: 14px 26px; border: 2px solid var(--green); color: var(--green); }
.btn--dark, .btn--dark:hover { background: var(--green); color: var(--white); }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.brand { display: block; flex-shrink: 0; }
.brand__full { width: auto; height: 68px; }
.brand__compact { display: none; width: auto; height: 42px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 500; }
.main-nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: none; }
.main-nav__link:hover { color: var(--teal); }
.main-nav__link.only-sm { display: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--green); cursor: pointer; }

/* Encabezado del Home: transparente sobre el hero; se vuelve blanco al bajar o al abrir el menú */
.site-header--over { position: fixed; right: 0; left: 0; transition: background-color .3s ease, border-color .3s ease; }
.js .site-header--over:not(.is-solid):not(.is-menu-open) { background: transparent; border-bottom-color: transparent; }
.brand__light { display: none; width: auto; height: 56px; }
.js .site-header--over:not(.is-solid):not(.is-menu-open) .brand__full,
.js .site-header--over:not(.is-solid):not(.is-menu-open) .brand__compact { display: none; }
.js .site-header--over:not(.is-solid):not(.is-menu-open) .brand__light { display: block; }
.js .site-header--over:not(.is-solid):not(.is-menu-open) .main-nav__link { color: var(--white); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.js .site-header--over:not(.is-solid):not(.is-menu-open) .main-nav__link:hover { color: var(--yellow); }
.js .site-header--over:not(.is-solid):not(.is-menu-open) .menu-toggle { border-color: rgba(255, 255, 255, .5); background: rgba(16, 35, 29, .35); color: var(--white); }

/* Hero a pantalla completa */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--green); color: var(--white); }
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: block; position: absolute; inset: 0; }
.hero__image, .hero__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(16, 35, 29, .88) 0%, rgba(16, 35, 29, .66) 34%, rgba(16, 35, 29, .12) 66%, rgba(16, 35, 29, 0) 100%),
  linear-gradient(0deg, rgba(16, 35, 29, .55) 0%, rgba(16, 35, 29, 0) 32%),
  linear-gradient(180deg, rgba(16, 35, 29, .45) 0%, rgba(16, 35, 29, 0) 22%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 110px; padding-bottom: 96px; }
.hero__copy { max-width: 620px; }
.eyebrow { margin-bottom: 16px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.hero h1 { margin-bottom: 20px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__lead { max-width: 560px; margin-bottom: 28px; font-size: 19px; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Sin backdrop-filter: Chrome lo apaga mientras el texto del hero cambia de opacidad y el botón "salta". */
.btn--light, .btn--light:hover { padding: 14px 26px; border: 2px solid var(--white); background: rgba(16, 35, 29, .35); color: var(--white); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; margin-top: 28px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { flex-shrink: 0; color: var(--yellow); }
.trust a { font-weight: 700; color: var(--white); }
.trust a:hover { color: var(--yellow); }
.trust-line { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .88); text-align: center; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 1; transform: translateX(-50%); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); text-decoration: none; }
.hero__scroll:hover { color: var(--yellow); }
.hero__scroll span { font-size: 20px; animation: bounce 1.8s ease-in-out infinite; }

/* Secciones */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--dark { background: var(--green); color: var(--white); }
.section__title { margin-bottom: 36px; }
.section__lead { margin: 8px 0 36px; color: var(--muted); }

/* Tarjetas de tour */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.tour-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--sand); transition: transform .25s ease, box-shadow .25s ease; }
.tour-card__badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--yellow); font-size: 14px; font-weight: 700; }
.tour-card__image { width: 100%; height: 200px; object-fit: cover; }
.tour-card__body { display: flex; flex-grow: 1; flex-direction: column; gap: 10px; padding: 24px; }
.tour-card__meta { font-size: 14px; font-weight: 700; color: var(--teal); }
.tour-card h3 { font-family: var(--font-title); font-size: 24px; font-weight: 800; line-height: 1.2; }
.tour-card__text { color: var(--muted); }
.tour-card__prices { display: flex; flex-direction: column; margin-top: auto; padding-top: 8px; }
.tour-card__prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.tour-card__prices dt { font-weight: 700; }
.tour-card__prices dd { margin: 0; color: var(--muted); }
.tour-card__prices strong { font-size: 20px; color: var(--green); }
.tour-card__from { display: none; font-size: 15px; color: var(--muted); }
.tour-card__link { align-self: flex-start; padding-top: 10px; font-weight: 700; }
.tour-card__link::after { content: ""; position: absolute; inset: 0; }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.benefit { display: flex; flex-direction: column; gap: 8px; }
.benefit svg { color: var(--teal); }
.benefit h3 { font-size: 20px; }
.benefit p { color: var(--muted); }
.photo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.photo-pair img { width: 100%; height: 320px; border-radius: 20px; object-fit: cover; transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.steps__number { display: block; margin-bottom: 8px; font-size: 48px; line-height: 1.1; color: var(--yellow); }
.steps h3 { margin-bottom: 6px; font-size: 21px; }
.steps p { color: var(--on-dark); }

/* Reseñas */
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.reviews__head p { font-size: 20px; font-weight: 700; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.review { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.review__stars { margin-bottom: 8px; color: var(--amber); }
.review blockquote { margin-bottom: 16px; font-size: 18px; }
.review figcaption { font-size: 15px; color: var(--muted); }
.reviews__more { margin-top: 24px; }
.reviews__more a, .text-link { font-weight: 700; }

/* Punto de encuentro */
.meet { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.meet__copy { flex: 1 1 380px; min-width: 0; }
.meet__copy h2 { margin-bottom: 16px; }
.meet__copy p { margin-bottom: 12px; color: var(--muted); }
.meet__copy p:last-of-type { margin-bottom: 24px; }
.meet__map { flex: 1 1 480px; min-width: 0; height: 360px; overflow: hidden; border-radius: 20px; background: var(--line); }
.meet__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Preguntas */
.faq__title { margin-bottom: 28px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 19px; font-weight: 700; list-style: none; cursor: pointer; transition: color .2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-2px) rotate(45deg); transition: transform .3s ease; }
.faq[open]:not(.is-closing) summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--teal); }
.faq.is-animating { overflow: hidden; }
.faq p { margin-bottom: 18px; color: var(--muted); }

/* Llamado final */
.cta-band { padding: 64px 24px; background: var(--yellow); text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin-bottom: 28px; font-size: 19px; }

/* Pie */
.site-footer { padding: 56px 0 28px; background: var(--green); color: var(--on-dark); font-size: 15px; }
/* Book: la foto de fondo se oscurece poco a poco hasta el color del pie, sin corte. */
.site-footer--over-photo { position: relative; }
.site-footer--over-photo::before { content: ''; position: absolute; right: 0; bottom: 100%; left: 0; height: 160px; background: linear-gradient(180deg, rgba(16, 35, 29, 0) 0%, rgba(16, 35, 29, .55) 55%, var(--green) 100%); pointer-events: none; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.3fr; gap: 32px 40px; }
.site-footer p { margin-bottom: 6px; }
.site-footer__logo { width: 220px; height: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 280px; }
.site-footer__title { margin-bottom: 14px; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.site-footer__social a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--green); }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
@media (max-width: 960px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
.site-footer__credits { margin-top: 10px; font-size: 13px; }

/* WhatsApp */
.whatsapp-fab, .whatsapp-fab:hover { transition: transform .22s ease, box-shadow .22s ease; position: fixed; right: 24px; bottom: 24px; z-index: 15; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 999px; background: var(--whatsapp); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.book-bar { display: none; }

.not-found { padding-block: 96px; text-align: center; }
.not-found h1 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 48px); }
.not-found p { margin-bottom: 28px; color: var(--muted); }

/* Páginas de tour */
.tour-top { padding-top: 32px; }
.breadcrumb { margin-bottom: 12px; font-size: 15px; color: var(--muted); }
.tour-top h1 { margin-bottom: 12px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.tour-summary { margin-bottom: 24px; font-weight: 500; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; animation: fade-up .8s cubic-bezier(.22, .61, .36, 1) .1s both; }
.gallery__item { display: block; height: 204px; overflow: hidden; border-radius: 20px; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; height: 420px; }
.gallery__image { width: 100%; height: 100%; object-fit: cover; }
.tour-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-block: 48px 72px; }
.tour-main { flex: 999 1 560px; min-width: 0; }
.tour-main h2 { font-size: 30px; }
.tour-intro { margin-bottom: 32px; font-size: 19px; }
.itinerary { margin: 20px 0 40px; }
.itinerary li { display: flex; gap: 20px; padding: 14px 0 14px 20px; border-left: 3px solid var(--teal); }
.itinerary__time { flex-shrink: 0; min-width: 90px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.includes__box { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.includes__box h3 { margin-bottom: 12px; font-size: 20px; }
.includes__list { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; }
.includes__list--yes { list-style: "✓  "; }
.includes__list--no { list-style: "–  "; }
.includes__list--yes li::marker { color: var(--teal); font-weight: 700; }
.good-to-know { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 32px; padding-left: 20px; list-style: disc; color: var(--muted); }
.cross-sell a { font-weight: 700; }
.price-box { flex: 1 1 340px; min-width: 0; padding: 28px; border: 2px solid var(--green); border-radius: 24px; background: var(--white); animation: fade-up .8s cubic-bezier(.22, .61, .36, 1) .2s both; }
.price-box__label { margin-bottom: 4px; font-size: 15px; color: var(--muted); }
.price-box [hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tour-type { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; padding: 4px; border: 0; border-radius: 999px; background: var(--sand); }
.tour-type label { position: relative; cursor: pointer; }
.tour-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tour-type span { display: block; padding: 10px 8px; border-radius: 999px; font-weight: 700; text-align: center; color: var(--muted); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.tour-type input:checked + span { background: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(16, 35, 29, .18); }
.tour-type input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.tour-type label:hover input:not(:checked) + span { color: var(--green); }
/* Píldora que se desliza entre Shared y Private. Sin :has(), queda el fondo fijo de arriba. */
@supports selector(:has(*)) {
  .tour-type { position: relative; }
  .tour-type::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--green); box-shadow: 0 2px 8px rgba(16, 35, 29, .18); transition: transform .4s cubic-bezier(.65, 0, .35, 1); }
  .tour-type:has(label:last-child input:checked)::before { transform: translateX(100%); }
  .tour-type input:checked + span { background: transparent; box-shadow: none; }
  .tour-type span { position: relative; transition: color .3s ease .05s; }
}
.price-box__groups { display: flex; flex-direction: column; gap: 4px; margin: -8px 0 20px; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 15px; }
.price-box__groups li { display: flex; justify-content: space-between; gap: 12px; }
.price-box__type { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.price-box__rows { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 20px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-row__info { display: flex; flex-direction: column; min-width: 0; }
.price-row__info strong { font-size: 22px; line-height: 1.25; }
.stepper { display: flex; flex-shrink: 0; align-items: center; overflow: hidden; border: 1px solid #7A715C; border-radius: 999px; }
.stepper button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--green); font: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.stepper button:hover:not(:disabled) { background: var(--sand); }
.stepper button:disabled { color: #A9B2AE; cursor: default; }
.stepper button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.stepper input { width: 36px; padding: 0; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.price-box__group { margin-bottom: 16px; padding: 10px 12px; border-radius: 12px; background: var(--sand); font-size: 14px; }
.price-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.price-total strong { display: inline-block; font-family: var(--font-title); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; transform-origin: right center; }
html:not(.js) .stepper, html:not(.js) .price-total { display: none; }
.price-box__note { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.price-box__perks { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; padding-left: 20px; list-style: disc; font-size: 15px; color: var(--muted); }
.btn--block { display: block; width: 100%; }
.photo-credits { padding-bottom: 40px; font-size: 13px; color: #4A5A54; }
.confirm { padding: 0 4px; border-radius: 4px; background: #FFE8A3; color: var(--green); }
@media (min-width: 1000px) {
  .price-box { position: sticky; top: 104px; }
}

/* Visor de fotos */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade-in .25s ease both; }
.lightbox::backdrop { background: rgba(16, 35, 29, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fade-in .25s ease both; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(88vw, 1500px); margin: 0; }
.lightbox__image { width: auto; max-width: 100%; height: auto; max-height: 82vh; max-height: 82dvh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.lightbox figcaption { font-size: 15px; text-align: center; }
.lightbox__count { margin-left: 8px; font-weight: 700; white-space: nowrap; }
.lightbox__button { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--green); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.lightbox__button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { top: 50%; left: 20px; margin-top: -26px; }
.lightbox__next { top: 50%; right: 20px; margin-top: -26px; }
@media (max-width: 999px) {
  .price-box { order: -1; }
}

/* Página de reserva */
/* Book: de fondo, la foto del tour elegido, oscurecida (cambia con un desvanecido) */
.book-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--green); }
/* La foto nueva entra encima de la anterior, que se queda completa debajo hasta que termina
   el fundido; después se apaga del todo. Así nunca se ve el fondo oscuro, y solo hay dos fotos
   grandes en pantalla a la vez (con más, algunos equipos soltaban capas y parpadeaban en negro). */
.book-bg__item { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity 0s linear 1.2s, visibility 0s linear 1.2s; }
.book-bg__item.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.2s ease; will-change: opacity; }
.book-bg__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 0s linear 1.2s; }
/* Acercamiento ligero (3 %) solo en la foto que entra; la que sale no se mueve hasta que ya no se ve. */
.book-bg__item.is-active img { transform: none; transition: transform 1.2s cubic-bezier(.22, .61, .36, 1); }
.book-layout { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-block: clamp(32px, 5vw, 56px) 72px; }
.book-main { flex: 999 1 560px; min-width: 0; }
.book-intro { margin-bottom: 24px; padding: 28px 32px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 24px; background: rgba(255, 255, 255, .4); box-shadow: 0 8px 32px rgba(16, 35, 29, .12); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); animation: fade-up .7s cubic-bezier(.22, .61, .36, 1) both; }
.book-main h1 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.book-lead { font-size: 19px; font-weight: 500; color: var(--green); }
/* Tarjetas de Book: leve transparencia con difuminado sobre la foto del fondo */
.book-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 20px; padding: 32px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 24px; background: rgba(255, 255, 255, .4); box-shadow: 0 8px 32px rgba(16, 35, 29, .12); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); animation: fade-up .7s cubic-bezier(.22, .61, .36, 1) both; }
.field--wide { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; }
.book-type { margin: 0; padding: 0; border: 0; }
.book-type legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.book-type .tour-type { max-width: 360px; margin: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid #7A715C; border-radius: 12px; background: var(--white); color: var(--green); font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.field.is-invalid input { border-color: #B3261E; }
.field__help, .book-form__hint, .book-form__foot { font-size: 15px; color: var(--muted); }
.field__error, .book-form__missing { font-size: 15px; font-weight: 500; color: #B3261E; }
/* Book: misma calculadora que la caja de cada tour, al ancho del formulario */
.book-calc { min-width: 0; margin: 0; padding: 0; border: 0; }
.book-calc legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.book-calc [hidden] { display: none; }
.book-calc .price-total { margin-bottom: 8px; }
.book-form__notice { padding: 12px 16px; border-radius: 12px; background: var(--sand); font-size: 15px; }
.book-form__foot { text-align: center; }
.btn--whatsapp, .btn--whatsapp:hover { background: var(--whatsapp); color: var(--white); }
#send { display: block; }
.book-side { display: flex; flex: 1 1 340px; flex-direction: column; gap: 24px; min-width: 0; }
.book-preview { padding: 28px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 24px; background: rgba(255, 255, 255, .4); box-shadow: 0 8px 32px rgba(16, 35, 29, .12); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.book-preview h2 { margin-bottom: 16px; font-size: 24px; }
.book-preview__bubble { padding: 16px; border-radius: 16px; background: #DCF8C6; color: var(--green); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.book-contact { padding: 28px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 24px; background: rgba(255, 255, 255, .4); box-shadow: 0 8px 32px rgba(16, 35, 29, .12); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.book-contact h2 { margin-bottom: 12px; font-family: var(--font-body); font-size: 20px; font-weight: 700; }
.book-contact p { margin-bottom: 6px; }
/* Book: campos, selector, desglose y avisos en blanco translúcido, como parte de la tarjeta. */
/* Textos secundarios en verde oscuro y un poco más gruesos, para que no se pierdan sobre la foto. */
.book-form .field__help, .book-form__hint, .book-form__foot, .book-form .price-box__label, .book-form .price-box__type { color: var(--green); font-weight: 500; }
/* Vidrio de los controles: blanco al 35 %, borde blanco y un brillo fino arriba. No llevan su
   propio backdrop-filter: la tarjeta ya difumina la foto y el navegador no difumina dos veces. */
.book-form .field input, .book-form .field select, .book-form .field textarea, .book-form .tour-type, .book-form .stepper, .book-form .price-box__group, .book-form .price-box__groups {
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 3px rgba(16, 35, 29, .06);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.book-form .field input:focus, .book-form .field select:focus, .book-form .field textarea:focus { border-color: rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .7); }
.book-form .field input::placeholder, .book-form .field textarea::placeholder { color: rgba(16, 35, 29, .55); }
.book-form .field select option { background: var(--white); }
.book-form .stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .55); }
.book-form .stepper button:disabled { color: rgba(16, 35, 29, .3); }
.book-form__notice { background: rgba(255, 255, 255, .75); }
.book-form .btn--whatsapp { border: 1px solid rgba(255, 255, 255, .35); background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%), rgba(23, 122, 65, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px rgba(23, 122, 65, .25); }
.book-form .btn--whatsapp:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 55%), rgba(23, 122, 65, .95); }
.book-preview__bubble { background: rgba(220, 248, 198, .65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.book-preview .btn--ghost { background: rgba(255, 255, 255, .3); }
.book-form .price-total { border-top-color: rgba(16, 35, 29, .2); }
.book-preview .btn--ghost { border-color: var(--green); color: var(--green); }
.book-preview .btn--ghost:hover { border-color: var(--green); background: rgba(255, 255, 255, .55); }
@media (max-width: 620px) {
  .book-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .book-intro { padding: 20px; }
  .field--wide { grid-column: auto; }
}

/* Celular */
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item { height: 150px; }
  .lightbox__figure { max-width: 100vw; padding-inline: 12px; }
  .lightbox__image { max-height: 70vh; max-height: 70dvh; }
  .lightbox__button { width: 46px; height: 46px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__prev { top: auto; bottom: 16px; left: calc(50% - 56px); margin: 0; }
  .lightbox__next { top: auto; right: calc(50% - 56px); bottom: 16px; margin: 0; }
  .gallery__item:first-child { grid-row: auto; height: 240px; }
  .tour-top { padding-top: 20px; }
  .tour-layout { gap: 32px; padding-block: 32px 48px; }
  .tour-intro { font-size: 17px; }
  .tour-main h2 { font-size: 26px; }
  .itinerary li { gap: 14px; }
  .itinerary__time { min-width: 82px; }

  html { scroll-padding-top: 76px; }
  body { font-size: 16px; line-height: 1.5; }
  .hide-sm { display: none !important; }
  .only-sm { display: revert; }
  p.only-sm { display: block; }

  .brand__full { display: none; }
  .brand__compact { display: block; }
  .site-header__inner { position: relative; padding-inline: 20px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 12px; border-bottom: 1px solid var(--line); background: var(--white); }
  .main-nav.is-open { display: flex; }
  .main-nav__link.only-sm { display: inline-flex; }
  .main-nav__cta { display: none; }

  .brand__light { height: 40px; }
  /* Con el menú abierto, los enlaces van sobre fondo blanco */
  .js .site-header--over:not(.is-solid):not(.is-menu-open) .main-nav__link { color: var(--green); text-shadow: none; }

  .hero { align-items: flex-end; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); }
  .hero__image, .hero__layer { object-position: 52% 60%; }
  .hero__shade { background:
    linear-gradient(0deg, rgba(16, 35, 29, .95) 0%, rgba(16, 35, 29, .75) 38%, rgba(16, 35, 29, .1) 66%, rgba(16, 35, 29, 0) 80%),
    linear-gradient(180deg, rgba(16, 35, 29, .5) 0%, rgba(16, 35, 29, 0) 18%); }
  .hero__inner { padding: 0 20px 28px; }
  .eyebrow { margin-bottom: 10px; font-size: 13px; }
  .hero h1 { margin-bottom: 12px; font-size: 34px; line-height: 1.08; }
  .hero__lead { margin-bottom: 20px; font-size: 16px; }
  .hero__actions .btn { width: 100%; padding: 13px; font-size: 17px; }

  .wrap { padding-inline: 20px; }
  .section { padding-block: 32px; }
  #tours { padding-top: 8px; background: transparent; }
  #tours h2 { margin-bottom: 16px; }
  h2 { font-size: 28px; }
  .section__title { margin-bottom: 20px; }

  .tour-grid { gap: 16px; }
  .tour-card { flex-direction: row; gap: 14px; padding: 12px; border-radius: 18px; background: var(--white); }
  .tour-card__badge, .tour-card__text, .tour-card__prices { display: none; }
  .tour-card__image { flex-shrink: 0; width: 96px; height: 96px; border-radius: 12px; }
  .tour-card__body { gap: 2px; padding: 0; }
  .tour-card__meta { font-size: 13px; }
  .tour-card__meta .only-sm { display: inline; }
  .tour-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.3; }
  .tour-card__from { display: block; }
  /* El texto "View tour" no se ve en celular, pero el enlace no se recorta: su ::after
     cubre toda la tarjeta para que se pueda tocar. El nombre accesible sale del aria-label. */
  .tour-card__link { padding: 0; font-size: 0; line-height: 0; }

  .benefits { gap: 24px; }
  .photo-pair { margin-top: 32px; gap: 16px; }
  .photo-pair img { height: 220px; border-radius: 18px; }

  .steps { gap: 20px; }
  .steps li { display: flex; gap: 14px; }
  .steps__number { margin: 0; font-size: 32px; line-height: 1; }
  .steps h3 { font-size: 18px; }

  .review { padding: 20px; border-radius: 18px; }
  .reviews { gap: 14px; }
  .review blockquote { margin-bottom: 10px; font-size: 16px; }
  .reviews__head { margin-bottom: 20px; }

  .meet { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .meet__copy, .meet__map { flex: none; }
  .meet__map { order: 1; height: 260px; border-radius: 18px; }

  .cta-band { padding: 40px 20px; }
  .site-footer { padding: 40px 0 104px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }

  .whatsapp-fab { display: none; }
  .book-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--white); }
  .book-bar p { font-size: 14px; line-height: 1.25; color: var(--muted); white-space: nowrap; }
  .book-bar strong { font-size: 20px; color: var(--green); }
  .book-bar .btn { flex-grow: 1; padding: 14px 16px; font-size: 17px; }
  /* Home: la barra va bajo el hero y se va con el scroll */
  .book-bar--inline { position: static; z-index: auto; border-bottom: 1px solid var(--line); }
  .site-footer--no-bar { padding-bottom: 32px; }
}

/* Efectos al pasar el mouse (solo en dispositivos con mouse) */
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16, 35, 29, .22); }
  .btn--outline:hover { background: var(--green); color: var(--white); }
  .btn--light:hover { background: var(--white); color: var(--green); }
  .tour-card:hover { z-index: 2; transform: scale(1.03); box-shadow: 0 16px 36px rgba(16, 35, 29, .18); }
  /* Why us: las fotos crecen un poco y "flotan" */
  .photo-pair img:hover { position: relative; z-index: 2; transform: translateY(-8px) scale(1.03); box-shadow: 0 22px 44px rgba(16, 35, 29, .24); }
  .whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
  .gallery__item:hover { position: relative; z-index: 2; transform: scale(1.03); box-shadow: 0 14px 32px rgba(16, 35, 29, .24); }
  .lightbox__button:hover { background: var(--white); transform: scale(1.08); }
}
.btn:active { transform: scale(.98); }
.whatsapp-fab:active, .menu-toggle:active, .site-footer__social a:active { transform: scale(.92); }

/* Animación al abrir la página */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zoom-out { from { transform: scale(1.1); } to { transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.site-header { animation: fade-in .6s ease both; }
.hero__media { animation: zoom-out 2.4s cubic-bezier(.22, .61, .36, 1) both; }
.hero__copy > * { animation: fade-up .8s cubic-bezier(.22, .61, .36, 1) .3s both; }
.hero__copy > :nth-child(2) { animation-delay: .4s; }
.hero__copy > :nth-child(3), .hero__copy > :nth-child(4) { animation-delay: .5s; }
.hero__copy > :nth-child(5) { animation-delay: .6s; }
.hero__copy > :nth-child(6), .hero__copy > :nth-child(7) { animation-delay: .7s; }

/* Parallax por capas (fondo y primer plano), con el mouse y con el scroll.
   Las capas son más grandes que el hero para moverse sin dejar huecos. */
.hero__layer { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__image, .hero__layer { transform: scale(1.1); will-change: transform; }
  .hero__layer { display: block; }
  .hero__media.has-layers .hero__image { opacity: 0; }
}

/* Aparición al hacer scroll. La clase .js evita ocultar contenido si no hay JavaScript. */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); transition-delay: var(--reveal-delay, 0ms); }

@media print {
  .js .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .tour-card, .btn, .whatsapp-fab { transition: none; }
  .site-header, .hero__copy > *, .hero__media, .hero__scroll span, .gallery, .book-intro, .book-form, .price-box, .lightbox[open], .lightbox::backdrop { animation: none; }
  .gallery__item, .lightbox__button, .stepper button, .tour-type::before { transition: none; }
  .gallery__item:hover, .lightbox__button:hover { transform: none; }
  .faq summary::after { transition: none; }
  .book-bg__item, .book-bg__item img { transition: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .tour-card:hover, .whatsapp-fab:hover, .photo-pair img:hover, .whatsapp-fab:active, .menu-toggle:active, .site-footer__social a:active { transform: none; }
}

/* Book: botón secundario para copiar el mensaje */
.btn--ghost { padding: 10px 18px; border: 2px solid var(--on-dark); background: transparent; color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn--ghost:hover { border-color: var(--white); }
.book-preview__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.book-preview__copy [role=status] { font-size: 14px; font-weight: 500; color: var(--green); }
.book-preview__help { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--green); }

/* Tours: "Where we meet" con el camino a pie */
.tour-meet { margin: 8px 0 32px; }
.tour-meet h2 { margin-bottom: 12px; }
.tour-meet p { margin-bottom: 12px; color: var(--muted); }
.tour-meet__walk strong { color: var(--green); }
.tour-meet__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.walk-map { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #E9E5DC; }
.walk-map > svg { display: block; width: 100%; height: 100%; }
.walk-map__pin { position: absolute; transform: translate(-50%, -100%); line-height: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.walk-map__label { position: absolute; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--green); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(16, 35, 29, .2); }
.walk-map__label--meet { transform: translate(20px, calc(-50% - 28px)); }
.walk-map__label--pier { transform: translate(calc(-100% - 14px), calc(-50% - 22px)); }
.walk-map__credit { position: absolute; right: 0; bottom: 0; padding: 2px 8px; border-top-left-radius: 8px; background: rgba(255, 255, 255, .85); font-size: 11px; color: var(--muted); }
.walk-map__credit a { color: inherit; }
@media (max-width: 760px) {
  .walk-map { border-radius: 18px; }
  .walk-map__label { font-size: 12px; padding: 3px 8px; }
}
