/* ============================================================
   FICHA DE VIAJE (.vce-ficha) · Dirección C
   Usa las utilidades de home.css (.vce-aurora, .vce-grain, .vce-eyebrow,
   .vce-script, .vce-btn) y la tarjeta viaje-card.css en relacionados.
   ============================================================ */

/* ---------- Hero ---------- */
.vce-ficha__hero { position: relative; overflow: hidden; background: var(--vce-yale); color: var(--vce-hueso); padding: 9rem 0 4rem; min-height: min(70vh, 640px); display: flex; align-items: flex-end; }
.vce-ficha__hero:not(.vce-ficha__hero--photo) { min-height: 0; padding-bottom: 3.5rem; }
.vce-ficha__hero-media { position: absolute; inset: 0; }
.vce-ficha__hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vce-ficha__hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,24,58,.45) 0%, rgba(0,24,58,.15) 40%, rgba(0,48,117,.85) 100%); z-index: 1; }
.vce-ficha__hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; width: 100%; }
.vce-ficha__hero .vce-breadcrumbs, .vce-ficha__hero .vce-breadcrumbs a, .vce-ficha__hero .vce-breadcrumbs [aria-current="page"] { color: rgba(247,247,242,.7); }
.vce-ficha__title { font-family: var(--vce-font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem); line-height: .98; margin: 0; color: var(--vce-hueso); text-wrap: balance; max-width: 16ch; }
.vce-ficha__meta { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.vce-ficha__meta li { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: rgba(247,247,242,.12); border: 1px solid rgba(247,247,242,.28); backdrop-filter: blur(8px); font-size: .875rem; }
.vce-ficha__meta svg { width: 16px; height: 16px; color: #E9C48A; }

/* ---------- Cuerpo ---------- */
.vce-ficha__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem); align-items: start; }
.vce-ficha__main { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); min-width: 0; }
.vce-ficha__sec { display: flex; flex-direction: column; gap: 1rem; }
.vce-ficha__h2 { font-family: var(--vce-font-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.05; color: var(--vce-yale); margin: 0; text-wrap: balance; }
.vce-ficha__h3 { font-family: var(--vce-font-display); font-weight: 600; font-size: 1.25rem; color: var(--vce-yale); margin: 0 0 .75rem; }
.vce-prose { font-size: 1.0625rem; line-height: 1.7; color: #2B3138; }
.vce-prose p { margin: 0 0 1em; }
.vce-prose p:last-child { margin-bottom: 0; }
.vce-ficha__desc { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.65; color: var(--vce-gris-oscuro); }
.vce-ficha__desc > p:first-child::first-letter { font-family: var(--vce-font-display); font-size: 3.2em; line-height: .8; float: left; padding: .12em .12em 0 0; color: var(--vce-bronce); font-weight: 600; }
.vce-ficha__nota { font-size: .875rem; color: var(--vce-gris-medio); margin: .5rem 0 0; }

/* Póster (imagen destacada íntegra, p. ej. el flyer de Instagram) */
.vce-ficha__poster { margin: 0; max-width: 460px; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,48,117,.14); }
.vce-ficha__poster img { display: block; width: 100%; height: auto; }

/* Galería mosaico */
.vce-ficha__mosaico { display: grid; gap: .6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; }
.vce-ficha__foto { position: relative; border: 0; padding: 0; margin: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--vce-columbia); }
.vce-ficha__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.vce-ficha__foto:hover img { transform: scale(1.05); }
.vce-ficha__foto:focus-visible { outline: 3px solid var(--vce-picton); outline-offset: 2px; }
.vce-ficha__mosaico .vce-ficha__foto:first-child { grid-column: span 2; grid-row: span 2; }
.vce-ficha__mosaico--2 .vce-ficha__foto:nth-child(2), .vce-ficha__mosaico--3 .vce-ficha__foto:nth-child(2) { grid-column: span 2; }
.vce-ficha__mosaico--3 .vce-ficha__foto:nth-child(3) { grid-column: span 2; }
.vce-ficha__foto-mas { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,48,117,.55); color: var(--vce-hueso); font-family: var(--vce-font-display); font-size: 1.5rem; font-weight: 600; }

