/*!
 * Caribexus UX layer: /css/ux.css (v1, 2026-11-11)
 * Load LAST in <head>, after every other stylesheet.
 * Visual and UX layer only: it changes no text, no URL and nothing inside forms.
 * Everything here is additive and can be removed section by section.
 * Sections:
 *   0  Tokens
 *   1  Global accessibility (focus, skip link, anchor offsets)
 *   2  Navigation (contrast, mobile menu, desktop sticky CTA)
 *   3  Hero (short desktop screens) + breadcrumbs
 *   4  Buttons (brand yellow CTA, AA-safe greens, CTA strip)
 *   5  Links (Bootstrap blue fix, tap targets)
 *   6  Small-text contrast fixes
 *   7  Cards: tours, vehicles, rental, blog
 *   8  FAQ (one shared accordion look)
 *   9  Hotel / zone link lists (mobile rail, zone price badge, search shortcut)
 *  10  Zone jump-nav (built by ux.js on /transfers)
 *  11  Mobile sticky CTA bar (built by ux.js)
 *  12  Chat launcher on phones
 *  13  Back-to-top
 *  14  Footers
 *  15  Cleaning template (/cleaning-services-punta-cana)
 *  16  Blog index (/blog)
 *  17  Blog post (/blog/{post})
 *  18  Tours page extras
 *  19  Reduced motion + print
 */

/* ==========================================================================
   0. Tokens (prefixed --ux-* so they never collide with --g1 / --rf-* / --v)
   ========================================================================== */
:root {
  --ux-green: #00a86b;        /* brand: accents, icons, large text only (white text on it = 3.1:1) */
  --ux-green-600: #008453;    /* white text 4.7:1 */
  --ux-green-700: #007a50;    /* white text 5.3:1; as link colour on white 5.3:1 */
  --ux-green-800: #075a3c;
  --ux-green-900: #06402b;    /* brand dark green */
  --ux-ink: #0b3d2e;
  --ux-text: #34423c;
  --ux-muted: #56665f;        /* 6.0:1 on white, 5.7:1 on #f5f8f6 */
  --ux-line: #e3ece7;
  --ux-mint: #e9f7f0;
  --ux-mint-2: #d7f1e5;
  --ux-sun: #ffd166;          /* brand accent yellow */
  --ux-sun-600: #ffb703;      /* brand accent yellow (deep) */
  --ux-sun-ink: #06402b;      /* text on yellow: 6.8:1 or better */
  --ux-radius: 14px;
  --ux-radius-lg: 20px;
  --ux-shadow: 0 1px 2px rgba(6, 64, 43, .06), 0 10px 28px rgba(6, 64, 43, .08);
  --ux-shadow-lg: 0 2px 4px rgba(6, 64, 43, .08), 0 18px 40px rgba(6, 64, 43, .14);
  --ux-focus: #ffd166;
  --ux-focus-ink: #06402b;
  --ux-font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ux-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ux-nav-h: 60px;
  --ux-bar-h: 68px;
  --ux-safe-b: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 768px) {
  :root { --ux-nav-h: 56px; }
}

/* ==========================================================================
   1. Global accessibility
   ========================================================================== */

/* Two-tone focus ring: a dark inner ring shows on light backgrounds and the
   yellow outer ring on dark ones (WCAG 2.4.7 / 1.4.11). Before this,
   <summary> had no focus style and the yellow-only ring was 1.6:1 on white.
   Form controls are left alone on purpose (no form changes). */
:where(a, button, summary, [role="button"], [tabindex]:not([tabindex="-1"])):not(form *):focus-visible {
  outline: 3px solid var(--ux-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ux-focus-ink);
}
/* buscador.js injects ".bx-btn:focus-visible{outline:none}" at runtime */
html body #menu .bx-btn:focus-visible,
html body #menu .lang-btn:focus-visible,
html body #menu .menu-toggle:focus-visible {
  outline: 3px solid var(--ux-focus);
  outline-offset: 2px;
}

/* Skip link: make it a real, visible pill when focused */
.skip-link:focus {
  left: 12px;
  top: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ux-green-900);
  box-shadow: var(--ux-shadow-lg);
}

/* In-page anchors (#hot, #vehicles, #reservar on posts, FAQ, zones) land
   below the sticky nav instead of under it */
main section[id],
main [id^="z-"],
main h2[id],
main h3[id],
.lp section[id] {
  scroll-margin-top: calc(var(--ux-nav-h) + 16px);
}
html.ux-has-zonenav main .tf-hub-zona,
html.ux-has-zonenav main [id^="z-"] {
  scroll-margin-top: calc(var(--ux-nav-h) + 76px);
}

