/* ============================================================
   Tu Desvío — ficha de alojamiento v3 "cuaderno de viaje"
   (hero cinematográfico + tarjeta de papel, recorrido en tira,
    panel de reserva con fechas y precio real)
   ============================================================ */
.ficha3-body { background: var(--td-cream); }
.ficha3 .ic { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: 0 0 auto; }
.ficha3 .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kicker { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--td-terracotta); }

/* ---------- hero ---------- */
.hero3 { position: relative; height: clamp(420px, 62vh, 640px); overflow: hidden; background: var(--td-olive-700); }
.hero3-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero3-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,42,31,.15) 0%, rgba(43,42,31,0) 35%, rgba(43,42,31,.55) 100%); }
.hero3-inner { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.paper {
  background: var(--td-cream-100); color: var(--td-ink); padding: 22px 28px 20px; max-width: 620px;
  border-radius: 4px 18px 4px 18px; box-shadow: var(--td-shadow-lg); transform: rotate(-.6deg); position: relative;
}
.paper::before { content: ''; position: absolute; top: -10px; left: 34px; width: 74px; height: 22px; background: rgba(177,112,53,.55); transform: rotate(-3deg); border-radius: 2px; }
.paper h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; margin: 6px 0 12px; color: var(--td-olive); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; padding: 6px 12px; border-radius: var(--td-radius-pill); background: var(--td-cream); border: 1px solid var(--td-line); }
.pill small { font-weight: 400; color: var(--td-ink-soft); }
.pill-star { font-weight: 700; } .pill-star .ic { color: var(--td-terracotta); }
.pill-bk b { color: #26406B; }
.hero3-all { padding: 11px 18px; border-radius: var(--td-radius-pill); border: 0; background: rgba(250,246,232,.96); color: var(--td-ink); font-family: var(--td-font-body); font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: var(--td-shadow-md); }
.hero3-all:hover { background: #fff; }

/* ---------- tira de fotos ---------- */
.strip3 { padding: 34px 0 10px; }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.strip-head h2 { font-size: 2.2rem; margin: 0; }
.strip-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.strip-chips::-webkit-scrollbar { display: none; }
.strip-chip { flex: 0 0 auto; padding: 7px 13px; border-radius: var(--td-radius-pill); border: 1.5px solid var(--td-olive); background: transparent; color: var(--td-olive); font-family: var(--td-font-body); font-size: .85rem; font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.strip-chip small { opacity: .65; }
.strip-chip:hover, .strip-chip.on { background: var(--td-olive); color: var(--td-cream); }
.strip-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; padding: 6px 0 18px; }
.strip-track { display: flex; gap: 14px; padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px)); width: max-content; }
.strip-item { position: relative; flex: 0 0 auto; width: 340px; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.strip-item img { width: 340px; height: 250px; object-fit: cover; border-radius: var(--td-radius-md); display: block; background: var(--td-cream-300); transition: transform .3s; }
.strip-item:hover img { transform: translateY(-3px); }
.strip-item figcaption { font-size: .8rem; color: var(--td-ink-soft); padding: 6px 2px 0; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-label { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--td-font-hand); font-size: 1.25rem; font-weight: 700; color: var(--td-olive); background: rgba(250,246,232,.95); padding: 2px 12px; border-radius: 4px 12px 4px 12px; box-shadow: var(--td-shadow-sm); }

/* ---------- cuerpo ---------- */
.layout3-wrap { padding: 16px 0 56px; }
.layout3 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; align-items: start; }
.intro3 { padding: 6px 0 20px; border-bottom: 1px dashed var(--td-line); }
.intro3-tipo { font-size: 1.35rem; font-weight: 600; }
.intro3-cap { color: var(--td-ink-soft); margin-top: 2px; }
.sec3 { padding: 30px 0; border-bottom: 1px dashed var(--td-line); }
.sec3 h2 { font-size: 2.1rem; margin-bottom: 16px; }
.sec3 h3 { font-size: 1.05rem; font-weight: 600; margin: 16px 0 6px; }
.sec3 p { color: var(--td-ink-soft); margin-bottom: 12px; }
.why-list { display: grid; gap: 14px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--td-cream-100); padding: 14px 16px; border-radius: var(--td-radius-md); border-left: 4px solid var(--td-terracotta); }
.why-list .ic { width: 1.7em; height: 1.7em; color: var(--td-terracotta); margin-top: 2px; }
.why-list b { display: block; margin-bottom: 2px; }
.why-list p { margin: 0; font-size: .93rem; }
.sleep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.sleep-card { display: block; border-radius: var(--td-radius-md); overflow: hidden; background: var(--td-cream-100); box-shadow: var(--td-shadow-sm); }
.sleep-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sleep-card span { display: block; padding: 9px 12px 0; font-weight: 600; font-size: .93rem; }
.sleep-card small { display: block; padding: 0 12px 10px; color: var(--td-ink-soft); font-size: .8rem; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.am-chip { padding: 7px 13px; border-radius: var(--td-radius-pill); background: var(--td-cream-100); border: 1px solid var(--td-line); font-size: .88rem; }
.am-more { margin-top: 14px; }
.am-more summary { cursor: pointer; font-weight: 600; color: var(--td-terracotta); list-style: none; }
.am-more summary::after { content: ' ↓'; }
.am-more[open] summary::after { content: ' ↑'; }
.am-group { padding: 12px 0; border-bottom: 1px solid var(--td-line); }
.am-group h4 { font-weight: 600; margin-bottom: 6px; }
.am-group ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; color: var(--td-ink-soft); font-size: .92rem; }
.rev-head { display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: flex-end; margin-bottom: 16px; }
.rev-num { font-size: 2.5rem; font-weight: 700; line-height: 1; display: flex; align-items: center; gap: 6px; }
.rev-num .ic { color: var(--td-terracotta); width: .9em; height: .9em; }
.rev-num small { font-size: 1rem; color: var(--td-ink-soft); font-weight: 500; }
.rev-bk .rev-num { color: #26406B; }
.rev-lbl { color: var(--td-ink-soft); font-size: .9rem; margin-top: 5px; }
.rev-subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 26px; margin: 4px 0 18px; }
.rev-subs .sub { display: grid; grid-template-columns: 1fr 26px; gap: 2px 10px; font-size: .86rem; align-items: center; }
.rev-subs .sub span { grid-column: 1 / -1; color: var(--td-ink-soft); }
.rev-subs .sub i { display: block; height: 5px; border-radius: 4px; background: var(--td-cream-300); overflow: hidden; }
.rev-subs .sub i b { display: block; height: 100%; background: var(--td-olive); }
.rev-subs .sub em { font-style: normal; font-weight: 600; font-size: .84rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 12px; }
.quote { margin: 0; background: var(--td-cream-100); padding: 18px 18px 14px; border-radius: 4px 16px 4px 16px; position: relative; box-shadow: var(--td-shadow-sm); }
.quote::before { content: '“'; position: absolute; top: -6px; left: 12px; font-family: var(--td-font-hand); font-size: 3rem; color: var(--td-terracotta); line-height: 1; }
.quote p { margin: 0 0 8px; font-size: .93rem; color: var(--td-ink); }
.quote footer { font-size: .8rem; color: var(--td-ink-soft); }
.rev-note { font-size: .82rem; margin: 0; }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.zone-loc { font-weight: 600; color: var(--td-ink); }
.zone-loc .ic { color: var(--td-terracotta); }
.map-wrap { position: relative; border-radius: var(--td-radius-md); overflow: hidden; box-shadow: var(--td-shadow-sm); background: var(--td-cream-300); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; filter: saturate(.8); }
.map-approx iframe { pointer-events: none; }
.map-circle { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(98,147,76,.22); border: 2px solid rgba(83,95,52,.7); box-shadow: 0 0 0 6px rgba(98,147,76,.10); pointer-events: none; }
.map-note { position: absolute; left: 10px; top: 10px; background: rgba(250,246,232,.95); padding: 5px 10px; border-radius: var(--td-radius-sm); font-size: .75rem; color: var(--td-ink-soft); max-width: 70%; }
.map-link { position: absolute; right: 10px; bottom: 10px; background: rgba(250,246,232,.95); padding: 6px 12px; border-radius: var(--td-radius-pill); font-size: .8rem; font-weight: 600; }
.planes-cta { margin-top: 16px; font-weight: 500; }
.planes-cta a { color: var(--td-terracotta); font-weight: 600; }
.faq { border-bottom: 1px solid var(--td-line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--td-terracotta); font-size: 1.2rem; }
.faq[open] summary::after { content: '−'; }
.faq p { padding-bottom: 12px; margin: 0; }
.lic { font-size: .8rem; color: var(--td-ink-soft); margin: 18px 0 0; }

