/* Katary Tour Booking — frontend v1.2.0 */
.ktb-tour-page,
.ktb-tour-page *,
.ktb-tour-hero,
.ktb-tour-hero *,
.ktb-tour-layout,
.ktb-tour-layout *,
.ktb-tour-details,
.ktb-tour-details *,
.ktb-card,
.ktb-card * { box-sizing: border-box; }

.ktb-tour-page,
.ktb-tour-hero,
.ktb-tour-layout,
.ktb-tour-details,
.ktb-card,
.ktb-gallery {
  --ktb-primary: #2f8f63;
  --ktb-ink: #15231d;
  --ktb-muted: #68756f;
  --ktb-line: #e2e9e5;
  --ktb-soft: #f4f8f6;
  --ktb-white: #fff;
}

.ktb-tour-page {
  width: min(1320px, 100%);
  margin-inline: auto;
  color: var(--ktb-ink);
  font-family: inherit;
}

.ktb-tour-page button,
.ktb-tour-page select,
.ktb-tour-page input { font-family: inherit; }

/* Banner premium: más ancho y 20% menos alto */
.ktb-tour-hero {
  position: relative;
  width: min(1460px, calc(100vw - 28px));
  min-height: clamp(300px, 34vw, 440px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 clamp(32px, 4vw, 54px);
  margin-left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: clamp(22px, 3vw, 34px);
  background: #102019;
  box-shadow: 0 28px 80px rgba(12, 31, 22, .18);
}
.ktb-tour-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}
.ktb-tour-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,16,11,.86) 0%, rgba(5,16,11,.66) 38%, rgba(5,16,11,.18) 75%, rgba(5,16,11,.06) 100%),
    linear-gradient(0deg, rgba(5,16,11,.52) 0%, transparent 62%);
}
.ktb-tour-hero-content {
  width: min(780px, 76%);
  padding: clamp(30px, 5vw, 68px);
  color: #fff;
}
.ktb-tour-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ktb-tour-hero h1 {
  max-width: 760px;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(38px, 5vw, 66px) !important;
  line-height: .98 !important;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.ktb-tour-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.65;
}
.ktb-tour-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 19px;
  margin-top: 24px;
  border-radius: 14px;
  background: #fff;
  color: #14231c !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 13px 34px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ktb-tour-hero-link:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(0,0,0,.27); }
.ktb-tour-hero-link span { color: var(--ktb-primary); font-size: 18px; }

/* Galería editorial + reserva */
.ktb-tour-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(340px, .68fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}
.ktb-tour-layout-gallery,
.ktb-tour-layout-booking { min-width: 0; }
.ktb-tour-layout-booking { position: sticky; top: 22px; }

.ktb-gallery { width: 100%; min-width: 0; }
.ktb-gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}
.ktb-gallery-heading > div { display: grid; gap: 3px; }
.ktb-gallery-heading > div > span {
  color: #33443b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.ktb-gallery-heading > div > small { color: #89938e; font-size: 11px; }
.ktb-gallery-show-all {
  appearance: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d9e2dd;
  border-radius: 999px;
  background: #fff;
  color: #26372e;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(21,35,29,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ktb-gallery-show-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ktb-gallery-show-all:hover { transform: translateY(-1px); border-color: var(--ktb-primary); box-shadow: 0 9px 24px rgba(21,35,29,.09); }

.ktb-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(19,39,29,.09);
  border-radius: 28px;
  background: #e9efec;
  box-shadow: 0 24px 68px rgba(20,42,32,.14);
}
.ktb-gallery-stage-open {
  appearance: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  cursor: zoom-in;
  overflow: hidden;
}
.ktb-gallery-stage-image,
.ktb-gallery-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.75,.2,1), filter .3s ease, opacity .2s ease;
}
.ktb-gallery-stage:hover .ktb-gallery-stage-image { transform: scale(1.025); filter: saturate(1.03); }
.ktb-gallery-stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(5,16,11,.34) 100%);
  pointer-events: none;
}
.ktb-gallery-stage-nav {
  appearance: none !important;
  position: absolute !important;
  z-index: 4;
  top: 50%;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(12px);
  color: #17251e !important;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(6,18,12,.22);
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease;
}
.ktb-gallery-stage-nav:hover { background: #fff !important; transform: translateY(-50%) scale(1.05); }
.ktb-gallery-stage-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ktb-gallery-stage-prev { left: 18px; }
.ktb-gallery-stage-next { right: 18px; }
.ktb-gallery-stage-meta {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  pointer-events: none;
}
.ktb-gallery-stage-counter {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(6,17,12,.42);
  backdrop-filter: blur(10px);
  font-weight: 850;
}
.ktb-gallery-thumbs {
  width: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c9d5ce transparent;
}
.ktb-gallery-thumb {
  appearance: none !important;
  flex: 0 0 104px;
  width: 104px !important;
  height: 76px !important;
  min-width: 104px !important;
  min-height: 76px !important;
  padding: 3px !important;
  margin: 0 !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 15px !important;
  background: #fff !important;
  cursor: pointer;
  opacity: .68;
  scroll-snap-align: center;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}
.ktb-gallery-thumb:hover { opacity: 1; transform: translateY(-1px); }
.ktb-gallery-thumb.is-active { opacity: 1; border-color: var(--ktb-primary) !important; box-shadow: 0 7px 18px rgba(47,143,99,.18); }
.ktb-gallery-thumb img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }

