/* ============================================================
   CATÁLOGO DE VIAJES (/viajes/ y taxonomías) · Dirección C
   Cabecera Yale con auroras (utilidades de home.css: .vce-aurora,
   .vce-grain, .vce-eyebrow, .vce-script, .vce-btn), barra de filtros
   con chips y selects, grid de .vce-vcard (viaje-card.css).
   ============================================================ */

/* ---------- Cabecera ---------- */
.vce-catalogo__hero { position: relative; overflow: hidden; background: var(--vce-yale); color: var(--vce-hueso); padding: 8.5rem 0 3.5rem; }
.vce-catalogo__hero-media { position: absolute; inset: 0; }
.vce-catalogo__hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vce-catalogo__hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,24,58,.55) 0%, rgba(0,48,117,.75) 100%); }
.vce-catalogo__hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; max-width: var(--vce-container-max); }
.vce-catalogo__hero .vce-breadcrumbs, .vce-catalogo__hero .vce-breadcrumbs a, .vce-catalogo__hero .vce-breadcrumbs [aria-current="page"] { color: rgba(247,247,242,.7); }
.vce-catalogo__hero .vce-breadcrumbs a:hover { color: var(--vce-hueso); }
.vce-catalogo__title { font-family: var(--vce-font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); line-height: .96; margin: 0; color: var(--vce-hueso); text-wrap: balance; max-width: 14ch; }
.vce-catalogo__sub { font-size: 1.0625rem; line-height: 1.6; color: rgba(247,247,242,.82); margin: 0; max-width: 38rem; font-weight: 300; }
.vce-catalogo__count { margin: .25rem 0 0; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #E9C48A; font-weight: 600; }

/* ---------- Contenedor ---------- */
.vce-catalogo { padding-block: 0 clamp(3rem, 6vw, 5rem); }

/* ---------- Filtros ---------- */
.vce-cat-filtros { position: relative; z-index: 3; margin-top: -1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.vce-cat-filtros__chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.vce-cat-filtros__chips > legend { padding: 0; margin-bottom: .6rem; color: #E9C48A; }
.vce-cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.vce-cat-chip { position: relative; cursor: pointer; }
.vce-cat-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vce-cat-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid rgba(247,247,242,.4); font-family: var(--vce-font-display); font-size: .9rem; font-weight: 500; color: var(--vce-hueso); background: rgba(247,247,242,.1); backdrop-filter: blur(8px); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.vce-cat-chip:hover span { background: rgba(247,247,242,.22); }
.vce-cat-chip input:checked + span { background: var(--vce-hueso); border-color: var(--vce-hueso); color: var(--vce-yale); }
.vce-cat-chip input:focus-visible + span { outline: 3px solid var(--vce-picton); outline-offset: 2px; }

.vce-cat-filtros__bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr) auto; gap: 0; align-items: stretch; background: var(--vce-blanco); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,48,117,.14); padding: .5rem; }
.vce-cat-filtros__field { display: flex; flex-direction: column; gap: .25rem; padding: .7rem 1.1rem; border-right: 1px solid var(--vce-color-border); min-width: 0; }
.vce-cat-filtros__field:last-of-type { border-right: 0; }
.vce-cat-filtros__field .vce-eyebrow { color: var(--vce-bronce-tinta); }
.vce-cat-filtros__field select, .vce-cat-filtros__field input { border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--vce-gris-oscuro); padding: 0; min-height: 28px; width: 100%; }
.vce-cat-filtros__field select:focus-visible, .vce-cat-filtros__field input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--vce-picton); }
.vce-cat-filtros__field input::placeholder { color: var(--vce-gris-medio); }
.vce-cat-filtros__actions { display: flex; align-items: center; gap: 1rem; padding: .35rem .5rem .35rem .9rem; }
.vce-cat-filtros__clear { display: none; font-size: .8125rem; color: var(--vce-indigo); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vce-cat-filtros__clear.is-visible { display: inline; }
/* Con JS el botón "Buscar" sobra (filtra al cambiar) pero lo dejamos para teclado; solo se compacta. */
.vce-cat-filtros--js .vce-cat-filtros__actions .vce-btn { min-height: 44px; }

/* Cabecera oscura: los chips van "sobre" el hero, por eso el margen negativo
   solo aplica a la barra blanca; los chips se pintan dentro del hero. */
.vce-catalogo__hero { padding-bottom: 7.5rem; }
.vce-cat-filtros { margin-top: -6.25rem; }
.vce-cat-filtros__chips { margin-bottom: .25rem; }

/* ---------- Resultados ---------- */
.vce-catalogo__results { position: relative; margin-top: 2.5rem; }
.vce-catalogo__results.is-loading .vce-viajes-grid { opacity: .45; pointer-events: none; }
.vce-catalogo__count { margin: 0 0 1.25rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vce-gris-medio); font-weight: 600; }
.vce-viajes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

