/* ==========================================================
   PWT Availability Calendar – calendario público
   Identidad Peru Wind Travels: esquinas rectas, sin sombras,
   Archivo + Space Mono + Caveat, naranja #ed6d05
   ========================================================== */

/* ---------- 1. Variables ---------- */
.pwt-cal {
  --pwt-orange: #ed6d05;
  --pwt-brown: #902d14;
  --pwt-orange-light: #ed8d40;
  --pwt-sand: #edae7b;
  --pwt-font-title: 'Archivo', system-ui, sans-serif;
  --pwt-font-mono: 'Space Mono', ui-monospace, monospace;
  --pwt-font-script: 'Caveat', cursive;
  --pwt-ease: .35s ease;

  box-sizing: border-box;
  font-family: var(--pwt-font-title);
  padding: 64px 20px;
  background: var(--pwt-bg);
  color: var(--pwt-text);
}
.pwt-cal *, .pwt-cal *::before, .pwt-cal *::after { box-sizing: border-box; }

/* Tema oscuro (por defecto) */
.pwt-cal--dark {
  --pwt-bg: #222222;
  --pwt-card: #2d2d2d;
  --pwt-line: #3d3d3d;
  --pwt-title: #ffffff;
  --pwt-text: #c9c5c0;
  --pwt-eyebrow: #ed8d40;
  --pwt-un-bg: #3d2b26;
  --pwt-un-text: #90675d;
}
/* Tema claro */
.pwt-cal--light {
  --pwt-bg: #f5e9dc;
  --pwt-card: #ffffff;
  --pwt-line: #e8e4de;
  --pwt-title: #2d2d2d;
  --pwt-text: #6b6660;
  --pwt-eyebrow: #902d14;
  --pwt-un-bg: #ece7e0;
  --pwt-un-text: #a39d95;
}

.pwt-cal__wrap { max-width: 1200px; margin: 0 auto; text-align: left; }

/* ---------- 2. Cabecera ---------- */
.pwt-cal__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 28px;
}
.pwt-cal__eyebrow {
  display: block; margin-bottom: 12px;
  font-family: var(--pwt-font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--pwt-eyebrow);
}
.pwt-cal__title {
  margin: 0; padding-top: 16px; position: relative;
  font-weight: 900; font-size: clamp(28px, 4.5vw, 52px); line-height: 1.05;
  letter-spacing: -.02em; color: var(--pwt-title);
}
.pwt-cal__title::before {
  content: ''; position: absolute; top: 0; left: 0; width: 32px; height: 2px; background: var(--pwt-orange);
  transition: width var(--pwt-ease);
}
.pwt-cal__wrap:hover .pwt-cal__title::before { width: 64px; }

.pwt-cal__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.pwt-cal__field { display: flex; flex-direction: column; gap: 6px; }
.pwt-cal__label {
  font-family: var(--pwt-font-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--pwt-eyebrow);
}
.pwt-cal__select {
  min-width: 240px; max-width: 100%; padding: 12px 14px; border-radius: 0;
  border: 2px solid var(--pwt-line); background: var(--pwt-card); color: var(--pwt-title);
  font-family: var(--pwt-font-title); font-weight: 700; font-size: 15px;
  transition: border-color var(--pwt-ease);
}
.pwt-cal__select:hover, .pwt-cal__select:focus-visible { border-color: var(--pwt-orange); outline: none; }

.pwt-cal__years { display: flex; }
.pwt-cal__year {
  position: relative; overflow: hidden; z-index: 0; cursor: pointer; border-radius: 0;
  padding: 12px 22px; margin-left: -2px;
  border: 2px solid var(--pwt-line); background: transparent; color: var(--pwt-title);
  font-family: var(--pwt-font-title); font-weight: 800; font-size: 14px; letter-spacing: .04em;
  transition: color var(--pwt-ease), border-color var(--pwt-ease);
}
.pwt-cal__year:first-child { margin-left: 0; }
/* relleno que se desliza de izquierda a derecha */
.pwt-cal__year::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pwt-orange);
  transform: translateX(-101%); transition: transform var(--pwt-ease);
}
.pwt-cal__year:hover, .pwt-cal__year:focus-visible, .pwt-cal__year.is-on { border-color: var(--pwt-orange); color: #fff; outline: none; }
.pwt-cal__year:hover::before, .pwt-cal__year:focus-visible::before, .pwt-cal__year.is-on::before { transform: translateX(0); }
.pwt-cal__year:focus-visible { outline: 2px solid var(--pwt-sand); outline-offset: 2px; }

.pwt-cal__yearonly {
  font-weight: 900; font-size: 28px; letter-spacing: -.02em; color: var(--pwt-orange);
}

/* ---------- 3. Leyenda y próxima fecha ---------- */
.pwt-cal__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding: 16px 0; margin-bottom: 28px;
  border-top: 1px solid var(--pwt-line); border-bottom: 1px solid var(--pwt-line);
}
.pwt-cal__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.pwt-cal__legend li {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--pwt-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.pwt-cal__sw { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--pwt-line); }
.pwt-cal__sw--a { background: var(--pwt-orange); border-color: var(--pwt-orange); }
.pwt-cal__sw--u { background: var(--pwt-un-bg); border-color: var(--pwt-un-bg); position: relative; }
.pwt-cal__sw--u::after { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 1px; background: var(--pwt-un-text); }
.pwt-cal__sw--n { background: transparent; }