/* ==========================================================================
   2. Navigation
   ========================================================================== */

/* White menu text on the old #00b97a gradient was 2.6:1 (fails AA).
   Brand dark greens give 5.3:1 to 9:1, with a thin brand-green / yellow
   accent line so the bar still reads as "Caribexus green". */
html body #menu.bx-menu {
  background: linear-gradient(90deg, var(--ux-green-900) 0%, var(--ux-green-800) 50%, var(--ux-green-700) 100%);
  box-shadow: 0 6px 20px rgba(4, 37, 27, .22);
}
html body #menu.bx-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ux-green) 18%, var(--ux-sun) 50%, var(--ux-green) 82%, transparent 100%);
  opacity: .9;
  pointer-events: none;
}

/* Mobile menu: it was 626px tall in a 551px viewport with no scrolling, so
   "Contacto" and "Iniciar sesión" could not be reached on short phones. */
@media (max-width: 768px) {
  html body #menu-list {
    max-height: calc(100vh - var(--ux-nav-h));
    max-height: calc(100dvh - var(--ux-nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* Floating widgets sat on top of the open menu */
  body:has(#menu-list.active) .cb-btn,
  body:has(#menu-list.active) .to-top,
  body:has(#menu-list.active) .ux-sticky {
    visibility: hidden;
    opacity: 0;
  }
}

/* Desktop sticky CTA: reveals the nav's existing hidden "Reservar transfer"
   item (li.bx-oculto) once the hero CTA has scrolled away (ux.js adds
   html.ux-cta-out). It is absolutely positioned and fades in, so the centred
   menu items never move (no CLS). */
@media (min-width: 1200px) {
  html body.page-transfers #menu.bx-menu .bx-oculto {
    display: list-item !important; /* beats the injected "display:none !important" */
    position: absolute;
    top: 50%;
    right: 150px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateY(6px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  html.ux-cta-out body.page-transfers #menu.bx-menu .bx-oculto {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    transition-delay: 0s;
  }
  html body.page-transfers #menu.bx-menu .bx-oculto a.menu-cta {
    margin: 0;
    padding: 9px 20px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   3. Hero + breadcrumbs
   ========================================================================== */

/* On short laptop screens (1366x657 and similar) the 700px hero and the
   68.8px H1 pushed "Reservar mi transfer" to the fold or below it. */
@media (min-width: 992px) and (max-height: 820px) {
  html body.home #hero.tf-hero,
  html body.page-tours #hero {
    min-height: max(500px, calc(100vh - var(--ux-nav-h) - 24px));
    min-height: max(500px, calc(100svh - var(--ux-nav-h) - 24px));
    padding-top: 40px;
    padding-bottom: 64px;
  }
  html body.home #hero.tf-hero .hero-title,
  html body.page-tours #hero .hero-title {
    font-size: clamp(2.4rem, 3.4vw + 1rem, 3.6rem);
  }
}

/* Injected breadcrumb (ux.js, from the page's BreadcrumbList JSON-LD).
   Absolutely positioned so inserting it never moves the hero copy. */
.ux-has-crumbs { position: relative; }
.ux-crumbs {
  font-size: .85rem;
  line-height: 1.4;
}
.ux-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ux-crumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.ux-crumbs li + li::before {
  content: "\203A";
  content: "\203A" / "";
  margin: 0 .5em;
  opacity: .75;
}
.ux-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ux-crumbs [aria-current="page"] { font-weight: 600; }

.ux-crumbs--hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  color: #d3ece0;
}
.ux-crumbs--hero a,
.ux-crumbs--hero a:hover { color: #fff; }

.ux-crumbs--light {
  position: absolute;
  top: 4px;
  left: 15px;
  right: 15px;
  color: var(--ux-muted);
}
.ux-crumbs--light a { color: var(--ux-green-700); }
.ux-crumbs--light a:hover { color: var(--ux-green-900); }

/* Existing breadcrumbs: same 24px tap target */
.tf-bread a,
.crumbs a,
.lp-bc a {
  display: inline-block;
  padding: 3px 0;
  text-underline-offset: 3px;
}
.crumbs { color: var(--ux-muted); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

/* Primary CTA in the brand accent yellow (#ffd166 to #ffb703) with dark-green
   text (6.8:1). Booking modal (.tf-modal) and rental form (.rn-book) excluded. */
html body .hbtn.hbtn-gold,
html body a.tf-btn:not(.tf-btn-borde):not(.tf-modal *):not(.rn-book *),
html body .home #menu-list a.menu-cta {
  color: var(--ux-sun-ink);
  background: linear-gradient(180deg, #ffd978 0%, var(--ux-sun) 40%, var(--ux-sun-600) 100%);
  border: 1px solid rgba(160, 105, 0, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 20px rgba(255, 183, 3, .28);
}
html body .hbtn.hbtn-gold:hover,
html body a.tf-btn:not(.tf-btn-borde):not(.tf-modal *):not(.rn-book *):hover,
html body .home #menu-list a.menu-cta:hover {
  color: var(--ux-sun-ink);
  background: linear-gradient(180deg, var(--ux-sun) 0%, var(--ux-sun-600) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 26px rgba(255, 183, 3, .36);
}

/* White-on-#00a86b buttons were 3.1:1 (fails AA for 14-16px text) */
body.home .tour-actions .btn-reservar {
  background: linear-gradient(135deg, var(--ux-green-600), #006b45);
  box-shadow: 0 8px 18px rgba(0, 107, 69, .28);
}
body.home .tour-actions .btn-reservar:hover { background: var(--ux-green-900); }
body.home .cotiza-btn { background: var(--ux-green-700); }
body.home .cotiza-btn:hover,
body.home .cotiza-btn:focus-visible { background: var(--ux-green-900); }

/* Even button heights inside cards */
body.home .tour-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* CTA strip: white body text on #00c389 was 2.4:1. Deep-green band with a
   soft brand-green glow; text now 6:1 or better. */
html body.home .cta-strip,
html body .cta-strip {
  position: relative;
  background:
    radial-gradient(110% 140% at 88% 0%, rgba(0, 168, 107, .55) 0%, rgba(0, 168, 107, 0) 55%),
    linear-gradient(120deg, var(--ux-green-900) 0%, var(--ux-green-800) 55%, var(--ux-green-700) 100%);
}
html body .cta-strip .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
html body .cta-strip .btn-light { color: var(--ux-green-900); }

/* ==========================================================================
   5. Links
   ========================================================================== */

/* Bootstrap's default #007bff on white is 3.98:1 (3.72:1 on #f5f8f6) and off
   brand. Only contexts confirmed to use the default colour are listed. */
.tf-veh-mas,
.tf-nota-zonas > a:not(.tf-btn),
.about-text a,
.zona-tours a,
.blog-hero p a,
.sec-head p a,
.tf-hub-zona > p a {
  color: var(--ux-green-700);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 3px;
}
.tf-veh-mas:hover,
.tf-nota-zonas > a:not(.tf-btn):hover,
.about-text a:hover,
.zona-tours a:hover,
.blog-hero p a:hover,
.sec-head p a:hover,
.tf-hub-zona > p a:hover { color: var(--ux-green-900); }

#cobertura h3 a {
  color: var(--ux-ink);
  text-decoration: none;
}
#cobertura h3 a:hover {
  color: var(--ux-green-700);
  text-decoration: underline;
}

/* Stand-alone small links were 17-20px tall (WCAG 2.5.8 asks for 24px) */
.tf-veh-mas,
.card-guide,
.blog-card-ficha,
.cotiza-enlace,
.zona-tours-tr a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ==========================================================================
   6. Small-text contrast fixes (all measured below 4.5:1 before)
   ========================================================================== */
body.home .card-tour .tour-vistas { color: var(--ux-muted); }      /* was 3.0:1 */
.tf-zona-precios small,
.tf-zona-precios em { color: #4f5f58; }                             /* was 4.49:1 at 11.5px */
article.post .post-facts small {                                    /* was 4.27:1 at 10.5px */
  color: #4f5f58;
  font-size: .72rem;
}
.post-quick-nota,
.post-nav small,
.post-meta { color: var(--ux-muted); }

/* ==========================================================================
   7. Cards
   ========================================================================== */

/* 7a. Tour cards: shared polish */
body.home .card-tour .tour-precio .pnum {
  font-size: 1.6rem;
  letter-spacing: -.01em;
  color: var(--ux-green-700);
}
body.home .card-tour .tour-datos { color: #43534c; }

/* 7b. Tour cards on phones: compact "media-left" layout for the 35-tour grid.
   The page was 28,800px tall at 390px wide; this saves about 300px per card.
   All text stays visible. #hot keeps its large featured cards. */
@media (max-width: 575px) {
  body.page-tours #excursiones .card-tour {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 12px;
  }
  body.page-tours #excursiones .card-tour .card-body {
    display: contents !important; /* beats Bootstrap's .d-flex !important */
  }
  body.page-tours #excursiones .card-tour .tour-media {
    grid-column: 1;
    grid-row: 1 / span 3;
    border-radius: 12px;
  }
  body.page-tours #excursiones .card-tour .tour-media img {
    width: 108px;
    height: 108px;
  }
  body.page-tours #excursiones .card-tour .tour-media .badge {
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    font-size: .64rem;
  }
  body.page-tours #excursiones .card-tour .card-body > * {
    grid-column: 2;
    min-width: 0;
  }
  body.page-tours #excursiones .card-tour .tour-card-titulo {
    margin: 0 0 2px;
    font-size: 1rem;
  }
  body.page-tours #excursiones .card-tour .text-muted {
    margin: 0 0 4px;
    font-size: .86rem;
  }
  body.page-tours #excursiones .card-tour .tour-datos {
    margin: 0 0 2px;
    font-size: .8rem;
  }
  body.page-tours #excursiones .card-tour .tour-vistas { margin: 0; }
  body.page-tours #excursiones .card-tour .tour-precio,
  body.page-tours #excursiones .card-tour .card-guide,
  body.page-tours #excursiones .card-tour .tour-actions {
    grid-column: 1 / -1;
  }
  body.page-tours #excursiones .card-tour .tour-precio {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ux-line);
  }
  body.page-tours #excursiones .card-tour .card-guide { margin: 0 0 8px; }
  body.page-tours #excursiones .col-md-6 { margin-bottom: 14px !important; } /* Bootstrap .mb-4 is !important */
}

