/* ==========================================================================
   Ficha de tour "tal cual" la maqueta LIMA_VIEW_CITY_TOUR_FICHA_REFINADA (24-nov-2026).
   CSS plano SIN build (el build de Vite de prod no tiene clases Tailwind nuevas).
   Mobile-first: base 320px; breakpoints min-width 561 / 841 (+ 901 sticky).
   Fuentes: Raleway (titulares) + Roboto (texto/UI), autoalojadas en redesign.css.
   Colores de texto dorado: #855a20 (el #dfa94a no pasa contraste como texto).
   Se carga solo en la ficha (@push head) y gana por orden de cascada a los <style> de la vista.
   ========================================================================== */

.fi-page {
  --fi-forest: #103f33;
  --fi-green: #07583e;
  --fi-ink: #142821;
  --fi-muted: #52645c;
  --fi-line: #e0e8e1;
  --fi-cta: #084b37;
  --fi-gold-ink: #855a20;
  --fi-focus: #c69a45;
  display: flow-root; /* contiene el margen superior de las migas: sin franja blanca (body bg-white) entre header y página */
  background: #f8faf7;
  color: var(--fi-ink);
  font-family: 'Roboto', 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.fi-page *, .fi-page *::before, .fi-page *::after { box-sizing: border-box; }
.fi-page h1, .fi-page h2, .fi-page h3 { font-family: 'Raleway', 'Roboto', 'Albert Sans', system-ui, sans-serif; }
/* :where() = especificidad 0: hereda la fuente pero NO pisa el tamaño/peso de las clases de componente (.fi-cta, .fi-slot...) */
:where(.fi-page) :is(button, input, select) { font: inherit; }
.fi-page button { cursor: pointer; }
.fi-page a { color: inherit; }
.fi-page button:focus-visible,
.fi-page input:focus-visible,
.fi-page select:focus-visible,
.fi-page a:focus-visible,
.fi-page summary:focus-visible {
  outline: 3px solid var(--fi-focus);
  outline-offset: 2px;
}
.fi-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.fi {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(13px, 3vw, 38px) 56px;
}

/* ---------- Migas ---------- */
.fi-crumb {
  margin: 13px 0 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12px; line-height: 1.4; color: #566a5f;
}
.fi-crumb a { color: #2f5f49; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; padding: 0 2px; } /* 44px táctiles; el margen negativo conserva la altura visual de la fila */
.fi-crumb a:hover { text-decoration: underline; }
.fi-crumb [aria-current] { color: #3d5246; }

/* ---------- Título + rating ---------- */
.fi-top { margin: 12px 0 15px; }
.fi-title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(30px, 8.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--fi-forest);
  text-wrap: balance;
}
.fi-rating {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  min-height: 44px;
  font-size: 14px; color: #243f33; text-decoration: none;
}
.fi-rating b { font-weight: 700; }
.fi-rating__count { text-decoration: underline; text-underline-offset: 3px; }
.fi-stars { color: var(--fi-gold-ink); letter-spacing: 1.5px; white-space: nowrap; }

/* ---------- Hero: galería + resumen | reserva ---------- */
.fi-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; align-items: start; }
.fi-visual { min-width: 0; }

.fi-gallery {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px;
  height: clamp(218px, 54vw, 380px);
  border-radius: 16px;
  overflow: hidden;
  background: #d1e4d8;
}
.fi-gallery--solo { grid-template-columns: minmax(0, 1fr); }
.fi-gallery--duo { grid-template-rows: minmax(0, 1fr); }
.fi-gallery button { min-width: 0; min-height: 0; }
.fi-photo, .fi-mini {
  display: block; border: 0; padding: 0; margin: 0; background: #d1e4d8;
  overflow: hidden; position: relative; border-radius: 0;
}
.fi-photo { grid-row: span 2; grid-column: 1; }
.fi-gallery--duo .fi-photo { grid-row: auto; }
.fi-photo img, .fi-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fi-mini::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 #fff; transition: box-shadow 200ms ease-out; }
.fi-mini.is-active::after { box-shadow: inset 0 0 0 3px #fff; }
.fi-mini:hover::after { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.fi-photo__count {
  position: absolute; left: 12px; bottom: 12px;
  color: #fff; background: rgba(12, 46, 35, .72); border: 1px solid rgba(255, 255, 255, .28);
  padding: 7px 11px; border-radius: 999px; font-weight: 700; font-size: 11px; line-height: 1;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.fi-photo__zoom {
  position: absolute; right: 12px; bottom: 12px;
  color: #173d2d; background: #fffcf0; padding: 8px 12px; border-radius: 999px;
  font-weight: 800; font-size: 11px; line-height: 1;
}

/* Resumen "¿Por qué reservar?" */
.fi-summary {
  background: #edf4ee; border: 1px solid #dce9df; border-radius: 22px;
  margin-top: 15px; padding: 14px;
}
.fi-summary h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--fi-ink); }
.fi-summary__lead { margin: 7px 0 12px; max-width: 58ch; color: #3e5649; line-height: 1.55; font-size: 14px; }
.fi-summary__more { margin: 0 0 16px; }
.fi-summary__more summary { cursor: pointer; list-style: none; color: #18714e; font-weight: 800; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: flex; align-items: center; }
.fi-summary__more summary::-webkit-details-marker { display: none; }
.fi-summary__more div { color: #3e5649; line-height: 1.6; font-size: 14px; max-width: 70ch; }
.fi-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fi-fact {
  font-size: 12px; background: #fff; border: 1px solid #d4e4d9; color: #244e39;
  border-radius: 999px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; line-height: 1.2;
}
.fi-fact { min-height: 44px; }

/* ---------- Tarjeta de reserva ---------- */
.fi-book {
  background: #fff; border: 1px solid var(--fi-line); border-radius: 24px;
  box-shadow: 0 9px 28px rgba(22, 51, 40, .06);
  padding: 16px; scroll-margin-top: 96px;
}
.fi-book__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #4d6a5b; font-weight: 800; }
.fi-price { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 8px 0 3px; }
.fi-price strong { font-family: 'Raleway', 'Roboto', sans-serif; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--fi-ink); }
.fi-price s { font-size: 14px; color: #6b7169; }
.fi-price__sale { display: inline-block; color: #fff; background: #c92f2f; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; }
.fi-flexpay { margin: 8px 0 0; font-size: 12px; line-height: 1.35; font-weight: 600; color: #2f6a58; }
.fi-flexpay::before { content: "✓"; margin-right: 5px; font-weight: 800; }
.fi-book__title { margin: 15px 0 4px; font-size: 15px; font-weight: 800; color: var(--fi-ink); }
.fi-field { display: block; margin: 12px 0 0; }
.fi-field__label { display: block; font-size: 12px; color: #3a5949; font-weight: 800; margin: 0 0 7px; }
.fi-date {
  width: 100%; height: 48px; border: 1px solid #b9c9bd; border-radius: 11px; background: #fff;
  padding: 0 13px; color: var(--fi-forest); font-weight: 600; font-size: 16px; max-width: 100%;
}
.fi-notice { margin: 7px 0 0; font-size: 12px; line-height: 1.45; color: #3f5a4c; }
.fi-error { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; font-weight: 600; line-height: 1.35; }

.fi-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fi-slot {
  min-height: 56px; padding: 9px 10px; border: 1px solid #b9ccbd; background: #fff; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  font-size: 13px; font-weight: 750; color: #2f5441; line-height: 1.2;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}
.fi-slot:hover:not(:disabled) { border-color: #247a55; background: #f4faf5; }
.fi-slot[aria-pressed="true"] { background: #e3f0e5; border: 2px solid #247a55; color: #0c583d; }
.fi-slot:disabled { opacity: .5; cursor: not-allowed; background: #f2f4f1; }
.fi-slot__time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fi-slot small { display: block; font-size: 11px; font-weight: 600; opacity: .85; }
.fi-slots--fixed { grid-template-columns: 1fr; }
.fi-slot--fixed { cursor: default; }

.fi-qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid #b9c9bd; background: #fff; border-radius: 11px; padding: 4px; min-height: 54px; }
.fi-qty button { border: 0; background: #e8f1e9; border-radius: 8px; width: 44px; height: 44px; font-size: 22px; line-height: 1; color: #1d6348; transition: background 200ms ease-out; }
.fi-qty button:hover:not(:disabled) { background: #d6e8d9; }
.fi-qty button:disabled { opacity: .45; cursor: not-allowed; }
.fi-qty output { font-weight: 800; font-size: 14px; }

.fi-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eee9e2; margin: 16px 0 12px; padding-top: 12px; }
.fi-total > span { color: #55695c; font-size: 13px; }
.fi-total strong { font-family: 'Raleway', 'Roboto', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.fi-cta {
  background: var(--fi-cta); color: #fff; border: 0; border-radius: 13px; min-height: 50px; width: 100%;
  font-weight: 800; font-size: 14px; letter-spacing: .01em; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 5px 12px rgba(0, 73, 46, .15); transition: background 200ms ease-out, transform 200ms ease-out;
}
.fi-cta:hover:not(:disabled) { background: #063a2b; }
.fi-cta:active:not(:disabled) { transform: translateY(1px); }
.fi-cta:disabled { opacity: .7; cursor: wait; }
.fi-foot { font-size: 11.5px; color: #5d6f60; text-align: center; margin: 10px 0 0; line-height: 1.4; }
.fi-proof { text-wrap: balance; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #eaf5ec; color: #145212; font-size: 12px; text-align: center; font-weight: 600; }

/* ---------- Secciones ---------- */
.fi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.fi-sec { background: #fff; border: 1px solid var(--fi-line); border-radius: 24px; box-shadow: 0 9px 28px rgba(22, 51, 40, .03); padding: 17px 15px; margin: 0; min-width: 0; scroll-margin-top: 96px; }
.fi-sec--wide { grid-column: 1 / -1; }
.fi-stack { display: grid; gap: 16px; min-width: 0; }
.fi-sec > h2, .fi-sec__h { margin: 0 0 5px; font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; color: var(--fi-forest); }
.fi-sec__sub { margin: 0 0 15px; font-size: 13px; line-height: 1.6; color: #5e6e61; }

/* Itinerario */
.fi-timeline { position: relative; list-style: none; padding: 0; margin: 20px 0 0; }
.fi-stop { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 13px; padding: 0 0 19px; margin: 0; }
.fi-stop:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: -2px; left: 15px; width: 2px; background: #c7dbce; }
.fi-stop__num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; z-index: 1; background: #e5f1e9; color: #13573d; font-size: 12px; font-weight: 800; }
.fi-stop h3 { margin: 5px 0 4px; font-size: 14px; font-weight: 700; color: var(--fi-ink); line-height: 1.3; }
.fi-stop__time { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: #e5f1e9; color: #13573d; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.fi-stop p { margin: 0; font-size: 12.5px; color: #5f6e62; line-height: 1.55; }
.fi-timeline:not(.is-open) .fi-stop--extra { display: none; }
.fi-timeline:not(.is-open) .fi-stop--lastvisible::after { display: none; }
.fi-toggle { border: 0; background: none; color: #18714e; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 0; min-height: 44px; font-size: 12px; display: inline-flex; align-items: center; margin-top: -12px; }

/* Incluye / No incluye */
.fi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.fi-cols--one { grid-template-columns: 1fr; }
.fi-cols > div { padding: 12px 9px; border-radius: 20px; min-width: 0; }
.fi-included { background: #edf8ef; border: 1px solid #cfe7d4; color: #205435; }
.fi-excluded { background: #fff1f0; border: 1px solid #f4d7d5; color: #823834; }
.fi-cols h3 { margin: 0 0 11px; font-size: 13px; font-weight: 700; }
.fi-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fi-checks li { font-size: 12.5px; color: #3f5a4a; line-height: 1.45; display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.fi-excluded .fi-checks li { color: #6a3a36; }
.fi-check { color: #237451; font-weight: 900; flex: none; }
.fi-cross { color: #9a4a3c; font-weight: 900; flex: none; }
.fi-notes { padding: 12px; background: #f3f5ee; border-radius: 12px; font-size: 12.5px; line-height: 1.65; color: #4f6455; margin-top: 13px; }
.fi-recs { margin-top: 13px; }
.fi-recs summary { cursor: pointer; font-weight: 700; font-size: 13px; color: #18714e; min-height: 44px; display: flex; align-items: center; }
.fi-recs ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: #4f6455; }

/* Reseñas */
.fi-rsum { display: grid; grid-template-columns: 100px minmax(0, 270px); gap: 16px; margin: 14px 0 18px; align-items: center; }
.fi-rsum__avg strong { display: block; font-family: 'Raleway', 'Roboto', sans-serif; font-size: 37px; font-weight: 800; line-height: 1; }
.fi-rsum__avg .fi-stars { display: block; margin-top: 4px; }
.fi-rsum__avg small { display: block; margin-top: 4px; font-size: 12px; color: #55695c; line-height: 1.3; }
.fi-bars > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px; align-items: center; gap: 8px; font-size: 12px; margin: 3px 0; }
.fi-bars__track { display: block; height: 7px; border-radius: 7px; background: #dfe6e1; overflow: hidden; }
.fi-bars__fill { display: block; height: 100%; border-radius: 7px; background: #1e7d34; }
.fi-bars small { font-size: 12px; color: #55695c; text-align: right; }
.fi-rlist { display: grid; gap: 12px; }
.fi-review { border: 1px solid #eee0cd; border-radius: 14px; padding: 15px; background: #fdfaf6; }
.fi-review__head { display: flex; gap: 9px; align-items: center; }
.fi-avatar { width: 38px; height: 38px; display: grid; place-items: center; background: #e6eee7; border-radius: 50%; color: #295b46; font-weight: 800; font-size: 13px; flex: none; }
.fi-review__head strong { font-size: 13px; }
.fi-review__head small { display: block; color: #5f6f62; font-size: 11.5px; margin-top: 2px; }
.fi-review__head .fi-stars { margin-left: auto; font-size: 12px; }
.fi-review__text { color: #46594d; font-size: 14px; line-height: 1.62; margin: 12px 0 0; white-space: pre-line; }
.fi-page .fi-rlink { display: inline-flex; align-items: center; margin-top: 12px; color: #18714e; font-weight: 800; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.fi-rform { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef0ec; }
.fi-rform > summary, .fi-rform__btn { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 800; color: #18714e; text-decoration: underline; text-underline-offset: 3px; list-style: none; border: 0; background: none; padding: 0; }
.fi-rform > summary::-webkit-details-marker { display: none; }
.fi-rform form { margin-top: 10px; display: grid; gap: 10px; }
.fi-rform label { display: block; font-size: 12px; font-weight: 800; color: #3a5949; margin-bottom: 5px; }
.fi-rform input[type="text"], .fi-rform input[type="email"], .fi-rform textarea { width: 100%; border: 1px solid #b9c9bd; border-radius: 11px; background: #fff; padding: 11px 13px; font-size: 16px; color: var(--fi-forest); }
.fi-rform__stars { display: flex; gap: 2px; }
.fi-rform__stars button { border: 0; background: none; font-size: 30px; line-height: 1; min-width: 44px; min-height: 44px; color: #c8cfca; }
.fi-rform__stars button.is-on { color: #c28a1c; }
.fi-rform__submit { background: var(--fi-cta); color: #fff; border: 0; border-radius: 13px; min-height: 48px; font-weight: 800; font-size: 14px; }
.fi-rform__flash { border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.fi-rform__flash--ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.fi-rform__flash--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Relacionados */
.fi-related { margin-top: 16px; }
.fi-related-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.fi-rcard { overflow: hidden; border: 1px solid var(--fi-line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; }
.fi-rcard__img { display: block; width: 100%; height: 160px; object-fit: cover; background: #e4ece0; }
.fi-rcard__body { padding: 13px; display: flex; flex-direction: column; flex: 1; }
.fi-rcard h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--fi-ink); }
.fi-rcard h3 a { text-decoration: none; display: flex; align-items: flex-start; min-height: 44px; }
.fi-rcard h3 { margin-bottom: 0; }
.fi-rcard h3 a:hover { text-decoration: underline; }
.fi-rcard p { margin: 0; font-size: 13px; color: #43584e; }
.fi-rcard__price strong { font-size: 17px; color: #164932; font-family: 'Raleway', 'Roboto', sans-serif; font-weight: 800; }
.fi-rcard__price s { font-size: 12px; color: #6b7169; margin-left: 4px; }
.fi-rcard__price small { font-size: 12px; color: #55695c; }
.fi-page .fi-rcard__link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: #18714e; font-weight: 800; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.fi-page .fi-rcard__link:hover { text-decoration-thickness: 2px; }

/* FAQ */
.fi-faq { margin-top: 16px; }
.fi-faq details { border-top: 1px solid #ede7e0; }
.fi-faq details:first-of-type { border-top: 0; }
.fi-faq summary { font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; line-height: 1.35; }
.fi-faq summary::-webkit-details-marker { display: none; }
.fi-faq summary::after { content: '+'; flex: none; color: #1f7b54; font-size: 22px; line-height: 1; }
.fi-faq details[open] summary::after { content: '−'; }
.fi-faq details > div { font-size: 13.5px; color: #50625a; line-height: 1.6; padding: 0 0 14px; }

/* Ubicación / recojo (opcional) */
.fi-map { width: 100%; height: 240px; border-radius: 14px; overflow: hidden; background: #f1f0ec; margin-top: 12px; }
.fi-zones { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.fi-zones li { font-size: 13px; color: #3f5a4a; }
.fi-zones b { color: var(--fi-ink); }

/* ---------- Barra fija móvil ---------- */
.fi-bar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: var(--sticky-bar-h, 0px); }
  .fi-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; /* la barra queda fuera de .fi-page: sin esto heredaba Albert Sans */
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 13px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 251, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid #e7e3da; box-shadow: 0 -7px 30px rgba(23, 59, 42, .08);
    transform: translateY(100%); visibility: hidden;
    transition: transform .22s ease-out, visibility 0s linear .22s;
  }
  .fi-bar.is-on { transform: none; visibility: visible; transition: transform .22s ease-out, visibility 0s; }
  .fi-bar__price { min-width: 0; font-weight: 800; font-size: 18px; line-height: 1.15; color: var(--fi-ink); font-family: 'Raleway', 'Roboto', sans-serif; }
  .fi-bar__price small { display: block; font-family: 'Roboto', sans-serif; font-size: 11.5px; font-weight: 600; color: #55695c; }
  .fi-bar__actions { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; }
  .fi-bar__wa { flex: none; width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #128c4a; border: 2px solid #25d366; }
  .fi-bar__cta { font-family: inherit; flex: 1; max-width: 220px; min-width: 0; border: 0; border-radius: 11px; background: #0b4b36; color: #fff; font-size: 14px; font-weight: 800; min-height: 48px; padding: 0 12px; }
  .fi-bar__cta:active { background: #063a2b; }
  html.has-resbar .lvt-wa { display: none !important; } /* !important: el <a> del WhatsApp flotante trae display:flex inline; en la ficha móvil su acceso vive dentro de la barra */
}
@media (prefers-reduced-motion: reduce) { .fi-bar, .fi-bar.is-on { transition: none; } }

/* ---------- Cajón del carrito ---------- */
.fi-ov { position: fixed; inset: 0; background: rgba(7, 28, 22, .62); display: none; align-items: flex-end; justify-content: center; z-index: 100; padding: 12px; }
.fi-ov.is-open { display: flex; }
.fi-drawer { width: min(100%, 520px); background: #fffdfa; border-radius: 22px; padding: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .13); max-height: 88dvh; overflow: auto; color: var(--fi-ink); }
.fi-drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fi-drawer__title { margin: 0; font-size: 26px; font-weight: 700; color: var(--fi-forest); }
.fi-close { border: 0; background: #eaf0e9; color: #20543f; border-radius: 12px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.fi-drawer__sub { color: #5e6e61; font-size: 13px; margin: 6px 0 4px; }
.fi-crow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ede7df; font-size: 13px; }
.fi-crow strong { display: block; line-height: 1.3; }
.fi-crow small { display: block; color: #55665a; line-height: 1.5; margin-top: 4px; font-size: 12.5px; }
.fi-crow__slot { display: block; margin-top: 10px; }
.fi-crow__slot-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4d6a5b; margin-bottom: 5px; }
.fi-i { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fi-crow__select { position: relative; display: inline-block; max-width: 100%; }
.fi-crow__select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid #1b6448; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.fi-crow select { appearance: none; -webkit-appearance: none; min-height: 44px; border: 1px solid #b9ccbd; border-radius: 12px; background: #f4faf5; padding: 0 36px 0 14px; font-size: 16px; font-weight: 700; max-width: 100%; color: #0c583d; cursor: pointer; }
.fi-crow b { white-space: nowrap; }
.fi-drawer__total { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; padding-top: 12px; border-top: 1px solid #eee9e2; }
.fi-drawer__total > span { color: #55695c; font-size: 13px; }
.fi-drawer__total strong { font-size: 22px; font-weight: 800; font-family: 'Raleway', 'Roboto', sans-serif; }
.fi-drawer .fi-cta { text-decoration: none; }
.fi-drawer__links { display: flex; gap: 9px; margin-top: 10px; }
.fi-drawer__links button { flex: 1; border: 1px solid #b9ccbd; background: #fff; border-radius: 10px; min-height: 44px; padding: 0 10px; color: #1b6448; font-weight: 800; font-size: 13px; }
.fi-drawer__confirm p { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--fi-ink); }
.fi-drawer__links button.is-danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.fi-drawer__links button:focus-visible, .fi-drawer .fi-cta:focus-visible { outline: 3px solid #1b6448; outline-offset: 2px; }
.fi-drawer__links--solo { margin-top: 14px; }
.fi-drawer__empty { padding: 12px; background: #f3f5ee; border-radius: 12px; font-size: 13px; color: #4f6455; margin-top: 8px; }
.fi-drawer__err { margin: 10px 0 0; color: #b91c1c; font-size: 13px; font-weight: 600; }

/* ---------- Visor de fotos ---------- */
.fi-lb { position: fixed; inset: 0; z-index: 110; background: rgba(10, 23, 21, .96); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 56px; }
.fi-lb.is-open { display: flex; }
.fi-lb img { max-width: min(100%, 1000px); max-height: 100%; object-fit: contain; border-radius: 10px; }
.fi-lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.fi-lb__close { position: absolute; top: 12px; right: 12px; background: #fff; color: #08321f; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.fi-lb__nav { display: contents; } /* las flechas se posicionan solas, flanqueando la foto */
.fi-lb__nav button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #154733; font-size: 26px; width: 48px; height: 48px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.fi-lb__nav button:first-child { left: 8px; }
.fi-lb__nav button:last-child { right: 8px; }
.fi-lb__cap { position: absolute; bottom: 16px; left: 20px; right: 20px; text-align: center; color: #fff; font-size: 13px; }

[x-cloak] { display: none !important; }

/* ==========================================================================
   >= 561px
   ========================================================================== */
@media (min-width: 561px) {
  .fi-crumb { margin: 20px 0 14px; }
  .fi-title { font-size: clamp(34px, 5vw, 48px); }
  .fi-gallery { gap: 8px; border-radius: 24px; }
  .fi-summary { padding: 20px; }
  .fi-book { padding: 18px; }
  .fi-sec { padding: 20px; }
  .fi-sec > h2, .fi-sec__h { font-size: 26px; }
  .fi-cols { gap: 12px; }
  .fi-cols > div { padding: 15px; }
  .fi-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fi-rcard__img { height: 142px; }
}

/* >= 841px: hero en dos columnas, secciones en dos columnas */
@media (min-width: 841px) {
  .fi-top { margin: 16px 0 22px; }
  .fi-title { font-size: clamp(38px, 4.2vw, 52px); letter-spacing: -.025em; }
  .fi-hero { grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr); gap: 24px; }
  .fi-gallery { height: clamp(310px, 34vw, 465px); }
  .fi-grid { grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .fi-grid > .fi-sec:only-child { grid-column: 1 / -1; }
  .fi-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .fi-book { position: sticky; top: 96px; }
}
@media (min-width: 768px) {
  .fi-ov { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fi-page * { transition: none !important; } /* !important: respeta la preferencia del usuario sobre cualquier transición de componente */
}
@media (max-width: 355px) {
  .fi-cols { grid-template-columns: 1fr; }
  .fi-rsum { grid-template-columns: 1fr; }
}

/* Enlaces con apariencia de botón: ganan a `.fi-page a { color: inherit }` */
.fi-page a.fi-cta { color: #fff; text-decoration: none; }
/* Con el cajón o el visor abiertos, el WhatsApp flotante no debe quedar encima. */
html.fi-modal .lvt-wa { display: none !important; } /* !important: el <a> flotante trae display:flex inline */
/* Área táctil de 44px en el chip-enlace sin cambiar su tamaño visual */
a.fi-fact { position: relative; }
a.fi-fact::after { content: ''; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }

/* Campo de fecha (flatpickr altInput): mismo aspecto que el input anterior */
.fi-book input.fi-date { width: 100%; cursor: pointer; }
/* Un solo indicador de foco en la fecha: el borde azul + anillo de Tailwind forms/flatpickr se anulan y queda el anillo dorado del sitio */
.fi-page .fi-book input.fi-date:focus,
.fi-page .fi-book input.fi-date.active { border-color: #b9c9bd; box-shadow: none; }