.pwt-cal__next { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pwt-cal__nextlabel {
  font-family: var(--pwt-font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pwt-eyebrow);
}
.pwt-cal__next strong { color: var(--pwt-title); font-weight: 800; }

/* ---------- 4. Meses ---------- */
.pwt-cal__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px)  { .pwt-cal__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pwt-cal__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .pwt-cal__grid { grid-template-columns: repeat(4, 1fr); } }

.pwt-cal__month {
  padding: 18px 16px 16px; background: var(--pwt-card); border: 1px solid var(--pwt-line);
  transition: border-color var(--pwt-ease), transform var(--pwt-ease);
}
.pwt-cal__month:hover { border-color: var(--pwt-orange); transform: translateY(-4px); }

.pwt-cal__mname {
  margin: 0 0 12px; padding: 0; position: relative; padding-top: 12px;
  font-family: var(--pwt-font-title); font-weight: 800; font-size: 18px; line-height: 1.1;
  letter-spacing: -.02em; text-transform: capitalize; color: var(--pwt-title);
}
.pwt-cal__mname::before {
  content: ''; position: absolute; top: 0; left: 0; width: 24px; height: 2px; background: var(--pwt-orange);
  transition: width var(--pwt-ease);
}
.pwt-cal__month:hover .pwt-cal__mname::before { width: 48px; }

.pwt-cal__wd, .pwt-cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pwt-cal__wd span {
  text-align: center; padding: 2px 0 6px;
  font-family: var(--pwt-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--pwt-eyebrow);
}

.pwt-cal__day {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
  font-size: 13px; font-weight: 500; color: var(--pwt-text); cursor: default;
  transition: background var(--pwt-ease), color var(--pwt-ease);
}
.pwt-cal__day.is-a { background: var(--pwt-orange); color: #fff; font-weight: 800; }
.pwt-cal__day.is-u { background: var(--pwt-un-bg); color: var(--pwt-un-text); text-decoration: line-through; }
.pwt-cal__day.is-today { outline: 2px solid var(--pwt-sand); outline-offset: -2px; color: var(--pwt-title); font-weight: 800; }
.pwt-cal__day.is-a.is-today { color: #fff; }
.pwt-cal__day.is-past { opacity: .4; }
.pwt-cal__day.is-a:hover { background: var(--pwt-brown); }

/* ---------- 5. Enlace de acción ---------- */
.pwt-cal__link {
  display: inline-block; margin-top: 36px; padding-bottom: 6px; text-decoration: none;
  font-family: var(--pwt-font-title); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pwt-title);
  background: linear-gradient(var(--pwt-orange), var(--pwt-orange)) left bottom / 40% 2px no-repeat;
  transition: background-size var(--pwt-ease), color var(--pwt-ease);
}
.pwt-cal__arrow { display: inline-block; transition: transform var(--pwt-ease); }
.pwt-cal__link:hover, .pwt-cal__link:focus-visible { background-size: 100% 2px; color: var(--pwt-orange); outline: none; }
.pwt-cal__link:hover .pwt-cal__arrow, .pwt-cal__link:focus-visible .pwt-cal__arrow { transform: translateX(6px); }
.pwt-cal__link:focus-visible { outline: 2px solid var(--pwt-orange); outline-offset: 6px; }

/* ---------- 6. Móvil ---------- */
@media (max-width: 600px) {
  .pwt-cal { padding: 48px 16px; }
  .pwt-cal__select { min-width: 100%; }
  .pwt-cal__field { width: 100%; }
}

/* ---------- 7. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .pwt-cal *, .pwt-cal *::before, .pwt-cal *::after { transition: none !important; }
  .pwt-cal__month:hover { transform: none; }
}

/* ==========================================================
   8. LISTA DE SALIDAS  [pwt_tours_table]
   Fila: fecha | imagen | tipo + título + destinos | duración | disponibilidad | precio | botones (View more / Book now)
   ========================================================== */
.pwt-cal--dark  { --pwt-hover: #2d2d2d; --pwt-price: #ed8d40; --pwt-spots: #ed8d40; --pwt-led-a: #6fbf8a; }
.pwt-cal--light { --pwt-hover: #ffffff; --pwt-price: #902d14; --pwt-spots: #b85003; --pwt-led-a: #3f8a5c; }

.pwt-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Cabecera y pestañas ---------- */
.pwt-tbl__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 20px 24px; margin-bottom: 28px;
}
.pwt-tbl__title {
  margin: 0; padding: 16px 0 0; position: relative;
  font-family: var(--pwt-font-title); font-weight: 900; font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -.02em; color: var(--pwt-title);
}
.pwt-tbl__title::before {
  content: ''; position: absolute; top: 0; left: 0; width: 32px; height: 2px; background: var(--pwt-orange);
  transition: width var(--pwt-ease);
}
.pwt-tbl__head:hover .pwt-tbl__title::before { width: 64px; }
.pwt-tbl__head .pwt-cal__years { margin-left: auto; }

/* Sin JS los años se apilan; con JS son pestañas */
.pwt-tbl .pwt-cal__years { display: none; }
.pwt-tbl.is-js .pwt-cal__years { display: flex; }
.pwt-tbl__yearlabel {
  margin: 28px 0 12px; font-family: var(--pwt-font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--pwt-eyebrow);
}
.pwt-tbl.is-js .pwt-tbl__yearlabel { display: none; }
.pwt-tbl__panel[hidden] { display: none; }
.pwt-tbl__empty { margin: 0; padding: 32px 0; border-top: 1px solid var(--pwt-line); border-bottom: 1px solid var(--pwt-line); }

/* ---------- Filas ---------- */
.pwt-tbl__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pwt-line); }
.pwt-tbl__row {
  --pwt-cols: 112px minmax(0, 1fr) 140px 160px 132px;
  position: relative; display: grid; grid-template-columns: var(--pwt-cols); align-items: center;
  gap: 0 20px; margin: 0; padding: 14px 20px 14px 22px;
  border-bottom: 1px solid var(--pwt-line); transition: background var(--pwt-ease);
}
.pwt-tbl--side .pwt-tbl__row { --pwt-cols: 112px 88px minmax(0, 1fr) 140px 160px 132px; }
.pwt-tbl--price .pwt-tbl__row { --pwt-cols: 112px minmax(0, 1fr) 140px 160px 108px 132px; }
.pwt-tbl--side.pwt-tbl--price .pwt-tbl__row { --pwt-cols: 112px 88px minmax(0, 1fr) 140px 160px 108px 132px; }