/* 7c. Vehicle cards (home, /transfers, zone pages): one "studio" backdrop so
   white-background and grey-background photos look like one set. */
.tf-veh-card {
  position: relative;
  isolation: isolate;
}
.tf-veh-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1000 / 545;
  background: radial-gradient(120% 95% at 50% 100%, #e1ebe6 0%, #f2f7f4 58%, #fbfdfc 100%);
  z-index: -1;
}
.tf-veh-card > img { mix-blend-mode: multiply; }
.tf-veh-body .tf-veh-precio { font-size: 1rem; }

/* 7d. Rental cards: "Desde US$75 / día" wrapped onto two or three lines */
body.page-renta .rn-precio { white-space: nowrap; }
body.page-renta .rn-precio small {
  font-size: .78rem;
  color: var(--ux-muted);
}
@media (max-width: 380px) {
  body.page-renta .rn-pie { flex-wrap: wrap; }
  body.page-renta .rn-pie .tf-btn { flex: 1 1 100%; }
}

/* 7e. Blog cards on phones: thumbnail-left layout (index page only, so the
   "related" cards on posts are not affected) */
@media (max-width: 575px) {
  main.blog-wrap .row .blog-card:not(a) {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 12px;
  }
  main.blog-wrap .row .blog-card:not(a) > a:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  main.blog-wrap .row .blog-card:not(a) > a:first-child img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
  }
  main.blog-wrap .row .blog-card:not(a) .card-body {
    display: contents !important; /* beats Bootstrap's .d-flex !important */
  }
  main.blog-wrap .row .blog-card:not(a) .card-body > * {
    grid-column: 2;
    min-width: 0;
  }
  main.blog-wrap .row .blog-card:not(a) .blog-card-titulo {
    margin: 4px 0 0 !important; /* Bootstrap .mt-2 is !important */
    font-size: 1.02rem;
  }
  main.blog-wrap .row .blog-card:not(a) .card-body > p.text-muted,
  main.blog-wrap .row .blog-card:not(a) .blog-card-actions {
    grid-column: 1 / -1;
  }
  main.blog-wrap .row .blog-card:not(a) .card-body > p.text-muted {
    margin: 10px 0 4px;
    font-size: .94rem;
  }
}

