/* Planificador del Camino: los colores y letras de chorroecolodge.com (styles/theme-chorro.css). */
:root {
  color-scheme: light;
  --ink: #1E2A21;
  --navy: #2A3B2E;
  --paper: #FFFFFF;
  --tint-sun: #F3F0E2;
  --tint-river: #E9EEE2;
  --line: #CDD5C6;
  --accent: #B3261E;
  --yellow: #FFE600;
  --wa: #25D366;
  --wa-ink: #0B2B17;
  --muted: #55625A;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Mulish, 'Trebuchet MS', 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: var(--yellow); color: var(--navy); padding: 10px 16px; }

/* encabezado */
.top { background: var(--navy); color: #fff; }
.top__in { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter); }
.kicker { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.title { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.1; }
.lead { margin: 12px 0 0; max-width: 40em; font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; }
.lang { display: inline-flex; margin-top: 20px; border: 1px solid rgba(255,255,255,.5); }
.lang__b { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: #fff; cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.lang__b[aria-pressed="true"] { background: var(--yellow); color: var(--navy); }

/* plan: una columna en teléfono, dos en computadora */
.plan { max-width: 1180px; margin: 0 auto; padding: 24px var(--gutter) 120px; display: grid; gap: 24px; }
@media (min-width: 980px) {
  .plan { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; padding-bottom: 64px; }
  .total { position: sticky; top: 16px; }
}
.plan__steps { display: grid; gap: 20px; min-width: 0; }

.block { background: var(--tint-sun); padding: clamp(18px, 3vw, 28px); }
.block:nth-child(even) { background: var(--tint-river); }
.block__tag { display: none; margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.show-tags .block__tag { display: block; }
.show-tags .block, .show-tags .total__in { outline: 2px dashed var(--accent); outline-offset: -2px; }
.block__h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; color: var(--navy); }
.num { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-body); font-size: 17px; }
.hint { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* campos */
.row { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.field input[type="date"] { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-weight: 400; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.stepper__b { width: 48px; height: 48px; border: 0; background: transparent; font-size: 24px; font-weight: 700; cursor: pointer; color: var(--navy); }
.stepper__b:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 44px; text-align: center; font-size: 20px; font-weight: 800; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); }
.field--range { margin-top: 18px; font-weight: 400; }
.field--range strong { color: var(--accent); font-size: 18px; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--navy); }

/* tarjetas para escoger */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.opts { display: grid; gap: 10px; }
.card { position: relative; display: block; cursor: pointer; }
.card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.card__box { display: grid; gap: 4px; height: 100%; padding: 14px 16px; background: #fff; border: 2px solid var(--line); }
.card input:checked + .card__box { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.card input:focus-visible + .card__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.card__t { font-size: 17px; color: var(--navy); }
.card__p { font-weight: 800; color: var(--accent); font-size: 15px; }
.card__s { font-size: 14px; color: var(--muted); }

/* interruptores */
.switch { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; cursor: pointer; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: 0 0 auto; position: relative; width: 52px; height: 30px; margin-top: 2px; border-radius: 99px; background: #B9C2B4; transition: background .15s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch__ui { background: var(--navy); }
.switch input:checked + .switch__ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* día por día */
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.day { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px; background: #fff; }
.day__img { grid-row: span 2; width: 84px; height: 84px; object-fit: cover; background: var(--line); }
.day__cost { grid-column: 2; }
@media (min-width: 640px) { .day { grid-template-columns: 160px minmax(0, 1fr) auto; } .day__img { grid-row: auto; } .day__cost { grid-column: auto; } }
@media (min-width: 640px) { .day { grid-template-columns: 160px minmax(0, 1fr) auto; } .day__img { width: 160px; height: 107px; } }
.day__body > p, .day__h { margin: 0; }
.day__top { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.day__h { font-family: var(--font-display); font-size: 18px; line-height: 1.25; color: var(--navy); }
.day__meta { font-size: 14px; color: var(--muted); }
.day__note, .day__food { font-size: 14px; }
.day__note--warn { color: var(--accent); font-weight: 700; }
.day__cost { margin: 0; font-weight: 800; color: var(--navy); white-space: nowrap; }

/* cómo llegar y volver por su cuenta (bloque 4; textos en como-llegar.js) */
.own__h { margin: 10px 0 4px; font-size: 15px; color: var(--navy); }
.own__list { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.own__note { margin: 4px 0 8px; font-size: 13px; color: var(--accent); }
.own__desc { font-size: 13px; color: var(--muted); }   /* bloque 4: equipaje y traslados como casillas (Leo, 10 nov) */
#f-transporte .acts__name { font-weight: 700; }
/* bloque 4: equipaje y traslados de Chorro Ecolodge, dos tarjetas iguales (Leo, 10 nov) */
.tr-by { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.tr-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tr-card__in { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tr-card.is-on .tr-card__in { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.tr-card__in input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.tr-card__txt { display: grid; gap: 3px; min-width: 0; }
.tr-card__name { font-weight: 800; font-size: 16px; color: var(--ink); }
.tr-card__desc { font-size: 14px; color: var(--muted); line-height: 1.4; }
.tr-card__price { font-size: 14px; color: var(--ink); margin-top: 4px; }
.tr-card__grp { justify-self: start; margin-top: 2px; padding: 2px 10px; border-radius: 999px; background: var(--tint-river);
  font-size: 13px; font-weight: 700; color: var(--navy); }
.tr-card__tot { margin-top: 4px; font-size: 14px; font-weight: 800; color: var(--accent); }

/* días de descanso (Leo, 8 nov) */
.rest__tag { margin: 4px 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.rest__btn { margin: 6px 0 2px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px dashed var(--navy); background: transparent; color: var(--navy); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.rest__btn.is-on { border-style: solid; background: var(--yellow); }
.rest__btn:disabled { opacity: .45; cursor: not-allowed; }

/* actividades de cada día */
.acts { margin-top: 8px; border-top: 1px solid var(--line); }
.acts__sum { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--navy); list-style: none; }
.acts__sum::-webkit-details-marker { display: none; }
.acts__sum::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 18px; line-height: 1; }
.acts[open] > .acts__sum::before { content: "−"; }
.acts__list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.acts__item { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.acts__item input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.acts__txt { display: grid; min-width: 0; font-size: 15px; line-height: 1.35; }
.acts__price { font-size: 13px; font-weight: 700; color: var(--accent); }
.acts__price--req { color: var(--muted); font-weight: 400; font-style: italic; }

/* total */
.total__in { background: var(--navy); color: #fff; padding: clamp(20px, 3vw, 28px); }
.total .block__tag { color: var(--yellow); }
.total__h { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; }
.lines { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 15px; }
.lines dt small { display: block; opacity: .75; font-size: 13px; }
.lines dd { margin: 0; text-align: right; font-weight: 700; }
.total__big { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); font-size: 18px; }
.total__big strong { font-size: 32px; color: var(--yellow); }
.total__pp { margin: 4px 0 18px; font-size: 15px; opacity: .9; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; border: 0; cursor: pointer; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.btn--wa { background: var(--wa); color: var(--wa-ink); border-radius: 999px; }
.btn--wa:hover { background: #fff; }
.btn--ghost { margin-top: 10px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.fine { margin: 8px 0 0; font-size: 13px; opacity: .8; }

/* las dos ofertas de H2O */
.offers { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); }
.offers__h { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.offer { display: grid; gap: 8px; padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.offer__t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-weight: 800; font-size: 17px; }
.offer__t strong { color: var(--yellow); font-size: 24px; white-space: nowrap; }
.offer__s { margin: 0; font-size: 14px; opacity: .9; }
.show-tags .offers { outline: 2px dashed var(--yellow); outline-offset: 4px; }

/* barra de abajo en el teléfono */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.2); transition: transform .2s; }
.bar strong { color: var(--yellow); font-size: 22px; }
.bar__go { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--yellow); color: var(--navy); font-weight: 800; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.bar--off { transform: translateY(110%); }
@media (min-width: 980px) { .bar { display: none; } }
.noscript { padding: 24px var(--gutter); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  .top, .lang, .bar, .btn, #b-presupuesto .cards, input[type="range"], .stepper__b { display: none !important; }
  .plan { display: block; padding: 0; }
  .block, .total__in { background: #fff !important; color: #000; padding: 8px 0; }
  .total__big strong { color: #000; }
  .day { break-inside: avoid; }
}

/* precio del día: hospedaje + comidas + actividades (Leo, 9 nov) */
.day__sum { margin: 0; font-weight: 800; color: var(--navy); white-space: nowrap; }
.day__part { margin: 2px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
@media (min-width: 640px) { .day__cost { text-align: right; } }
.lead--intro { font-size: clamp(15px, 1.3vw, 17px); opacity: .9; }
/* consejo de juntar dos etapas (Leo, 9 nov) */
.day__tip { margin: 6px 0; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--navy); background: rgba(255, 214, 0, .25); border-radius: 6px; }
/* cuántos guías (Leo, 9 nov) */
.field.guides { margin: 4px 0 8px 64px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field.guides[hidden] { display: none; }