.pwt-tbl__row:hover, .pwt-tbl__row:focus-within { background: var(--pwt-hover); }
/* línea naranja que crece al pasar el mouse */
.pwt-tbl__row::before {
  content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 3px; background: var(--pwt-orange);
  transform: scaleY(0); transition: transform .4s ease;
}
.pwt-tbl__row:hover::before, .pwt-tbl__row:focus-within::before { transform: scaleY(1); }

/* Fecha / período */
.pwt-tbl__date--months {
  display: flex; align-items: center; min-height: 100%;
}
.pwt-tbl__period {
  display: block;
  font-family: var(--pwt-font-mono); font-size: 13px; font-weight: 700; line-height: 1.45;
  letter-spacing: .18em; text-transform: uppercase; color: var(--pwt-orange);
}
.pwt-tbl__dash { display: block; width: 14px; height: 1px; background: var(--pwt-text); opacity: .6; }

/* Imagen al lado */
.pwt-tbl__thumb { display: block; width: 96px; height: 68px; overflow: hidden; background: #2d2d2d; }
.pwt-tbl__thumb--empty { background: var(--pwt-line); }
.pwt-tbl__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pwt-tbl__row:hover .pwt-tbl__thumb img { transform: scale(1.08); }

/* Tipo + título + destinos */
.pwt-tbl__type {
  display: block; margin-bottom: 6px;
  font-family: var(--pwt-font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--pwt-eyebrow);
}
.pwt-tbl__name {
  margin: 0; font-family: var(--pwt-font-title); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1; letter-spacing: -.02em; color: var(--pwt-title);
}
.pwt-tbl__name a { color: inherit; text-decoration: none; transition: color var(--pwt-ease); }
.pwt-tbl__row:hover .pwt-tbl__name a, .pwt-tbl__name a:focus-visible { color: var(--pwt-orange); }
.pwt-tbl__name a:focus-visible { outline: 2px solid var(--pwt-orange); outline-offset: 4px; }
.pwt-tbl__dest { display: flex; flex-wrap: wrap; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--pwt-text); }
.pwt-tbl__dest li { margin: 0; padding: 0; }
.pwt-tbl__dest li + li::before { content: '·'; margin: 0 8px; }

/* Duración y precio */
.pwt-tbl__dur, .pwt-tbl__price { padding: 4px 0 4px 20px; border-left: 1px solid var(--pwt-line); line-height: 1.35; }
.pwt-tbl__dur strong, .pwt-tbl__price strong { display: block; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--pwt-title); }
.pwt-tbl__dur span:last-child { display: block; font-size: 13px; color: var(--pwt-text); }
.pwt-tbl__label {
  display: block; margin-bottom: 5px;
  font-family: var(--pwt-font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--pwt-text);
}
.pwt-tbl__amount { color: var(--pwt-price) !important; white-space: nowrap; }
.pwt-tbl__cur { font-family: var(--pwt-font-mono); font-size: 10px; letter-spacing: .15em; color: var(--pwt-text); }