/* ==========================================================================
   8. FAQ: one accordion look for .tf-faq (home, transfers, tours, rental),
      .post-faq (blog) and .lp-faq (cleaning)
   ========================================================================== */
html body .tf-faq summary,
html body .post-faq summary,
html body main.lp .lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
}
html body main.lp .lp-faq summary { padding-right: 22px; }
html body .post-faq summary::-webkit-details-marker,
html body .tf-faq summary::-webkit-details-marker { display: none; }
html body .post-faq summary::marker { content: ""; }

html body .tf-faq summary::after,
html body .post-faq summary::after,
html body main.lp .lp-faq summary::after {
  content: "";
  position: static;
  float: none;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  transform: none;
  background: var(--ux-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23007a50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease, background-color .2s ease;
}
html body .tf-faq details[open] > summary::after,
html body .post-faq details[open] > summary::after,
html body main.lp .lp-faq details[open] > summary::after {
  content: "";
  transform: rotate(180deg);
  background-color: var(--ux-mint-2);
}
html body .tf-faq summary:hover,
html body .post-faq summary:hover,
html body main.lp .lp-faq summary:hover { color: var(--ux-green-700); }

html body .tf-faq details,
html body .post-faq details,
html body main.lp .lp-faq details {
  transition: border-color .2s ease, box-shadow .2s ease;
}
html body .tf-faq details[open],
html body .post-faq details[open],
html body main.lp .lp-faq details[open] {
  border-color: #bfe3d0;
  box-shadow: var(--ux-shadow);
}
html body .tf-faq details p { line-height: 1.65; }

/* Smooth open/close where supported (Chrome 131+); others open instantly */
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    html body .tf-faq details,
    html body .post-faq details,
    html body main.lp .lp-faq details { interpolate-size: allow-keywords; }
    html body .tf-faq details::details-content,
    html body .post-faq details::details-content,
    html body main.lp .lp-faq details::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size .3s ease, content-visibility .3s allow-discrete;
    }
    html body .tf-faq details[open]::details-content,
    html body .post-faq details[open]::details-content,
    html body main.lp .lp-faq details[open]::details-content { block-size: auto; }
  }
}