/* Itinerario: línea del relato */
.vce-itin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vce-itin__dia { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.25rem; position: relative; padding-bottom: 2rem; }
.vce-itin__dia::before { content: ""; position: absolute; left: 41px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--vce-bronce), rgba(193,133,54,.15)); }
.vce-itin__dia:last-child::before { bottom: auto; height: 2rem; }
.vce-itin__num { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; background: var(--vce-yale); color: var(--vce-hueso); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
.vce-itin__num:empty { width: 14px; height: 14px; margin-left: 35px; background: var(--vce-bronce); }
.vce-itin__num-label { font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase; color: #E9C48A; }
.vce-itin__num-val { font-family: var(--vce-font-display); font-size: 1.75rem; font-weight: 600; }
.vce-itin__pasos { display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; }
.vce-itin__paso { background: var(--vce-blanco); border-radius: 20px; padding: 1.1rem 1.35rem; border: 1px solid var(--vce-color-border); }
.vce-itin__hora { display: inline-block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vce-bronce-tinta); font-weight: 600; margin-bottom: .3rem; }
.vce-itin__titulo { font-family: var(--vce-font-display); font-size: 1.125rem; font-weight: 600; color: var(--vce-yale); margin: 0; }
.vce-itin__texto { margin: .45rem 0 0; font-size: .95rem; line-height: 1.6; color: #4A4F55; }

/* Incluye / no incluye */
.vce-ficha__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.vce-ficha__col { background: var(--vce-blanco); border-radius: 24px; padding: 1.5rem; border: 1px solid var(--vce-color-border); }
.vce-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; line-height: 1.5; color: #2B3138; }
.vce-check-list li { position: relative; padding-left: 1.75rem; }
.vce-check-list li::before { position: absolute; left: 0; top: .1em; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.vce-check-list--si li::before { content: "✓"; background: rgba(0,79,119,.1); color: var(--vce-indigo); }
.vce-check-list--no li::before { content: "✕"; background: rgba(193,133,54,.12); color: var(--vce-bronce-tinta); }

/* Tabla de precios */
.vce-precios { width: 100%; border-collapse: collapse; background: var(--vce-blanco); border-radius: 20px; overflow: hidden; }
.vce-precios th, .vce-precios td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--vce-color-border); font-size: .95rem; }
.vce-precios th { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vce-gris-medio); background: var(--vce-hueso); }
.vce-precios td:last-child { font-family: var(--vce-font-display); font-weight: 600; color: var(--vce-yale); }

/* Política */
.vce-ficha__politica { background: var(--vce-blanco); border-radius: 20px; border: 1px solid var(--vce-color-border); }
.vce-ficha__politica summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem; font-family: var(--vce-font-display); font-weight: 600; color: var(--vce-yale); }
.vce-ficha__politica summary::-webkit-details-marker { display: none; }
.vce-ficha__politica summary svg { transition: transform .25s; color: var(--vce-bronce); }
.vce-ficha__politica[open] summary svg { transform: rotate(180deg); }
.vce-ficha__politica-body { padding: 0 1.35rem 1.25rem; font-size: .9rem; }