/* Disponibilidad */
.pwt-tbl__av {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--pwt-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pwt-text);
}
.pwt-tbl__led { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.pwt-tbl__av--available { --c: var(--pwt-led-a); }
.pwt-tbl__av--spots { --c: var(--pwt-orange); }
.pwt-tbl__av--spots span { color: var(--pwt-spots); }
.pwt-tbl__av--full { --c: #90675d; }
.pwt-tbl__row--full .pwt-tbl__date, .pwt-tbl__row--full .pwt-tbl__thumb, .pwt-tbl__row--full .pwt-tbl__maintext { opacity: .55; }

/* En escritorio los grupos no existen visualmente: sus hijos son columnas de la fila */
.pwt-tbl__meta, .pwt-tbl__info { display: contents; }

/* Botones: View more + Book now */
.pwt-tbl__act { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pwt-tbl__btn {
  position: relative; z-index: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 100%; min-height: 38px; padding: 8px 12px; margin: 0; border: 1px solid var(--pwt-text); border-radius: 0;
  background: transparent; color: var(--pwt-title); cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap;
  font-family: var(--pwt-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase;
  transition: color var(--pwt-ease), border-color var(--pwt-ease), background-color var(--pwt-ease);
}
/* View more: contorno, se llena de naranja al pasar el mouse */
.pwt-tbl__btn--more::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pwt-orange);
  transform: translateX(-101%); transition: transform var(--pwt-ease);
}
.pwt-tbl__btn--more:hover, .pwt-tbl__btn--more:focus-visible { color: #fff; border-color: var(--pwt-orange); }
.pwt-tbl__btn--more:hover::before, .pwt-tbl__btn--more:focus-visible::before { transform: translateX(0); }
/* Book now: naranja sólido */
.pwt-tbl__btn--book { background: var(--pwt-orange); border-color: var(--pwt-orange); color: #fff; }
.pwt-tbl__btn--book:hover, .pwt-tbl__btn--book:focus-visible { background: var(--pwt-brown); border-color: var(--pwt-brown); color: #fff; }
.pwt-tbl__btn.is-disabled, .pwt-tbl__btn[aria-disabled="true"] {
  background: transparent; border-color: var(--pwt-line); color: var(--pwt-un-text, var(--pwt-text)); opacity: .6; cursor: not-allowed; pointer-events: none;
}
.pwt-tbl__btn:focus-visible { outline: 2px solid var(--pwt-orange); outline-offset: 3px; }

/* ---------- Imagen de fondo del título (con overlay oscuro) ---------- */
.pwt-tbl__main { position: relative; min-width: 0; }
.pwt-tbl__maintext { position: relative; z-index: 2; }
.pwt-tbl--background .pwt-tbl__main--bg {
  align-self: stretch; margin: -14px 0; padding: 22px 20px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; min-height: 112px; background: #2d2d2d;
}
.pwt-tbl__bgimg {
  position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease;
}
.pwt-tbl__main--bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(34, 34, 34, .64); transition: background .4s ease;
}
.pwt-tbl__row:hover .pwt-tbl__bgimg { transform: scale(1.06); }
.pwt-tbl__row:hover .pwt-tbl__main--bg::after { background: rgba(34, 34, 34, .5); }
.pwt-tbl__main--bg .pwt-tbl__type { color: var(--pwt-sand); }
.pwt-tbl__main--bg .pwt-tbl__name, .pwt-tbl__main--bg .pwt-tbl__name a { color: #fff; }
.pwt-tbl__main--bg .pwt-tbl__dest { color: #e0dcd7; }
.pwt-tbl__row:hover .pwt-tbl__main--bg .pwt-tbl__name a, .pwt-tbl__main--bg .pwt-tbl__name a:focus-visible { color: var(--pwt-sand); }

/* ---------- Responsive: SIEMPRE una sola fila horizontal por salida ----------
   - más de 1280px (escritorio): fecha | imagen | título | duración | estado | precio | botones
   - hasta 1280px  (tablet):     misma línea, columnas más compactas, botones apilados
   - hasta 860px   (móvil):      banda compacta; duración y estado debajo del título, el precio a la derecha
                                 y los dos botones lado a lado en una fila inferior a todo el ancho.
   Los anchos se escalan con clamp() para que se adapte a cualquier pantalla. */

/* etiquetas "Duración / Precio": solo para lectores de pantalla en tablet y móvil */
@media (max-width: 1280px) {
  .pwt-tbl__dur .pwt-tbl__label, .pwt-tbl__price .pwt-tbl__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* ===== Tablet: una línea con todas las columnas ===== */
@media (max-width: 1280px) {
  .pwt-tbl__row {
    --pwt-areas: "date main info act";
    --pwt-cols: 56px minmax(0, 1fr) 124px 116px;
    grid-template-columns: var(--pwt-cols); grid-template-areas: var(--pwt-areas);
    gap: 0 16px; padding: 14px 14px 14px 18px;
  }
  .pwt-tbl--price .pwt-tbl__row {
    --pwt-areas: "date main info price act";
    --pwt-cols: 56px minmax(0, 1fr) 124px 84px 116px;
  }
  .pwt-tbl--side .pwt-tbl__row {
    --pwt-areas: "date thumb main info act";
    --pwt-cols: 56px 72px minmax(0, 1fr) 124px 116px;
  }
  .pwt-tbl--side.pwt-tbl--price .pwt-tbl__row {
    --pwt-areas: "date thumb main info price act";
    --pwt-cols: 56px 72px minmax(0, 1fr) 124px 84px 116px;
  }

  .pwt-tbl__date  { grid-area: date; }
  .pwt-tbl__thumb { grid-area: thumb; width: 72px; height: 56px; }
  .pwt-tbl__main  { grid-area: main; }
  .pwt-tbl__info  { grid-area: info; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--pwt-line); }
  .pwt-tbl__price { grid-area: price; padding-left: 16px; }
  .pwt-tbl__act   { grid-area: act; }

  /* período por meses */
  .pwt-tbl__period { font-size: 11px; letter-spacing: .14em; }

  .pwt-tbl__dur   { padding: 0; border-left: 0; }
  .pwt-tbl__dur strong, .pwt-tbl__price strong { font-size: 16px; }
  .pwt-tbl__dur span:last-child { font-size: 12px; }
  .pwt-tbl__av    { gap: 10px; font-size: 10px; letter-spacing: .08em; }
  .pwt-tbl__name  { font-size: clamp(18px, 2.4vw, 22px); }
  .pwt-tbl__dest  { font-size: 13px; margin-top: 6px; }
  .pwt-tbl__btn   { min-height: 36px; padding: 7px 8px; font-size: 10px; letter-spacing: .1em; }

  .pwt-tbl--background .pwt-tbl__main--bg { min-height: 96px; padding: 18px 16px; }
  .pwt-tbl__head .pwt-cal__years { margin-left: 0; }
}

/* ===== Móvil: una sola banda compacta + fila de botones ===== */
@media (max-width: 860px) {
  .pwt-tbl__row {
    --pwt-d: clamp(40px, 11vw, 56px);     /* columna fecha  */
    --pwt-t: clamp(52px, 15vw, 88px);     /* columna imagen */
    --pwt-r: clamp(68px, 18vw, 96px);     /* columna precio */
    --pwt-areas: "date main" "date info" "act act";
    --pwt-cols: var(--pwt-d) minmax(0, 1fr);
    grid-template-rows: auto auto auto; align-items: start;
    column-gap: clamp(8px, 2.6vw, 14px); row-gap: 8px;
    padding: 14px 12px 14px 16px;
  }
  .pwt-tbl__row:nth-child(odd) { background: #f7f3ed; }
  .pwt-tbl__row:nth-child(even) { background: #fff; }
  .pwt-tbl__row::before { transform: scaleY(1); opacity: .35; }
  .pwt-tbl--price .pwt-tbl__row {
    --pwt-areas: "date main price" "date info price" "act act act";
    --pwt-cols: var(--pwt-d) minmax(0, 1fr) var(--pwt-r);
  }
  .pwt-tbl--side .pwt-tbl__row {
    --pwt-areas: "date thumb main" "date thumb info" "act act act";
    --pwt-cols: var(--pwt-d) var(--pwt-t) minmax(0, 1fr);
  }
  .pwt-tbl--side.pwt-tbl--price .pwt-tbl__row {
    --pwt-areas: "date thumb main price" "date thumb info price" "act act act act";
    --pwt-cols: var(--pwt-d) var(--pwt-t) minmax(0, 1fr) var(--pwt-r);
  }

  .pwt-tbl__thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; align-self: start; }
  .pwt-tbl__date, .pwt-tbl__thumb { align-self: start; }

  /* período */
  .pwt-tbl__period { font-size: clamp(9px, 2.6vw, 11px); letter-spacing: .1em; }

  /* título */
  .pwt-tbl__type  { margin-bottom: 3px; font-size: 8px; letter-spacing: .14em; line-height: 1.3; }
  .pwt-tbl__name  { font-size: clamp(15px, 4.2vw, 21px); line-height: 1.12; overflow-wrap: anywhere; }
  .pwt-tbl__dest  { display: none; }
  .pwt-tbl__dest li + li::before { margin: 0 5px; }

  /* duración + estado: una línea debajo del título */
  .pwt-tbl__info {
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start;
    gap: 4px 12px; padding: 0; border-left: 0;
  }
  .pwt-tbl__dur   { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
  .pwt-tbl__dur strong { display: inline; font-size: 13px; }
  .pwt-tbl__dur span:last-child { display: inline; font-size: 12px; }
  .pwt-tbl__dur span:last-child::before { content: '·'; margin-right: 6px; }
  .pwt-tbl__av    { gap: 8px; font-size: 9px; letter-spacing: .06em; }
  .pwt-tbl__led   { width: 8px; height: 8px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); margin: 0 2px; }

  /* precio: columna derecha, arriba */
  .pwt-tbl__price { padding: 0; border-left: 0; text-align: right; align-self: start; }
  .pwt-tbl__price strong { font-size: clamp(14px, 3.8vw, 18px); }
  .pwt-tbl__cur   { display: block; margin-top: 2px; font-size: 9px; line-height: 1; }

  /* botones: fila inferior, lado a lado, a todo el ancho */
  .pwt-tbl__act   { flex-direction: row; gap: 8px; margin-top: 2px; }
  .pwt-tbl__btn   { flex: 1 1 0; width: auto; min-height: 40px; font-size: 11px; }

  /* imagen de fondo: cubre la parte superior del bloque del título */
  .pwt-tbl--background .pwt-tbl__main--bg {
    margin: -14px 0 0; padding: 14px 12px; min-height: 0; align-self: start;
  }

  /* un poco más de ancho útil en pantallas chicas */
  .pwt-tbl.pwt-cal { padding-left: 10px; padding-right: 10px; }
}

/* móvil grande / tablet chica: botones de ancho cómodo, alineados a la derecha */
@media (min-width: 561px) and (max-width: 860px) {
  .pwt-tbl__act { justify-content: flex-end; }
  .pwt-tbl__btn { flex: 0 0 170px; }
}

@media (max-width: 420px) {
  .pwt-tbl__dur span:last-child { display: none; }  /* pantallas angostas: solo "16 Days" (las noches ya van en el título) */
}
@media (max-width: 380px) {
  .pwt-tbl__row { padding: 12px 10px 12px 14px; }
  .pwt-tbl__dest { font-size: 11.5px; }
  .pwt-tbl__btn { font-size: 10px; letter-spacing: .08em; padding: 7px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .pwt-tbl__row::before, .pwt-tbl__bgimg, .pwt-tbl__thumb img, .pwt-tbl__btn, .pwt-tbl__btn--more::before { transition: none !important; }
  .pwt-tbl__row:hover .pwt-tbl__bgimg, .pwt-tbl__row:hover .pwt-tbl__thumb img { transform: none; }
}

/* ==========================================================
   9. SISTEMA DE RESERVAS [pwt_booking]
   ========================================================== */
.pwt-book { --pwt-b-line:#dedbd6; --pwt-b-soft:#f7f5f1; --pwt-b-ink:#24211f; --pwt-b-accent:#ed6d05; max-width:1180px; margin:0 auto; color:var(--pwt-b-ink); font-family:var(--pwt-font-title); }
.pwt-book *, .pwt-book *::before, .pwt-book *::after { box-sizing:border-box; }
.pwt-book__hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr); gap:32px; align-items:stretch; margin-bottom:42px; border:1px solid var(--pwt-b-line); background:#fff; }
.pwt-book__hero-text { padding:34px; }
.pwt-book__eyebrow { display:block; margin-bottom:10px; font-family:var(--pwt-font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--pwt-b-accent); }
.pwt-book__title { margin:0 0 18px; font-size:clamp(30px,5vw,54px); line-height:1.02; letter-spacing:-.03em; color:var(--pwt-b-ink); }
.pwt-book__facts { display:flex; flex-wrap:wrap; gap:10px 24px; color:#605a55; font-size:14px; }
.pwt-book__facts strong { color:var(--pwt-b-ink); }
.pwt-book__image { min-height:260px; overflow:hidden; background:var(--pwt-b-soft); }
.pwt-book__image img { width:100%; height:100%; object-fit:cover; display:block; }
.pwt-book__dates h2, .pwt-book__formbox h2 { margin:0 0 18px; font-size:clamp(24px,3vw,36px); color:var(--pwt-b-ink); }
.pwt-book__tablewrap { overflow-x:auto; border:1px solid var(--pwt-b-line); background:#fff; }
.pwt-book__table { width:100%; border-collapse:collapse; min-width:720px; }
.pwt-book__table th { padding:13px 16px; text-align:left; font-family:var(--pwt-font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:#766f69; background:var(--pwt-b-soft); border-bottom:1px solid var(--pwt-b-line); }
.pwt-book__table td { padding:16px; border-bottom:1px solid var(--pwt-b-line); vertical-align:middle; }
.pwt-book__table tr:last-child td { border-bottom:0; }
.pwt-book__table tr.is-full { opacity:.58; }
.pwt-book__btn, .pwt-book__submit, .pwt-booking-link { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:10px 18px; border:1px solid var(--pwt-b-accent); background:var(--pwt-b-accent); color:#fff !important; text-decoration:none; font-weight:800; cursor:pointer; transition:transform .2s ease, opacity .2s ease, background .2s ease; }
.pwt-book__btn:hover, .pwt-book__submit:hover, .pwt-booking-link:hover { transform:translateY(-1px); background:#b85003; border-color:#b85003; }
.pwt-book__btn.is-selected { outline:3px solid rgba(237,109,5,.2); }
.pwt-book__btn.is-disabled { cursor:not-allowed; background:#aaa29b; border-color:#aaa29b; }
.pwt-book__formbox { scroll-margin-top:40px; margin-top:42px; padding:28px; border:1px solid var(--pwt-b-line); background:var(--pwt-b-soft); }
.pwt-book__selected { display:flex; flex-wrap:wrap; gap:8px 18px; margin-bottom:22px; padding:14px 16px; background:#fff; border-left:3px solid var(--pwt-b-accent); }
.pwt-book__selected strong { width:100%; }
.pwt-book__fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.pwt-book__fields label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:700; }
.pwt-book__fields input, .pwt-book__fields textarea { width:100%; min-height:46px; padding:10px 12px; border:1px solid #cfcac4; background:#fff; color:#24211f; font:inherit; }
.pwt-book__fields textarea { min-height:110px; resize:vertical; }
.pwt-book__wide { grid-column:1/-1; }
.pwt-book__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.pwt-book__submit--email { background:#2d2d2d; border-color:#2d2d2d; }
.pwt-book__submit--wa { background:#14833b; border-color:#14833b; }
.pwt-book__notice { margin-bottom:24px; padding:14px 16px; border-left:4px solid; background:#fff; }
.pwt-book__notice--ok { border-color:#2b8a4b; }
.pwt-book__notice--error { border-color:#b42318; }
.pwt-book__hp { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; }
.pwt-book__tourlist { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.pwt-book__tourchoice { display:flex; flex-direction:column; gap:12px; min-height:120px; padding:20px; border:1px solid var(--pwt-b-line); background:#fff; color:var(--pwt-b-ink); text-decoration:none; }
.pwt-book__tourchoice span { color:var(--pwt-b-accent); font-weight:800; }
/* Botón shortcode dentro de la página interna del tour.
   Mismo color/hover que RESERVA AHORA del listado y ancho completo del widget. */
a.pwt-booking-link.pwt-tbl__btn {
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:50px !important;
  margin:10px 0 0 !important;
  padding:12px 16px !important;
  border:1px solid #ed6d05 !important;
  border-radius:0 !important;
  background:#ed6d05 !important;
  color:#ffffff !important;
  box-shadow:none !important;
  opacity:1 !important;
  visibility:visible !important;
  font-family:'Space Mono', ui-monospace, monospace !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:.12em !important;
  line-height:1.2 !important;
  text-align:center !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  cursor:pointer !important;
  transition:background-color .35s ease,border-color .35s ease,color .35s ease !important;
}
a.pwt-booking-link.pwt-tbl__btn:hover,
a.pwt-booking-link.pwt-tbl__btn:focus,
a.pwt-booking-link.pwt-tbl__btn:focus-visible {
  transform:none !important;
  background:#902d14 !important;
  border-color:#902d14 !important;
  color:#ffffff !important;
}
a.pwt-booking-link.pwt-tbl__btn:focus-visible {
  outline:2px solid #ed6d05 !important;
  outline-offset:3px !important;
}

@media (max-width:760px) {
  .pwt-book__hero { grid-template-columns:1fr; }
  .pwt-book__image { min-height:220px; order:-1; }
  .pwt-book__hero-text, .pwt-book__formbox { padding:20px; }
  .pwt-book__fields { grid-template-columns:1fr; }
  .pwt-book__wide { grid-column:auto; }
  .pwt-book__table { min-width:0; }
  .pwt-book__table thead { display:none; }
  .pwt-book__table, .pwt-book__table tbody, .pwt-book__table tr, .pwt-book__table td { display:block; width:100%; }
  .pwt-book__table tr { padding:8px 0; border-bottom:1px solid var(--pwt-b-line); }
  .pwt-book__table td { display:grid; grid-template-columns:120px 1fr; gap:10px; padding:9px 14px; border:0; }
  .pwt-book__table td::before { content:attr(data-label); font-family:var(--pwt-font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:#766f69; }
}

/* ---------- Reservas v1.5.0: años, pasajeros y total ---------- */
.pwt-book {
  --pwt-font-title:'Archivo',system-ui,sans-serif;
  --pwt-font-mono:'Space Mono',ui-monospace,monospace;
}
.pwt-book__dateshead {
  display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px 24px; margin-bottom:18px;
}
.pwt-book__dateshead h2 { margin:0; }
.pwt-book__years { display:flex; flex-wrap:wrap; }
.pwt-book__year {
  display:inline-flex; align-items:center; justify-content:center; min-width:72px; min-height:42px; padding:8px 15px;
  margin-left:-1px; border:1px solid var(--pwt-b-line); background:#fff; color:var(--pwt-b-ink); text-decoration:none;
  font-family:var(--pwt-font-mono); font-size:12px; font-weight:700; letter-spacing:.08em;
}
.pwt-book__year:first-child { margin-left:0; }
.pwt-book__year:hover, .pwt-book__year:focus-visible, .pwt-book__year.is-on { background:var(--pwt-b-accent); border-color:var(--pwt-b-accent); color:#fff; }
.pwt-book__total { margin-left:auto; }
.pwt-book__passengers { display:flex; flex-direction:column; gap:10px; padding:16px; border:1px solid var(--pwt-b-line); background:#fff; }
.pwt-book__passengers > strong { font-size:14px; }
.pwt-book__passengers [data-pwt-passenger-names] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; }
.pwt-book__passenger { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:700; }
.pwt-book__passenger input { width:100%; min-height:46px; padding:10px 12px; border:1px solid #cfcac4; background:#fff; color:#24211f; font:inherit; }
.pwt-book__fineprint { margin:14px 0 0; color:#6b6660; font-size:12px; line-height:1.55; }
@media (max-width:760px) {
  .pwt-book__dateshead { align-items:flex-start; }
  .pwt-book__years { width:100%; }
  .pwt-book__year { flex:1 1 auto; }
  .pwt-book__passengers [data-pwt-passenger-names] { grid-template-columns:1fr; }
  .pwt-book__total { width:100%; margin-left:0; }
}

/* ---------- Reservas v1.5.0: estados, éxito y formulario profesional ---------- */
.pwt-book__availability { display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:13px; }
.pwt-book__availability i { width:9px; height:9px; border-radius:50%; background:#3f8a5c; box-shadow:0 0 0 5px rgba(63,138,92,.12); }
.pwt-book__availability--few { color:#b85003; }
.pwt-book__availability--few i { background:#ed6d05; box-shadow:0 0 0 5px rgba(237,109,5,.14); }
.pwt-book__availability--full { color:#9a3c2f; }
.pwt-book__availability--full i { background:#9a3c2f; box-shadow:0 0 0 5px rgba(154,60,47,.12); }
.pwt-book__formintro { max-width:760px; margin:-8px 0 22px; color:#6b6660; line-height:1.6; }
.pwt-book__terms { display:flex !important; flex-direction:row !important; align-items:flex-start; gap:10px !important; padding:14px 16px; background:#fff; border:1px solid var(--pwt-b-line); font-weight:500 !important; line-height:1.5; }
.pwt-book__terms input { width:18px !important; height:18px !important; min-height:0 !important; margin-top:2px; flex:0 0 auto; accent-color:var(--pwt-b-accent); }
.pwt-book__actions { align-items:stretch; }
.pwt-book__submit { min-width:220px; }
.pwt-book__btn--secondary { background:#fff; color:var(--pwt-b-ink) !important; border-color:var(--pwt-b-ink); }
.pwt-book__btn--secondary:hover { color:#fff !important; }
.pwt-book__success { display:grid; grid-template-columns:auto 1fr; gap:20px; margin:0 0 34px; padding:26px 28px; border:1px solid #bedfc9; border-left:5px solid #2b8a4b; background:#f5fbf7; }
.pwt-book__success-icon { display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background:#2b8a4b; color:#fff; font-size:26px; font-weight:900; }
.pwt-book__success h2 { margin:0 0 8px; font-size:clamp(24px,3vw,34px); }
.pwt-book__success p { margin:7px 0; line-height:1.6; }
.pwt-book__success-code { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin-top:16px !important; }
.pwt-book__success-code span { font-family:var(--pwt-font-mono); font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:#6b6660; }
.pwt-book__success-code strong { font-size:19px; }
.pwt-book__success-note { max-width:820px; padding:12px 14px; background:#fff; border-left:3px solid var(--pwt-b-accent); }
.pwt-book__success-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
@media (max-width:760px) {
  .pwt-book__success { grid-template-columns:1fr; padding:20px; }
  .pwt-book__success-icon { width:42px; height:42px; }
  .pwt-book__submit, .pwt-book__success-actions .pwt-book__btn { width:100%; min-width:0; }
  .pwt-book__table tr { margin-bottom:12px; background:#fff; }
  .pwt-book__tablewrap { border:0; background:transparent; overflow:visible; }
  .pwt-book__table td:last-child { padding-bottom:16px; }
  .pwt-book__table .pwt-book__btn { width:100%; }
}

.pwt-book__field { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:700; }
.pwt-book__fields .pwt-cc__number { padding:0 12px; }

/* Columna de meses: el período en una sola fila y debajo cuántas salidas hay */
.pwt-tbl__date--months { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.pwt-tbl__period { white-space: nowrap; }
.pwt-tbl__count { display: block; white-space: nowrap; font-family: var(--pwt-font-mono); font-size: 10px; letter-spacing: .06em; line-height: 1.3; color: var(--pwt-text); }
@media (max-width: 1280px) {
  .pwt-tbl__row { --pwt-cols: 84px minmax(0, 1fr) 124px 116px; }
  .pwt-tbl--price .pwt-tbl__row { --pwt-cols: 84px minmax(0, 1fr) 124px 84px 116px; }
  .pwt-tbl--side .pwt-tbl__row { --pwt-cols: 84px 72px minmax(0, 1fr) 124px 116px; }
  .pwt-tbl--side.pwt-tbl--price .pwt-tbl__row { --pwt-cols: 84px 72px minmax(0, 1fr) 124px 84px 116px; }
  .pwt-tbl__period { letter-spacing: .08em; }
  .pwt-tbl__count { font-size: 9px; letter-spacing: .02em; }
}
@media (max-width: 860px) {
  .pwt-tbl__row { --pwt-d: clamp(62px, 17vw, 80px); }
  .pwt-tbl__row { --pwt-cols: var(--pwt-d) minmax(0, 1fr); }
  .pwt-tbl--price .pwt-tbl__row { --pwt-cols: var(--pwt-d) minmax(0, 1fr) var(--pwt-r); }
  .pwt-tbl--side .pwt-tbl__row { --pwt-cols: var(--pwt-d) var(--pwt-t) minmax(0, 1fr); }
  .pwt-tbl--side.pwt-tbl--price .pwt-tbl__row { --pwt-cols: var(--pwt-d) var(--pwt-t) minmax(0, 1fr) var(--pwt-r); }

  .pwt-tbl__period { letter-spacing: .02em; }
  .pwt-tbl__count { font-size: 8.5px; letter-spacing: 0; }
}

/* Filtro por meses en la página de fechas */
.pwt-book__months { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pwt-book__month { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 8px 14px; border: 1px solid var(--pwt-b-line); border-radius: 999px; background: #fff; color: var(--pwt-b-ink); cursor: pointer; font-family: var(--pwt-font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; transition: background-color .2s, border-color .2s, color .2s; }
.pwt-book__month small { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(47, 47, 47, .08); font-size: 10px; letter-spacing: 0; }
.pwt-book__month:hover { border-color: var(--pwt-b-accent); color: var(--pwt-b-ink); background: #fff; }
.pwt-book__month.is-on { background: var(--pwt-b-accent); border-color: var(--pwt-b-accent); color: #fff; }
.pwt-book__month.is-on small { background: rgba(255, 255, 255, .28); }
.pwt-book__month:focus-visible { outline: 2px solid var(--pwt-b-accent); outline-offset: 3px; }
.pwt-book__table tr[hidden] { display: none !important; }
/* En celular las etiquetas salen por CSS y el traductor no las toca: versión en español propia */
@media (max-width: 760px) { html[lang^="es"] .pwt-book__table td[data-label-es]::before { content: attr(data-label-es); } }