/* ==========================================================================
   9. Hotel / zone link lists (ul.tf-enlaces.notranslate = hotel lists)
   ========================================================================== */

/* Desktop keeps the existing pill layout (tested: an aligned grid made
   #hoteles 400px taller). Pills get a clearer hover/focus state only. */
ul.tf-enlaces > li > a { transition: background-color .2s ease, border-color .2s ease; }
ul.tf-enlaces > li > a:hover { border-color: var(--ux-green); }

/* Phones: long lists (13+ hotels) become a 4-row horizontal rail. #hoteles
   on the home page was 6,118px tall at 390px; the rail is about 200px.
   Every link stays in the DOM and on screen within the rail. */
@media (max-width: 767px) {
  ul.tf-enlaces.notranslate:has(> li:nth-child(13)) {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    grid-auto-columns: max-content;
    gap: 8px;
    margin-left: -15px;
    margin-right: -15px;
    padding: 2px 15px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  ul.tf-enlaces.notranslate:has(> li:nth-child(13)) > li { scroll-snap-align: start; }
  ul.tf-enlaces.notranslate:has(> li:nth-child(13)) > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    white-space: nowrap;
  }
}

/* Zone price line on /transfers ("Desde US$ 60 solo ida por vehículo.")
   becomes a price badge. Only zone sections (h2 with a link) match. */
.tf-hub-zona > h2:has(> a) + p {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin: 2px 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ux-mint);
  color: var(--ux-green-900);
  font-weight: 700;
  font-size: .92rem;
}
.tf-hub-zona > h2:has(> a) + p::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--ux-green);
}
.tf-hub-zona + .tf-hub-zona {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--ux-line);
}

/* "Buscar en el sitio" shortcut above long hotel lists (ux.js; reuses the
   menu's existing label and opens the existing search overlay) */
.ux-find {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 0 18px 0 14px;
  border: 1px solid #bfe3d0;
  border-radius: 999px;
  background: #fff;
  color: var(--ux-green-900);
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: var(--ux-shadow);
  transition: border-color .2s ease, background-color .2s ease;
}
.ux-find:hover { border-color: var(--ux-green); background: var(--ux-mint); }
.ux-find svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* ==========================================================================
   10. Zone jump-nav + scroll-spy on /transfers (built by ux.js)
   ========================================================================== */