/* Lightbox premium */
html.ktb-lightbox-open { overflow: hidden; }
.ktb-gallery-lightbox[hidden] { display: none !important; }
.ktb-gallery-lightbox { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px; }
.ktb-gallery-backdrop { position: absolute; inset: 0; background: rgba(3,9,6,.92); backdrop-filter: blur(13px); }
.ktb-gallery-dialog { position: relative; z-index: 1; width: min(1240px, 100%); height: min(86vh, 850px); display: grid; place-items: center; }
.ktb-gallery-lightbox-image { display: block; max-width: calc(100% - 120px); max-height: calc(100% - 62px); object-fit: contain; border-radius: 20px; box-shadow: 0 30px 100px rgba(0,0,0,.48); touch-action: pan-y; }
.ktb-gallery-close,
.ktb-gallery-nav {
  appearance: none !important;
  position: absolute !important;
  z-index: 2;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(12px);
  color: #fff !important;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.ktb-gallery-close { top: 0; right: 0; width: 46px !important; height: 46px !important; min-width: 46px !important; border-radius: 50% !important; }
.ktb-gallery-nav { top: 50%; width: 54px !important; height: 66px !important; min-width: 54px !important; border-radius: 18px !important; transform: translateY(-50%); }
.ktb-gallery-prev { left: 0; }
.ktb-gallery-next { right: 0; }
.ktb-gallery-close:hover { background: rgba(255,255,255,.22) !important; transform: scale(1.04); }
.ktb-gallery-nav:hover { background: rgba(255,255,255,.22) !important; transform: translateY(-50%) scale(1.04); }
.ktb-gallery-close svg,
.ktb-gallery-nav svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ktb-gallery-meta { position: absolute; left: 76px; right: 76px; bottom: 0; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.78); font-size: 12px; }
.ktb-gallery-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ktb-gallery-counter { white-space: nowrap; font-weight: 850; }