/* ---------- panel de reserva ---------- */
.book3 { position: sticky; top: 92px; background: var(--td-cream-100); border-radius: 4px 22px 4px 22px; padding: 22px 22px 18px; box-shadow: var(--td-shadow-lg); border: 1px solid var(--td-line); }
.book3-head { padding-bottom: 14px; border-bottom: 1px dashed var(--td-line); margin-bottom: 14px; }
.book3-price { font-size: 1rem; color: var(--td-ink-soft); margin-top: 4px; }
.book3-price strong { font-size: 1.9rem; color: var(--td-terracotta); font-weight: 700; }
.book3-rt { font-weight: 600; font-size: .92rem; }
.book3-rt .ic { color: var(--td-terracotta); }
.book3-rt small { color: var(--td-ink-soft); font-weight: 400; }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--td-line); border-radius: var(--td-radius-md); overflow: hidden; }
.date-btn { text-align: left; padding: 10px 12px; background: #fff; border: 0; font-family: var(--td-font-body); cursor: pointer; }
.date-btn + .date-btn { border-left: 1.5px solid var(--td-line); }
.date-btn small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--td-ink-soft); }
.date-btn span { font-size: .95rem; font-weight: 500; color: var(--td-ink); }
.date-btn.on { box-shadow: inset 0 0 0 2px var(--td-olive); }
.date-btn.empty span { color: var(--td-ink-soft); font-weight: 400; }
.cal { margin-top: 10px; background: #fff; border: 1.5px solid var(--td-line); border-radius: var(--td-radius-md); padding: 12px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav button { border: 0; background: var(--td-cream); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.cal-nav b { font-size: .95rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .85rem; }
.cal-grid .dow { font-size: .7rem; color: var(--td-ink-soft); font-weight: 600; padding: 4px 0; }
.cal-day { border: 0; background: transparent; padding: 0; height: 38px; border-radius: 8px; cursor: pointer; font-family: var(--td-font-body); font-size: .88rem; font-weight: 600; color: var(--td-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.cal-day small { font-size: .62rem; font-weight: 400; color: var(--td-ink-soft); margin-top: 2px; }
.cal-day:hover:not(:disabled) { background: var(--td-cream-300); }
.cal-day:disabled { cursor: not-allowed; }
.cal-day:disabled:not(.na):not(.sel) { color: #b5ae94; font-weight: 400; }
.cal-day.na:disabled { color: #c9c2a6; font-weight: 400; text-decoration: line-through; }
.cal-day.in-range { background: var(--td-cream-300); border-radius: 0; }
.cal-day.sel { background: var(--td-olive); color: var(--td-cream); }
.cal-day.sel small { color: var(--td-cream-300); }
.cal-day.sel.first { border-radius: 8px 0 0 8px; } .cal-day.sel.last { border-radius: 0 8px 8px 0; } .cal-day.sel.first.last { border-radius: 8px; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .78rem; color: var(--td-ink-soft); }
.cal-foot button { border: 0; background: transparent; color: var(--td-terracotta); font-weight: 600; cursor: pointer; font-family: var(--td-font-body); }
.guests { margin-top: 12px; border: 1.5px solid var(--td-line); border-radius: var(--td-radius-md); background: #fff; padding: 4px 12px; }
.guest-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.guest-row + .guest-row { border-top: 1px solid var(--td-line); }
.guest-row b { display: block; font-size: .92rem; }
.guest-row small { color: var(--td-ink-soft); font-size: .78rem; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--td-olive); background: transparent; color: var(--td-olive); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 18px; text-align: center; font-weight: 600; }
.guests-max { font-size: .75rem; color: var(--td-ink-soft); padding: 6px 0 4px; margin: 0; }
.quote { min-height: 0; }
.book3 .quote { background: transparent; box-shadow: none; padding: 12px 0 0; border-radius: 0; }
.book3 .quote::before { display: none; }
.quote-hint { font-size: .85rem; color: var(--td-ink-soft); margin: 0; }
.quote-line { display: flex; justify-content: space-between; font-size: .92rem; padding: 4px 0; color: var(--td-ink-soft); }
.quote-line.total { border-top: 1px solid var(--td-line); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--td-ink); font-size: 1.05rem; }
.quote-err { background: #fbe9e2; color: #8a3b14; padding: 10px 12px; border-radius: var(--td-radius-sm); font-size: .88rem; margin: 0; }
.quote-loading { font-size: .85rem; color: var(--td-ink-soft); margin: 0; }
.quote-loading::after { content: '…'; animation: dots 1.2s steps(3) infinite; }
@keyframes dots { to { content: ''; } }
.book3-next { width: 100%; margin-top: 14px; }
.book3-next:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.book3-back { border: 0; background: transparent; color: var(--td-terracotta); font-weight: 600; cursor: pointer; font-family: var(--td-font-body); padding: 0 0 10px; }
.book3 h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.resumen { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin-bottom: 12px; }
.resumen dt { color: var(--td-ink-soft); }
.resumen dd { font-weight: 500; text-align: right; }
.resumen dd.total { font-weight: 700; color: var(--td-terracotta); font-size: 1.1rem; }
.book3-policy { display: grid; gap: 6px; font-size: .85rem; color: var(--td-ink-soft); margin-bottom: 14px; }
.book3-policy .ic { color: var(--td-green); margin-right: 6px; }
.book3-pay { width: 100%; }
.book3-alt { font-size: .82rem; color: var(--td-ink-soft); text-align: center; margin: 12px 0 0; }
.book3-alt a { color: var(--td-ink); text-decoration: underline; }
.book3-note { font-size: .78rem; color: var(--td-ink-soft); margin: 14px 0 0; }
.book3.sheet-open { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; }
.book3 .sheet-close { display: none; position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--td-cream); cursor: pointer; }
.book3.sheet-open .sheet-close { display: block; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(43,42,31,.55); z-index: 55; }

/* lightbox (compartido con v2) */
dialog { border: 0; padding: 0; background: var(--td-cream); color: var(--td-ink); max-width: none; }
dialog::backdrop { background: rgba(43,42,31,.7); }
.dlg-close { position: absolute; top: 14px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--td-cream-100); color: var(--td-ink); font-size: 1.1rem; cursor: pointer; box-shadow: var(--td-shadow-md); }
.lb-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #1c1b14; color: #fff; }
.lb-dialog[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb-dialog figure { margin: 0; text-align: center; max-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 60px 0 30px; }
.lb-dialog img { max-height: calc(100dvh - 120px); max-width: 100%; object-fit: contain; margin: 0 auto; border-radius: 6px; }
.lb-dialog figcaption { color: #d9cfa9; font-size: .9rem; padding: 0 12px; }
.lb-prev, .lb-next { background: transparent; border: 0; color: #fff; font-size: 3rem; cursor: pointer; height: 100%; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.06); }
.lb-dialog .dlg-close { background: rgba(255,255,255,.12); color: #fff; }
.lb-count { position: absolute; left: 20px; top: 22px; font-size: .9rem; color: #d9cfa9; }

/* barra móvil */
.book-bar { display: none; }

@media (max-width: 960px) {
  .layout3 { grid-template-columns: 1fr; gap: 10px; }
  .book3 { position: static; display: none; }
  .book3.sheet-open { display: block; }
  .zone-grid, .rev-subs { grid-template-columns: 1fr; }
  .hero3 { height: clamp(360px, 56vh, 520px); }
  .hero3-inner { flex-direction: column; align-items: flex-start; }
  .paper { max-width: 100%; transform: none; padding: 16px 18px 14px; }
  .paper h1 { font-size: 2rem; }
  .strip-item, .strip-item img { width: 260px; } .strip-item img { height: 190px; }
  .book-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--td-cream-100); border-top: 1px solid var(--td-line); box-shadow: 0 -6px 20px rgba(43,42,31,.12); }
  .book-bar .bb-price strong { color: var(--td-terracotta); font-size: 1.2rem; }
  .book-bar .bb-rt { display: block; font-size: .8rem; color: var(--td-ink-soft); }
  .book-bar .bb-rt .ic { color: var(--td-terracotta); }
  .book-bar .btn { padding: 12px 24px; white-space: nowrap; }
  .ficha3-body { padding-bottom: 74px; }
  .lb-dialog[open] { grid-template-columns: 36px 1fr 36px; }
  .lb-prev, .lb-next { font-size: 2rem; }
}
@media (max-width: 640px) {
  .am-group ul { grid-template-columns: 1fr; }
  .sec3 h2 { font-size: 1.8rem; }
}

/* Pantallas bajas (plegable cerrado/abierto en horizontal): el hero3 con
   min-height fijo (clamp mínimo 360px) se comía casi toda la pantalla y
   tapaba las pills/botón de fotos contra la book-bar fija. */
@media (max-height: 620px) {
  .hero3 { height: clamp(160px, 45vh, 320px); }
  .hero3-inner { padding-bottom: 14px; gap: 10px; }
  .paper { padding: 14px 16px 12px; }
  .paper h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); margin: 4px 0 8px; }
  .pills { gap: 6px; }
  .pill { padding: 4px 10px; font-size: .78rem; }
  .hero3-all { padding: 8px 14px; font-size: .82rem; }
  .book-bar { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
}