.ux-zonenav {
  position: sticky;
  top: var(--ux-nav-h);
  z-index: 900;
  margin: 8px 0 18px;
  background: rgba(245, 248, 246, .94);
  border-bottom: 1px solid var(--ux-line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}
.ux-zonenav.is-done { position: relative; top: auto; }
.ux-zonenav ul {
  display: flex;
  gap: 8px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 15px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.ux-zonenav ul::-webkit-scrollbar { display: none; }
.ux-zonenav li { flex: 0 0 auto; }
.ux-zonenav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #bfe3d0;
  border-radius: 999px;
  background: #fff;
  color: var(--ux-green-900);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ux-zonenav a:hover { border-color: var(--ux-green); text-decoration: none; }
.ux-zonenav a[aria-current="true"] {
  background: var(--ux-green-700);
  border-color: var(--ux-green-700);
  color: #fff;
}

/* ==========================================================================
   11. Mobile sticky CTA bar (built by ux.js from an existing CTA)
   ========================================================================== */
.ux-sticky { display: none; }
@media (max-width: 767px) {
  .ux-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px calc(10px + var(--ux-safe-b));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--ux-line);
    box-shadow: 0 -8px 24px rgba(6, 64, 43, .12);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
  }
  .ux-sticky.is-on {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .ux-sticky__main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(160, 105, 0, .28);
    background: linear-gradient(180deg, #ffd978 0%, var(--ux-sun) 40%, var(--ux-sun-600) 100%);
    color: var(--ux-sun-ink);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }
  .ux-sticky__main:hover,
  .ux-sticky__main:focus { color: var(--ux-sun-ink); text-decoration: none; }
  .ux-sticky__main--green {
    border-color: transparent;
    background: var(--ux-green-700);
    color: #fff;
  }
  .ux-sticky__main--green:hover,
  .ux-sticky__main--green:focus { color: #fff; background: var(--ux-green-900); }
  .ux-sticky__wa {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ux-green-700);
    color: #fff;
  }
  .ux-sticky__wa:hover,
  .ux-sticky__wa:focus { color: #fff; background: var(--ux-green-900); }
  .ux-sticky__wa svg { width: 24px; height: 24px; }

  /* Keep the end of the page reachable under the bar */
  html.ux-has-sticky .site-footer,
  html.ux-has-sticky body.blog-body > footer {
    padding-bottom: calc(var(--ux-bar-h) + 16px + var(--ux-safe-b));
  }
  /* While the bar is up, back-to-top steps aside (tested: bar + chat pill +
     back-to-top stacked three floating layers over the content) */
  html.ux-sticky-on .to-top {
    opacity: 0;
    visibility: hidden;
  }

  /* Never compete with overlays */
  html.tf-lock .ux-sticky,
  html.cb-abierto .ux-sticky,
  body.modal-open .ux-sticky,
  body:has(.bx-ov:not([hidden])) .ux-sticky,
  body:has(.cb-panel:not([hidden])) .ux-sticky,
  body:has(#cbx-cookies.cbx-ck-visible) .ux-sticky {
    visibility: hidden;
    transform: translateY(110%);
  }
}

/* ==========================================================================
   12. Chat launcher on phones
   The vertical "Chatea con nosotros" tab (40x210px at 34% height) covered
   the right edge of H1s, prices and FAQ icons on every page at 390px.
   On phones it becomes a horizontal pill in the bottom-right corner; the
   label stays visible. chatbot.css stacks !important layers, so this needs
   !important and a stronger selector.
   ========================================================================== */
@media (max-width: 575px) {
  html body #menu ~ .cb-btn.cb-btn.cb-btn {
    inset: auto 12px calc(14px + var(--ux-safe-b)) auto !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 16px 0 12px !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    border-radius: 999px !important;
    transform: none !important;
    box-shadow: 0 8px 22px rgba(4, 37, 27, .3) !important;
  }
  html body #menu ~ .cb-btn.cb-btn.cb-btn:hover { transform: none !important; }
  html body #menu ~ .cb-btn.cb-btn.cb-btn span {
    writing-mode: horizontal-tb;
    font-size: .86rem;
    line-height: 1;
    padding: 0;
  }
  html.ux-sticky-on body #menu ~ .cb-btn.cb-btn.cb-btn {
    bottom: calc(var(--ux-bar-h) + 14px + var(--ux-safe-b)) !important;
  }
  /* En el celular el chat es un círculo (52 px) para no tapar títulos, precios ni botones;
     el texto "Chatea con nosotros" sigue en el botón para lectores de pantalla. */
  html body #menu ~ .cb-btn.cb-btn.cb-btn {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  html body #menu ~ .cb-btn.cb-btn.cb-btn span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   13. Back-to-top (button#to-top already exists; it is restyled, not duplicated)
   ========================================================================== */
.to-top {
  background: var(--ux-green-700);
  box-shadow: 0 8px 20px rgba(4, 37, 27, .28);
}
.to-top:hover { background: var(--ux-green-900); }

/* ==========================================================================
   14. Footers
   ========================================================================== */
