/* ============================================================
   Enterprise Moto — coleccion.css
   Plantilla/bloque «Colección de viajes» (#5).
   Fase 1: tarjetas del bloque enterprise/trip-collection.
   (El chrome del hero y el ticker — .col-*, .ticker — se añade en la Fase 3.)
   Tokens (--gold, --border, …) definidos en style.css.
   ============================================================ */

/* ── Rejilla de tarjetas de viaje ── */
.ent-trip-collection .trip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ent-trip-collection .trip-card {
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.ent-trip-collection .trip-card:hover {
  box-shadow: 0 6px 24px rgba(var(--shadow-rgb),.09);
  transform: translateY(-3px);
}

/* ── Miniatura ── */
.ent-trip-collection .trip-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.ent-trip-collection .trip-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ent-trip-collection .trip-thumb-fallback { line-height: 1; }

.ent-trip-collection .trip-thumb .type-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 12px;
}
.ent-trip-collection .trip-thumb .year-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 12px;
}

/* ── Cuerpo ── */
.ent-trip-collection .trip-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ent-trip-collection .trip-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--black);
}
.ent-trip-collection .trip-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

/* ── Pie de 3 datos ── */
.ent-trip-collection .trip-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ent-trip-collection .trip-meta-i {
  flex: 1;
  padding: 10px 0 10px 12px;
  border-right: 1px solid var(--border);
}
.ent-trip-collection .trip-meta-i:first-child { padding-left: 0; }
.ent-trip-collection .trip-meta-i:last-child { border-right: none; }
.ent-trip-collection .trip-meta-n {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .03em;
  color: var(--black);
  line-height: 1;
}
.ent-trip-collection .trip-meta-l {
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 3px;
}

/* ── Flecha-botón (footer de la card) ── */
.ent-trip-collection .trip-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.ent-trip-collection .trip-arrow {
  width: 32px; height: 32px;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ent-trip-collection .trip-card:hover .trip-arrow {
  background: var(--gold); color: var(--black);
}

/* ── Gradientes de reserva (sin imagen destacada) ── */
.ent-trip-collection .bg1 { background: var(--grad-col1); }
.ent-trip-collection .bg2 { background: var(--grad-col2); }
.ent-trip-collection .bg3 { background: var(--grad-col3); }
.ent-trip-collection .bg4 { background: var(--grad-col4); }
.ent-trip-collection .bg5 { background: var(--grad-col5); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .ent-trip-collection .trip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ent-trip-collection .trip-grid { grid-template-columns: 1fr; }
}

/* ── #11: encaje de la .trip-card en el scaffolding de post-stages ──
   El layout (track, slides, timeline) lo gobierna carousel.css (.ent-stages*).
   Aquí solo el encaje de la tarjeta dentro del slide/fila; sin duplicar layout.
   Escopado a .ent-trip-collection (el contenedor lleva ambas clases), de modo
   que post-stages no se ve afectado. */
.ent-trip-collection.ent-stages--carousel .trip-card { height: 100%; }
.ent-trip-collection.ent-stages--timeline .trip-card { margin-bottom: 12px; }

/* ============================================================
   HERO + TICKER + CUERPO de la plantilla «Colección de viajes» (#5, Fase 3)
   El hero NO re-padea el nav: .site-main ya lleva padding-top:var(--nav-h).
   Ticker escopado bajo .col-hero con keyframe propio para no chocar con el
   ticker global (.ticker-track/.ticker-item de style.css).
   ============================================================ */

/* ── Hero ── */
.col-hero { background: var(--black); position: relative; overflow: hidden; }
.col-hero-watermark {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(100px, 14vw, 180px);
  letter-spacing: .06em; color: rgba(var(--white-rgb),.025);
  pointer-events: none; user-select: none; white-space: nowrap; line-height: 1; z-index: 0;
}
.col-hero-inner { max-width: 1240px; margin: 0 auto; padding: 56px 40px 0; position: relative; z-index: 1; }

.col-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(var(--white-rgb),.35); margin-bottom: 20px;
}
.col-breadcrumb a { color: rgba(var(--white-rgb),.35); text-decoration: none; }
.col-breadcrumb span:last-child { color: var(--gold); }

.col-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(var(--gold-rgb),.12); border: 1px solid rgba(var(--gold-rgb),.35);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 2px; margin-bottom: 20px;
}
.col-badge b { color: var(--white); font-weight: 700; }

.col-title {
  font-family: var(--font-display); font-size: clamp(56px, 7vw, 96px);
  letter-spacing: .03em; line-height: .9; color: var(--white);
  margin-bottom: 14px; text-transform: uppercase;
}
.col-title em { color: var(--gold); font-style: normal; }
.col-subtitle { font-size: 15px; font-weight: 300; color: rgba(var(--white-rgb),.5); line-height: 1.7; max-width: 520px; }

.col-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 48px; border-top: 1px solid rgba(var(--white-rgb),.08);
}
.col-stat { flex: 1 1 0; min-width: 140px; padding: 20px 0 20px 24px; border-right: 1px solid rgba(var(--white-rgb),.08); }
.col-stat:first-child { padding-left: 0; }
.col-stat:last-child { border-right: none; }
.col-stat-n { font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; color: var(--gold); line-height: 1; }
.col-stat-l { font-size: 11px; color: rgba(var(--white-rgb),.35); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.col-updated { margin-top: 14px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--white-rgb),.28); padding-bottom: 8px; }

/* ── Ticker (escopado; no hereda ni pisa el global) ── */
.col-hero .ticker { background: var(--gold); overflow: hidden; padding: 8px 0; margin-top: 40px; }
.col-hero .ticker-track { display: flex; width: max-content; animation: col-ticker-scroll 30s linear infinite; }
.col-hero .ticker-item { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; color: var(--black); padding: 0 26px; white-space: nowrap; }
.col-hero .ticker-item::after { content: '✦'; margin-left: 26px; opacity: .45; }
@keyframes col-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Cuerpo editorial (bloques curados) ── */
.col-body { max-width: 1240px; margin: 0 auto; padding: 64px 40px 24px; }
.col-content { display: flow-root; }            /* contención de floats (§13.2) */
.col-content > * + * { margin-top: 32px; }

@media (max-width: 640px) {
  .col-hero-inner, .col-body { padding-left: 20px; padding-right: 20px; }
}