.vce-catalogo__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; padding: clamp(3rem, 6vw, 5rem) 1rem; background: var(--vce-blanco); border-radius: 28px; }
.vce-catalogo__empty[hidden] { display: none; }
.vce-catalogo__empty-script { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: 0; }
.vce-catalogo__empty-text { margin: 0; max-width: 34rem; color: #4A4F55; line-height: 1.6; }

.vce-catalogo__loader { display: none; justify-content: center; padding: 1.5rem; }
.vce-catalogo__results.is-loading .vce-catalogo__loader { display: flex; }
.vce-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--vce-columbia); border-top-color: var(--vce-indigo); animation: vce-spin .8s linear infinite; }
@keyframes vce-spin { to { transform: rotate(360deg); } }

.vce-catalogo__more { display: flex; justify-content: center; margin-top: 2rem; }
.vce-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.vce-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--vce-color-border); color: var(--vce-yale); font-weight: 500; text-decoration: none; }
.vce-pagination .page-numbers.current { background: var(--vce-yale); border-color: var(--vce-yale); color: var(--vce-hueso); }
.vce-pagination .page-numbers.dots { border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vce-viajes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vce-cat-filtros__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vce-cat-filtros__field--search { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--vce-color-border); }
  .vce-cat-filtros__field:nth-of-type(2) { border-right: 0; }
  .vce-cat-filtros__actions { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--vce-color-border); padding-top: .75rem; }
}
@media (max-width: 640px) {
  .vce-catalogo__hero { padding-top: 6.5rem; padding-bottom: 6.5rem; }
  .vce-cat-filtros { margin-top: -5.25rem; }
  .vce-cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .vce-cat-chips::-webkit-scrollbar { display: none; }
  .vce-cat-chip span { white-space: nowrap; }
  .vce-cat-filtros__bar { grid-template-columns: 1fr; border-radius: 18px; }
  .vce-cat-filtros__field { border-right: 0; border-bottom: 1px solid var(--vce-color-border); }
  .vce-cat-filtros__field--search { border-top: 0; }
  .vce-cat-filtros__actions { border-top: 0; }
  .vce-cat-filtros__actions .vce-btn { flex: 1; }
  .vce-viajes-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .vce-catalogo__results { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vce-spinner { animation-duration: 1.6s; }
}

/* ---------- Cabecera con video (v0.11.3, Nosotros) ----------
   Mismo tratamiento que el hero del inicio: video a todo lo ancho, velo Yale lateral y vertical,
   una sola pasada y fundido al azul (la sección conserva su fondo Yale y sus auroras). Solo en
   escritorio; el JS (page-video.js) añade is-video-on / is-video-done. */
.vce-catalogo__hero--video { min-height: min(72vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; }
.vce-catalogo__hero-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.vce-catalogo__hero-video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,48,117,.96) 0%, rgba(0,48,117,.78) 30%, rgba(0,48,117,.42) 55%, rgba(0,48,117,.22) 75%, rgba(0,48,117,.3) 100%); }
.vce-catalogo__hero-video::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,48,117,.45) 0%, rgba(0,48,117,.05) 35%, rgba(0,48,117,.1) 65%, rgba(0,48,117,.7) 100%); }
.vce-catalogo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.vce-catalogo__hero.is-video-on .vce-catalogo__hero-video { opacity: .82; }
.vce-catalogo__hero.is-video-done .vce-catalogo__hero-video { opacity: 0; transition: opacity 3s ease; }
.vce-catalogo__hero.is-video-on .vce-catalogo__hero-media, .vce-catalogo__hero.is-video-done .vce-catalogo__hero-media { opacity: 0; }
.vce-catalogo__hero.is-video-on::before, .vce-catalogo__hero.is-video-done::before { opacity: 0; }
.vce-catalogo__hero .vce-hero__pause { display: none; position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,247,242,.35); background: rgba(0,48,117,.45); color: var(--vce-hueso); align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s ease, transform .16s cubic-bezier(.23,1,.32,1); }
.vce-catalogo__hero.is-video-on .vce-hero__pause { display: inline-flex; }
.vce-catalogo__hero .vce-hero__pause:active { transform: scale(.94); }
.vce-catalogo__hero .vce-hero__pause:focus-visible { outline: 3px solid var(--vce-picton); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .vce-catalogo__hero .vce-hero__pause:hover { background: rgba(0,48,117,.75); } }
.vce-catalogo__hero .vce-hero__pause svg { width: 18px; height: 18px; }
.vce-catalogo__hero .vce-hero__pause .vce-hero__pause-play { display: none; }
.vce-catalogo__hero .vce-hero__pause[aria-pressed="true"] .vce-hero__pause-play { display: block; }
.vce-catalogo__hero .vce-hero__pause[aria-pressed="true"] .vce-hero__pause-stop { display: none; }
@media (max-width: 900px) { .vce-catalogo__hero--video { min-height: 0; display: block; } .vce-catalogo__hero-video, .vce-catalogo__hero .vce-hero__pause { display: none; } }