.site-footer .footer-contact li { min-height: 32px; }
.site-footer .footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Cleaning + blog templates use a plain Bootstrap .bg-dark footer (#343a40).
   Brand dark-green gradient, as on the other templates (the background image
   sits over Bootstrap's !important background-color, so no !important). */
body.blog-body > footer.bg-dark {
  background-image: linear-gradient(160deg, #04251b 0%, #0b3d2e 55%, #06402f 100%);
  color: #cfe3da;
}
body.blog-body > footer.bg-dark a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 2px;
  text-underline-offset: 3px;
}
body.blog-body > footer.bg-dark a:hover { text-decoration: underline; }

/* ==========================================================================
   15. Cleaning template (main.lp): bring it closer to the core templates
   ========================================================================== */
body.blog-body,
main.lp { font-family: var(--ux-font-body); }
main.lp .lp-hero h1,
main.lp h2 {
  font-family: var(--ux-font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Zone chips: "\F3E7" needs bootstrap-icons, which this template does not
   load, so a tofu box showed. A CSS map pin needs no font. */
main.lp .lp-chips li::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 6px;
  vertical-align: -.15em;
  font-family: inherit;
  background-color: var(--v, #00a86b);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a5 5 0 0 0-5 5c0 3.6 5 11 5 11s5-7.4 5-11a5 5 0 0 0-5-5zm0 7.2A2.2 2.2 0 1 1 8 2.8a2.2 2.2 0 0 1 0 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a5 5 0 0 0-5 5c0 3.6 5 11 5 11s5-7.4 5-11a5 5 0 0 0-5-5zm0 7.2A2.2 2.2 0 1 1 8 2.8a2.2 2.2 0 0 1 0 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* AA-safe green on white-text buttons (#00a86b was 3.1:1) */
main.lp .lp-hero .lp-b1,
main.lp .lp-tr .lp-b1 {
  background: var(--vo, #00754e);
  box-shadow: 0 10px 26px rgba(0, 117, 78, .3);
}
main.lp .lp-hero .lp-b1:hover,
main.lp .lp-tr .lp-b1:hover { background: var(--ux-green-900); }

/* Share buttons in the hero competed with the two CTAs: quieter chips */
main.lp .lp-hero .lp-compartir a {
  padding: 4px 12px;
  font-size: .8rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
}
main.lp .lp-hero .lp-compartir a:hover { background: rgba(255, 255, 255, .22); opacity: 1; }

/* Phones: CTA was below the fold (90px empty top padding + 4-line H1) */
@media (max-width: 768px) {
  main.lp .lp-hero .lp-w {
    padding-top: 28px;
    padding-bottom: 60px;
  }
  main.lp .lp-hero h1 { font-size: 1.85rem; }
  main.lp .lp-hero .lp-lead {
    font-size: 1.02rem;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   16. Blog index
   ========================================================================== */
main.blog-wrap .blog-hero h1,
article.post .post-head h1 {
  font-family: var(--ux-font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ux-ink);
}
main.blog-wrap .blog-hero .lead { font-size: 1.12rem; }
main.blog-wrap .blog-hero p.text-muted {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: .95rem;
}

/* Share chips: quiet outline style instead of five brand colours */
.blog-hero .blog-compartir a,
article.post .blog-compartir a {
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line);
}
.blog-hero .blog-compartir a:hover,
.blog-hero .blog-compartir a:focus,
article.post .blog-compartir a:hover,
article.post .blog-compartir a:focus {
  color: var(--ux-green-900);
  background: var(--ux-mint);
  opacity: 1;
}
.blog-hero .blog-compartir { justify-content: center; }

/* Category chips: one swipeable row on phones instead of four rows */
@media (max-width: 575px) {
  main.blog-wrap .blog-filtros {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: -15px;
    margin-right: -15px;
    padding: 2px 15px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  main.blog-wrap .blog-filtros::-webkit-scrollbar { display: none; }
  main.blog-wrap .blog-chip { flex: 0 0 auto; }
}

/* ==========================================================================
   17. Blog post
   ========================================================================== */

/* Reading progress bar (ux.js), decorative */
.ux-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1101;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ux-green) 0%, var(--ux-sun) 100%);
  pointer-events: none;
}

/* Quick facts: on phones the three tiles took about 300px stacked; now
   duration and price sit side by side and the place gets a full row */
@media (max-width: 575px) {
  article.post .post-facts { grid-template-columns: 1fr 1fr; }
  article.post .post-facts > div:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* Table of contents: clearer box + active section (ux.js scroll-spy) */
article.post .post-toc {
  border-left: 4px solid var(--ux-green);
}
article.post .post-toc summary { padding: 8px 0; } /* 40px target, keeps the native marker */
article.post .post-toc li { padding: 2px 0; }
article.post .post-toc a[aria-current="true"] {
  font-weight: 700;
  color: var(--ux-green-900);
}

article.post .post-faq summary { padding: 4px 0; }

/* ==========================================================================
   18. Tours page extras
   ========================================================================== */

/* "Excursiones por zona": a ragged run of inline links becomes an aligned
   list with 32px rows (rows were 20px tall) */
body.page-tours #por-zona .zona-tours-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 24px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
body.page-tours #por-zona .zona-tours-lista > li {
  display: block;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px dashed var(--ux-line);
  line-height: 1.4;
}
body.page-tours #por-zona .zona-tours-lista > li > a { font-weight: 600; }

/* Filter chips: 40px targets */
body.page-tours .cbx-chip { min-height: 40px; }

/* ==========================================================================
   19. Reduced motion + print
   ========================================================================== */
/* Same selectors as above, later in the file, so no !important is needed */
@media (prefers-reduced-motion: reduce) {
  .ux-sticky,
  .ux-zonenav a,
  .ux-find,
  html body .tf-faq summary::after,
  html body .post-faq summary::after,
  html body main.lp .lp-faq summary::after,
  html body .tf-faq details,
  html body .post-faq details,
  html body main.lp .lp-faq details,
  html body.page-transfers #menu.bx-menu .bx-oculto { transition: none; }
}
@media print {
  .ux-sticky,
  .ux-progress,
  .ux-zonenav,
  .ux-find { display: none; }
}

/* ==========================================================================
   Selector de excursiones (tours): se abre desde la barra fija "Reservar"
   ========================================================================== */
html.ux-picker-on { overflow: hidden; }
html.ux-picker-on .cb-btn { visibility: hidden; }
.ux-picker { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; }
.ux-picker[hidden] { display: none !important; }
.ux-picker__fondo { position: absolute; inset: 0; background: rgba(4, 37, 27, .55); }
.ux-picker__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
  padding: 14px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { .ux-picker { align-items: center; } .ux-picker__panel { border-radius: 20px; max-height: 80vh; } }
@media (prefers-reduced-motion: no-preference) { .ux-picker__panel { animation: ux-subir .22s ease-out; } }
@keyframes ux-subir { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.ux-picker__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.ux-picker__cab strong { font-size: 1.05rem; color: #06402b; line-height: 1.25; }
.ux-picker__x { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e9f7f0; color: #06402b; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ux-picker__buscar { width: 100%; border: 1.5px solid #cfdcd5; border-radius: 12px; padding: 11px 14px; font-size: 16px; margin-bottom: 8px; }
.ux-picker__buscar:focus { outline: 0; border-color: #00a86b; box-shadow: 0 0 0 3px rgba(0, 168, 107, .15); }
.ux-picker__lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
.ux-picker__lista li[hidden] { display: none; }
.ux-picker__item {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 6px; border: 0; border-bottom: 1px solid #eef3f0;
  background: #fff; cursor: pointer; border-radius: 10px; color: #0b3d2e; min-height: 64px;
}
.ux-picker__item:hover, .ux-picker__item:focus-visible { background: #f2faf6; }
.ux-picker__item img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #e9f7f0; }
.ux-picker__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ux-picker__txt strong { font-size: .93rem; line-height: 1.25; }
.ux-picker__txt small { color: #56665f; font-size: .78rem; margin-top: 2px; }
.ux-picker__precio { flex: 0 0 auto; font-weight: 800; color: #007a50; font-size: .9rem; white-space: nowrap; }
.ux-picker__vacio { padding: 18px 6px; color: #56665f; text-align: center; }
.ux-picker__plan { display: block; text-align: center; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1.5px solid #007a50; color: #007a50; font-weight: 700; text-decoration: none; }
.ux-picker__plan:hover { background: #e9f7f0; color: #06402b; text-decoration: none; }

/* ==========================================================================
   Asistente de transfer: pie más compacto para que las opciones del paso
   no queden tapadas (aviso 5%, términos y botones más pequeños en celular)
   ========================================================================== */
.tf-dialog .tf-pie-hint:empty { margin: 0 !important; min-height: 0 !important; }
@media (max-width: 575.98px) {
  .tf-dialog .tf-pie { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .tf-dialog .tf-pie-hint { margin-bottom: 6px; font-size: .8rem; line-height: 1.35; }
  .tf-dialog #tf-sig.tf-btn-ancho { min-height: 46px; font-size: 1rem; }
  .tf-dialog .tf-pie-extra { min-height: 24px; margin-top: 2px; }
  .tf-dialog .tf-pie-extra > * { margin-top: 0; }
  .tf-dialog .tf-idioma-btn, .tf-dialog .tf-pie-borrar { padding-top: 2px; padding-bottom: 2px; }
}