/* Tarjeta de reserva */
.ktb-card {
  width: 100%;
  position: relative;
  scroll-margin-top: 28px;
  overflow: visible;
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid rgba(19,38,29,.09);
  border-radius: 26px;
  background: #fff;
  color: #17231e;
  box-shadow: 0 24px 66px rgba(20,43,32,.13);
  font-family: inherit;
}
.ktb-card-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid #e7ece9; }
.ktb-eyebrow { display: inline-flex; margin-bottom: 8px; color: var(--ktb-primary); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ktb-title { margin: 0 !important; color: #14211b !important; font-size: clamp(25px, 2.6vw, 35px) !important; line-height: 1.07 !important; letter-spacing: -.03em; }
.ktb-price { text-align: right; white-space: nowrap; }
.ktb-price del { display: block; color: #a0aaa5; font-size: 13px; }
.ktb-price strong { display: block; color: var(--ktb-primary); font-size: 27px; line-height: 1.12; }
.ktb-price small { color: #77837d; font-size: 10px; }
.ktb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 16px 0; border-bottom: 1px solid #e7ece9; }
.ktb-facts span { min-width: 0; padding: 11px 10px; border: 1px solid #e9efec; border-radius: 13px; background: #f8faf9; color: #53615a; font-size: 11px; }
.ktb-facts b { display: block; margin-bottom: 3px; color: #1f2e26; font-size: 9px; letter-spacing: .065em; text-transform: uppercase; }
.ktb-booking-form { margin-top: 19px; }
.ktb-booking-form[aria-busy="true"] { cursor: progress; }
.ktb-field { position: relative; margin-bottom: 16px; min-width: 0; }
.ktb-field > label,
.ktb-qty-block > label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #24332b; font-size: 12px; font-weight: 850; }
.ktb-field-step { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #edf6f1; color: var(--ktb-primary); font-size: 10px; font-weight: 900; }
.ktb-select-wrap { position: relative; }
.ktb-time-select,
.ktb-date-toggle {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  border: 1px solid #d8e2dd !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #1b2922 !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  outline: none;
}
.ktb-time-select:focus,
.ktb-date-toggle:focus { border-color: var(--ktb-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ktb-primary) 16%, transparent) !important; }
.ktb-time-select:disabled { opacity: .66; cursor: not-allowed; }
.ktb-date-toggle {
  appearance: none !important;
  display: grid !important;
  grid-template-columns: 23px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.ktb-date-toggle.has-value { border-color: var(--ktb-primary) !important; background: #fbfefc !important; }
.ktb-date-toggle.is-searching { opacity: .72; }
.ktb-date-icon,
.ktb-chevron { display: grid; place-items: center; color: var(--ktb-primary); }
.ktb-date-icon svg { width: 18px; height: 18px; }
.ktb-chevron { color: #7b8982; }
.ktb-chevron svg { width: 18px; height: 18px; }
.ktb-date-icon svg,
.ktb-chevron svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ktb-date-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Calendario blindado contra estilos del tema */
.ktb-date-field { isolation: isolate; }
.ktb-calendar {
  position: absolute;
  z-index: 99999;
  top: calc(100% + 9px);
  right: 0;
  left: auto;
  width: min(370px, 100%);
  min-width: 0;
  max-width: calc(100vw - 30px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid #dce5e0;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 25px 65px rgba(15,37,26,.24);
}
.ktb-calendar[hidden] { display: none !important; }
.ktb-calendar-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-bottom: 9px; }
.ktb-calendar-head strong { min-width: 0; text-align: center; text-transform: capitalize; font-size: 14px; white-space: nowrap; }
.ktb-calendar-head button {
  appearance: none !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f2f6f4 !important;
  color: #26352d !important;
  cursor: pointer;
}
.ktb-calendar-head button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ktb-calendar-head button:hover:not(:disabled) { background: #e7f3ec !important; color: var(--ktb-primary) !important; }
.ktb-calendar-head button:disabled { opacity: .32; cursor: default; }
.ktb-cal-weekdays,
.ktb-cal-days {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}
.ktb-cal-weekdays span { min-width: 0; padding: 6px 0; text-align: center; color: #8b9690; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ktb-cal-day {
  appearance: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  aspect-ratio: 1;
  min-height: 34px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #34423b !important;
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.ktb-cal-day:hover:not(:disabled) { background: #edf7f1 !important; color: var(--ktb-primary) !important; }
.ktb-cal-day.is-selected { background: var(--ktb-primary) !important; color: #fff !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--ktb-primary) 28%, transparent) !important; }
.ktb-cal-day.is-today:not(.is-selected) { outline: 1px solid var(--ktb-primary); outline-offset: -1px; color: var(--ktb-primary) !important; }
.ktb-cal-day.is-outside { opacity: .34; }
.ktb-cal-day.is-disabled { background: #fafbfa !important; color: #c6cdc9 !important; cursor: not-allowed; text-decoration: none; }
.ktb-calendar-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 3px 1px; margin-top: 8px; border-top: 1px solid #eef2f0; color: #7c8982; font-size: 9px; }
.ktb-calendar-foot span { display: inline-flex; align-items: center; gap: 5px; }
.ktb-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ktb-dot-today { background: var(--ktb-primary); }
.ktb-dot-disabled { background: #cbd2ce; }

.ktb-booking-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; padding: 17px; margin: 20px 0 15px; border: 1px solid #deebe4; border-radius: 17px; background: linear-gradient(135deg, #f8fbf9, #edf6f1); }
.ktb-booking-summary > div:first-child > span { display: block; color: #66736d; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ktb-total { display: block; color: var(--ktb-primary); font-size: 28px; line-height: 1.2; }
.ktb-availability { display: block; min-height: 16px; margin-top: 4px; color: #43805f; font-size: 10px; line-height: 1.35; }
.ktb-availability.is-warning { color: #a46512; }
.ktb-stepper { display: grid; grid-template-columns: 38px 44px 38px; min-height: 43px; overflow: hidden; border: 1px solid #d4dfd9; border-radius: 12px; background: #fff; }
.ktb-stepper button { appearance: none !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: #fff !important; cursor: pointer; color: var(--ktb-primary) !important; font-size: 20px !important; font-weight: 700; }
.ktb-stepper button:hover:not(:disabled) { background: #edf7f1 !important; }
.ktb-stepper button:disabled { color: #c0c9c4 !important; cursor: default; }
.ktb-stepper input { width: 44px !important; min-height: 41px !important; padding: 0 !important; border: 0 !important; border-left: 1px solid #edf0ee !important; border-right: 1px solid #edf0ee !important; border-radius: 0 !important; text-align: center; font-weight: 850; appearance: textfield; }
.ktb-stepper input::-webkit-inner-spin-button,
.ktb-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ktb-submit { width: 100% !important; min-height: 56px !important; display: flex !important; align-items: center; justify-content: center; gap: 12px; padding: 0 18px !important; margin: 0 !important; border: 0 !important; border-radius: 15px !important; background: var(--ktb-primary) !important; color: #fff !important; font-size: 13px !important; font-weight: 850 !important; cursor: pointer; box-shadow: 0 14px 28px color-mix(in srgb, var(--ktb-primary) 27%, transparent); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.ktb-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 34px color-mix(in srgb, var(--ktb-primary) 33%, transparent); }
.ktb-submit:disabled { opacity: .52; cursor: not-allowed; }
.ktb-submit.is-loading span { animation: ktbPulse 1s infinite; }
.ktb-secure-note { margin: 10px 0 0; text-align: center; color: #7b8781; font-size: 9px; }
.ktb-form-message { padding: 11px 12px; margin: 0 0 12px; border: 1px solid #f0d5aa; border-radius: 11px; background: #fff5e7; color: #89540f; font-size: 11px; }
@keyframes ktbPulse { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* Información premium en dos columnas */
.ktb-tour-details {
  width: 100%;
  margin-top: clamp(58px, 8vw, 104px);
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid #e0e8e3;
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ktb-primary) 9%, transparent), transparent 32%),
    linear-gradient(180deg, #fbfdfc, #f5f8f6);
  box-shadow: 0 26px 75px rgba(21,43,33,.08);
}
.ktb-details-heading { max-width: 800px; margin-bottom: 32px; }
.ktb-details-heading > span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; margin-bottom: 12px; border-radius: 999px; background: #eaf5ef; color: var(--ktb-primary); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ktb-details-heading h2 { margin: 0 !important; color: #14211b !important; font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.02 !important; letter-spacing: -.04em; text-wrap: balance; }
.ktb-details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: clamp(24px, 4vw, 46px); align-items: start; }
.ktb-accordion { display: grid; gap: 14px; min-width: 0; }
.ktb-accordion-item { overflow: hidden; border: 1px solid #dde6e1; border-radius: 21px; background: rgba(255,255,255,.94); box-shadow: 0 10px 32px rgba(22,43,33,.05); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ktb-accordion-item:hover { transform: translateY(-1px); }
.ktb-accordion-item.is-open { border-color: color-mix(in srgb, var(--ktb-primary) 38%, #dce5e0); box-shadow: 0 18px 48px rgba(22,43,33,.09); }
.ktb-accordion-trigger { appearance: none !important; width: 100% !important; min-height: 84px; display: grid !important; grid-template-columns: 46px minmax(0, 1fr) 34px; align-items: center; gap: 15px; padding: 15px 20px !important; margin: 0 !important; border: 0 !important; background: transparent !important; color: #17231e !important; text-align: left; cursor: pointer; font: inherit; }
.ktb-accordion-index { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #edf6f1; color: var(--ktb-primary); font-size: 10px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(47,143,99,.08); }
.ktb-accordion-copy { display: grid; gap: 4px; min-width: 0; }
.ktb-accordion-copy strong { color: #17231e; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.25; }
.ktb-accordion-copy small { color: #7a8780; font-size: 10px; font-weight: 550; }
.ktb-accordion-plus { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #f1f5f3; }
.ktb-accordion-plus::before,
.ktb-accordion-plus::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 2px; border-radius: 2px; background: #34443c; transition: transform .2s ease; }
.ktb-accordion-plus::after { transform: rotate(90deg); }
.ktb-accordion-item.is-open .ktb-accordion-plus { background: var(--ktb-primary); }
.ktb-accordion-item.is-open .ktb-accordion-plus::before,
.ktb-accordion-item.is-open .ktb-accordion-plus::after { background: #fff; }
.ktb-accordion-item.is-open .ktb-accordion-plus::after { transform: rotate(0); }
.ktb-accordion-panel[hidden] { display: none !important; }
.ktb-accordion-content { padding: 3px 24px 28px 81px; }
.ktb-prose { max-width: 760px; padding: 3px 0 2px; color: #53645b; font-size: 15px; line-height: 1.85; }
.ktb-prose p:first-child { margin-top: 0; }
.ktb-prose p:last-child { margin-bottom: 0; }

.ktb-timeline { position: relative; display: grid; gap: 12px; }
.ktb-timeline-step { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; min-height: 78px; padding: 15px; border: 1px solid #e4ebe7; border-radius: 17px; background: #fbfdfc; }
.ktb-timeline-marker { display: inline-flex; align-items: center; justify-content: center; width: 76px; min-height: 38px; align-self: start; padding: 0 9px; border: 1px solid #d7e6de; border-radius: 999px; background: #edf7f1; color: var(--ktb-primary); font-size: 10px; font-weight: 900; text-align: center; }
.ktb-timeline-step strong { display: block; margin: 2px 0 6px; color: #1b2922; font-size: 14px; }
.ktb-timeline-step p { margin: 0; color: #66756d; font-size: 12px; line-height: 1.65; }

.ktb-inclusion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ktb-list-card { min-width: 0; padding: 20px; border: 1px solid #e1e8e4; border-radius: 18px; background: #fbfdfc; }
.ktb-list-recommend { grid-column: 1 / -1; }
.ktb-list-card-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #e8edea; }
.ktb-list-card-head > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-size: 16px; font-weight: 900; }
.ktb-list-card-head h4 { margin: 0 0 3px; color: #1b2922; font-size: 14px; }
.ktb-list-card-head small { display: block; color: #7c8982; font-size: 9px; line-height: 1.4; }
.ktb-list-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ktb-list-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; color: #526159; font-size: 11px; line-height: 1.5; }
.ktb-list-card li > span { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; font-size: 10px; font-weight: 900; }
.ktb-list-card li strong { font-weight: 650; }
.ktb-list-include .ktb-list-card-head > span,
.ktb-list-include li > span { background: #e6f5ed; color: #1f7b50; }
.ktb-list-exclude .ktb-list-card-head > span,
.ktb-list-exclude li > span { background: #fff0ef; color: #c64339; }
.ktb-list-recommend .ktb-list-card-head > span { background: #eef3ff; color: #4169d5; }
.ktb-list-recommend li > span { background: #eef3ff; color: #4169d5; }

.ktb-details-aside { position: sticky; top: 22px; display: grid; gap: 15px; }
.ktb-help-card,
.ktb-trust-card { padding: 25px; border: 1px solid #dde6e1; border-radius: 22px; background: #fff; box-shadow: 0 16px 45px rgba(22,43,33,.075); }
.ktb-help-card { overflow: hidden; background: linear-gradient(145deg, #153929, #24664a); color: #fff; }
.ktb-aside-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 17px; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.12); font-size: 18px; font-weight: 900; }
.ktb-help-card h3,
.ktb-trust-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.28; }
.ktb-help-card h3 { color: #fff; }
.ktb-help-card p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.65; }
.ktb-help-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 19px; border-radius: 14px; background: #fff; color: #173a2b !important; text-decoration: none !important; font-size: 11px; font-weight: 850; transition: transform .18s ease; }
.ktb-help-button:hover { transform: translateY(-1px); }
.ktb-trust-card h3 { color: #17231e; }
.ktb-trust-list { display: grid; gap: 18px; margin-top: 18px; }
.ktb-trust-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.ktb-trust-item > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #edf6f1; color: var(--ktb-primary); font-size: 10px; font-weight: 900; }
.ktb-trust-item strong { display: block; color: #23322a; font-size: 12px; }
.ktb-trust-item p { margin: 4px 0 0; color: #748079; font-size: 10px; line-height: 1.55; }

/* Integración automática en producto WooCommerce */
.ktb-tour-product.single-product div.product .summary { margin-top: 0; }
.ktb-tour-product.single-product div.product > .ktb-gallery { width: 64%; float: left; margin-bottom: 52px; }
.ktb-tour-product.single-product div.product > .summary { width: 32.5%; float: right; }
.ktb-tour-product.single-product div.product > .ktb-tour-details { clear: both; }

@media (max-width: 1120px) {
  .ktb-tour-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 28px; }
  .ktb-gallery-stage { min-height: 390px; }
  .ktb-accordion-content { padding-left: 24px; }
}

@media (max-width: 900px) {
  .ktb-tour-layout,
  .ktb-details-grid { grid-template-columns: 1fr; }
  .ktb-tour-layout-booking,
  .ktb-details-aside { position: static; }
  .ktb-details-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ktb-tour-product.single-product div.product > .ktb-gallery,
  .ktb-tour-product.single-product div.product > .summary { width: 100%; float: none; }
  .ktb-tour-product.single-product div.product > .summary { margin-top: 28px; }
}

@media (max-width: 680px) {
  html.ktb-calendar-is-open { overflow: hidden; }
  html.ktb-calendar-is-open::before { content: ""; position: fixed; inset: 0; z-index: 99997; background: rgba(7,18,12,.5); backdrop-filter: blur(4px); }
  .ktb-tour-hero { width: calc(100vw - 20px); min-height: 350px; border-radius: 22px; }
  .ktb-tour-hero-overlay { background: linear-gradient(0deg, rgba(5,16,11,.9) 0%, rgba(5,16,11,.42) 82%); }
  .ktb-tour-hero-content { width: 100%; padding: 24px; }
  .ktb-tour-hero h1 { font-size: clamp(33px, 10vw, 48px) !important; }
  .ktb-tour-hero p { font-size: 13px; }
  .ktb-gallery-heading { align-items: center; }
  .ktb-gallery-show-all span { display: none; }
  .ktb-gallery-show-all { width: 40px; padding: 0; justify-content: center; }
  .ktb-gallery-stage { min-height: 0; aspect-ratio: 4 / 3; border-radius: 21px; }
  .ktb-gallery-stage-nav { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
  .ktb-gallery-stage-prev { left: 12px; }
  .ktb-gallery-stage-next { right: 12px; }
  .ktb-gallery-stage-meta > span:last-child { display: none; }
  .ktb-gallery-thumb { flex-basis: 88px; width: 88px !important; min-width: 88px !important; height: 66px !important; min-height: 66px !important; border-radius: 13px !important; }
  .ktb-gallery-lightbox { padding: 12px; }
  .ktb-gallery-dialog { height: 88vh; }
  .ktb-gallery-lightbox-image { max-width: 100%; max-height: calc(100% - 70px); border-radius: 15px; }
  .ktb-gallery-nav { width: 44px !important; height: 54px !important; min-width: 44px !important; }
  .ktb-gallery-meta { left: 52px; right: 52px; }
  .ktb-card { border-radius: 21px; padding: 19px; }
  .ktb-card-header { display: block; }
  .ktb-price { margin-top: 12px; text-align: left; }
  .ktb-facts { grid-template-columns: 1fr; }
  .ktb-booking-summary { grid-template-columns: 1fr; align-items: start; }
  .ktb-qty-block { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
  .ktb-calendar {
    position: fixed;
    z-index: 99999;
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 430px;
    max-height: calc(100vh - 20px);
    margin: 0 auto;
    overflow-y: auto;
    border-radius: 22px;
    padding: 15px;
  }
  .ktb-cal-day { min-height: 38px !important; }
  .ktb-tour-details { padding: 24px 17px; border-radius: 24px; }
  .ktb-details-aside { grid-template-columns: 1fr; }
  .ktb-accordion-trigger { min-height: 76px; grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 11px; padding: 13px 14px !important; }
  .ktb-accordion-index { width: 40px; height: 40px; border-radius: 13px; }
  .ktb-accordion-copy small { display: none; }
  .ktb-accordion-content { padding: 2px 14px 20px; }
  .ktb-timeline-step { grid-template-columns: 1fr; gap: 10px; }
  .ktb-timeline-marker { width: auto; justify-self: start; }
  .ktb-inclusion-grid { grid-template-columns: 1fr; }
  .ktb-list-recommend { grid-column: auto; }
  .ktb-list-card ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ktb-tour-hero-link,
  .ktb-gallery-stage-image,
  .ktb-gallery-stage-nav,
  .ktb-gallery-thumb,
  .ktb-submit,
  .ktb-gallery-show-all,
  .ktb-accordion-item,
  .ktb-accordion-plus::after { transition: none !important; }
}