/* Mapa */
.vce-ficha__mapa { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.vce-ficha__mapa iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Tarjeta de reserva ---------- */
.vce-ficha__aside { position: sticky; top: 6rem; }
.vce-reserva { background: var(--vce-blanco); border-radius: 28px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; box-shadow: 0 30px 80px rgba(0,48,117,.1); border: 1px solid var(--vce-color-border); }
.vce-reserva__precio { margin: 0; display: flex; flex-direction: column; line-height: 1.05; }
.vce-reserva__desde { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vce-gris-medio); margin-bottom: .35rem; }
.vce-reserva__precio strong { font-family: var(--vce-font-display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; color: var(--vce-yale); }
.vce-reserva__base { font-size: .8125rem; color: #4A4F55; margin-top: .4rem; }
.vce-reserva__precio--consultar strong { font-size: 1.5rem; color: var(--vce-bronce-tinta); }
.vce-reserva__anticipo { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; min-height: 34px; padding: 0 .9rem; border-radius: 999px; background: var(--vce-bronce); color: var(--vce-hueso); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.vce-reserva__datos { margin: 0; display: flex; flex-direction: column; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--vce-color-border); border-bottom: 1px solid var(--vce-color-border); }
.vce-reserva__datos div { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.vce-reserva__datos dt { color: var(--vce-gris-medio); }
.vce-reserva__datos dd { margin: 0; text-align: right; color: var(--vce-gris-oscuro); font-weight: 500; }
.vce-reserva__acciones { display: flex; flex-direction: column; gap: .6rem; }
.vce-reserva__acciones .vce-btn { width: 100%; }
.vce-reserva__pdf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem; font-size: .875rem; color: var(--vce-indigo); text-decoration: underline; text-underline-offset: 3px; }
.vce-reserva__cert { margin: 0; font-size: .75rem; color: var(--vce-gris-medio); text-align: center; }

/* ---------- Relacionados y CTA ---------- */
.vce-ficha__rel { padding-block: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; gap: 1.25rem; }
.vce-ficha__rel .vce-viajes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.vce-ficha__cta { padding: 0 2rem 3rem; }
.vce-ficha__cta-box { max-width: var(--vce-container-wide); margin: 0 auto; border-radius: 40px; background: var(--vce-yale); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; position: relative; overflow: hidden; }
.vce-ficha__cta-box > :not(.vce-aurora) { position: relative; z-index: 1; }
.vce-ficha__cta-title { font-family: var(--vce-font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: .98; color: var(--vce-hueso); margin: 0; max-width: 16ch; text-wrap: balance; }

/* ---------- Lightbox (assets/js/viaje-gallery.js) ---------- */
.vce-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0, 12, 30, .92); padding: 4vh 4vw; }
.vce-lightbox[hidden] { display: none; }
.vce-lightbox__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.vce-lightbox__img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 12px 48px rgba(0, 0, 0, .55); }
.vce-lightbox__close, .vce-lightbox__nav { position: absolute; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: #fff; background: rgba(247,247,242,.12); border-radius: 50%; line-height: 1; transition: background .15s ease; }
.vce-lightbox__close:hover, .vce-lightbox__nav:hover, .vce-lightbox__close:focus-visible, .vce-lightbox__nav:focus-visible { background: rgba(247,247,242,.3); outline: none; }
.vce-lightbox__close { top: 16px; right: 20px; width: 48px; height: 48px; font-size: 32px; }
.vce-lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 40px; }
.vce-lightbox__nav--prev { left: 12px; }
.vce-lightbox__nav--next { right: 12px; }
.vce-lightbox__counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .8125rem; background: rgba(0,0,0,.45); padding: 4px 14px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vce-ficha__body { grid-template-columns: 1fr; }
  .vce-ficha__aside { position: static; }
  .vce-ficha__rel .vce-viajes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vce-ficha__hero { padding: 6.5rem 0 2.5rem; min-height: 0; }
  .vce-ficha__meta li { min-height: 36px; font-size: .8125rem; }
  .vce-ficha__mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .vce-ficha__cols { grid-template-columns: 1fr; }
  .vce-itin__dia { grid-template-columns: 56px minmax(0, 1fr); gap: .9rem; }
  .vce-itin__dia::before { left: 27px; }
  .vce-itin__num { width: 56px; height: 56px; }
  .vce-itin__num:empty { margin-left: 21px; }
  .vce-itin__num-val { font-size: 1.25rem; }
  .vce-reserva { border-radius: 22px; padding: 1.35rem; }
  .vce-ficha__rel .vce-viajes-grid { grid-template-columns: 1fr; }
  .vce-ficha__cta { padding: 0 .75rem 2rem; }
  .vce-ficha__cta-box { border-radius: 28px; }
  .vce-lightbox__nav { width: 46px; height: 46px; font-size: 32px; }
  .vce-lightbox__close { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .vce-ficha__foto img, .vce-ficha__politica summary svg { transition: none; }
  .vce-ficha__foto:hover img { transform: none; }
}

/* v0.18.0 · botón "Ver itinerario completo" dentro de la descripción */
.vce-ficha__desc .vce-ficha__itin-btn { margin: .25rem 0 .75rem; text-decoration: none; }
.vce-ficha__desc p > .vce-ficha__itin-btn:only-child { margin: 0; }
/* v0.18.1 · enlace de texto cuando el botón ya está en la tarjeta */
.vce-ficha__desc .vce-ficha__itin-link { color: var(--vce-indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vce-ficha__desc .vce-ficha__itin-link:hover { color: var(--vce-yale); }
