/* Hub explorar · WhatsApp + pautas · mobile / tablet / desktop */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

.page-explorar-hub {
  --hub-ink: #0c1218;
  --hub-sand: #f3efe6;
  --hub-gold: #c9953a;
  --hub-gold-soft: #e4bc5c;
  --hub-sky: #2f8fb8;
  --hub-night: #081018;
  --hub-frame: min(1080px, calc(100% - 2rem));
  margin: 0;
  min-height: 100%;
  background: var(--hub-night);
  color: #fff;
  font-family: "Outfit", "Segoe UI", sans-serif;
  /* Scroll en html (rueda mouse + tactil). No anidar overflow en body. */
  overflow: visible;
  touch-action: pan-y;
}

html:has(.page-explorar-hub) {
  height: auto !important;
  overflow-x: clip;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  scroll-behavior: smooth;
}

html:has(.page-explorar-hub) body.page-explorar-hub {
  height: auto !important;
  overflow: visible !important;
}

.page-explorar-hub .c-hub-main {
  display: block;
  width: 100%;
}

.page-explorar-hub .c-hub-frame {
  width: var(--hub-frame);
  margin: 0 auto;
  max-width: 1080px;
}

/* —— Top bar sobre el video —— */
.page-explorar-hub .c-hub-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  padding: max(0.85rem, env(safe-area-inset-top)) 1.15rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.page-explorar-hub .c-hub-top a {
  pointer-events: auto;
}

.page-explorar-hub .c-hub-top__logo {
  display: block;
  line-height: 0;
}

.page-explorar-hub .c-hub-top__logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

.page-explorar-hub .c-hub-top__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-explorar-hub .c-hub-top__wa:hover {
  background: rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* —— Video limpio: sin textos encima —— */
.page-explorar-hub .c-hub-video.c-page-hero,
.page-explorar-hub .c-hub-video {
  position: relative;
  width: 100%;
  height: var(--ck-hero-h, min(68svh, 640px));
  min-height: 280px;
  max-height: 780px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  display: block;
  padding: 0;
  margin: 0;
}

.page-explorar-hub .c-hub-video__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-explorar-hub .c-hub-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.page-explorar-hub .c-hub-video__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.page-explorar-hub .c-hub-video__el,
.page-explorar-hub .c-hub-video__poster {
  object-position: center 28%;
  filter: none;
  opacity: 1;
}

.page-explorar-hub .c-hub-video__el {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  background: #0a1628;
  pointer-events: none;
}

/* Compat con hero-video.js (clases home) */
.page-explorar-hub .c-page-hero__poster.is-hidden,
.page-explorar-hub .c-hub-video__poster.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

/* —— Intro debajo del video —— */
.page-explorar-hub .c-hub-intro {
  position: relative;
  z-index: 2;
  padding: 1.75rem 0 0.5rem;
  text-align: center;
  background:
    radial-gradient(900px 280px at 50% 0%, rgba(201, 149, 58, 0.18), transparent 70%),
    linear-gradient(180deg, #0a121a 0%, #0d1520 100%);
  animation: hub-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hub-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-explorar-hub .c-hub-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228, 188, 92, 0.9);
}

.page-explorar-hub .c-hub-brand {
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.7rem;
  background: linear-gradient(90deg, #fff 0%, var(--hub-gold-soft) 55%, var(--hub-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-explorar-hub .c-hub-lead {
  margin: 0 auto;
  max-width: 40ch;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* —— Secciones —— */
.page-explorar-hub .c-hub-section {
  position: relative;
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, #0d1520 0%, #101820 50%, #0a1016 100%);
}

.page-explorar-hub .c-hub-section--trust {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  background:
    radial-gradient(800px 260px at 80% 0%, rgba(47, 143, 184, 0.14), transparent 65%),
    linear-gradient(180deg, #0a1016 0%, #0c141c 100%);
}

.page-explorar-hub .c-hub-section__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-explorar-hub .c-hub-section__title {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(1.4rem, 3.8vw, 1.95rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.page-explorar-hub .c-hub-section__text {
  margin: 0 auto;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  font-size: 0.98rem;
}

/* —— Tarjetas con portada —— */
.page-explorar-hub .c-hub-paths {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.page-explorar-hub .c-hub-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #121c26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-explorar-hub .c-hub-card:hover,
.page-explorar-hub .c-hub-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.page-explorar-hub .c-hub-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a2430;
}

/* Sin velo: brillo y contraste originales de la foto */
.page-explorar-hub .c-hub-card__cover::after {
  content: none;
}

.page-explorar-hub .c-hub-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: none;
  opacity: 1;
  transition: transform 0.55s ease;
}

.page-explorar-hub .c-hub-card:hover .c-hub-card__cover img {
  transform: scale(1.05);
}

.page-explorar-hub .c-hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
}

.page-explorar-hub .c-hub-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-explorar-hub .c-hub-card h3 {
  margin: 0;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-explorar-hub .c-hub-card p {
  margin: 0;
  flex: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}

.page-explorar-hub .c-hub-card__go {
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Estilo propio: Catálogo */
.page-explorar-hub .c-hub-card--catalog {
  border-color: rgba(228, 188, 92, 0.35);
  background: linear-gradient(165deg, #1a160e 0%, #121820 100%);
}

.page-explorar-hub .c-hub-card--catalog .c-hub-card__badge {
  background: rgba(201, 149, 58, 0.22);
  color: var(--hub-gold-soft);
}

.page-explorar-hub .c-hub-card--catalog .c-hub-card__go {
  color: var(--hub-gold-soft);
}

.page-explorar-hub .c-hub-card--catalog:hover {
  border-color: rgba(228, 188, 92, 0.7);
  box-shadow: 0 18px 44px rgba(201, 149, 58, 0.22);
}

.page-explorar-hub .c-hub-card--catalog .c-hub-card__cover::after {
  content: none;
}

/* Estilo propio: Cupos */
.page-explorar-hub .c-hub-card--cupos {
  border-color: rgba(74, 180, 214, 0.4);
  background: linear-gradient(165deg, #0d1c24 0%, #102028 100%);
}

.page-explorar-hub .c-hub-card--cupos .c-hub-card__badge {
  background: rgba(61, 168, 204, 0.25);
  color: #8ed7f0;
}

.page-explorar-hub .c-hub-card--cupos .c-hub-card__go {
  color: #8ed7f0;
}

.page-explorar-hub .c-hub-card--cupos:hover {
  border-color: rgba(110, 210, 240, 0.75);
  box-shadow: 0 18px 44px rgba(47, 143, 184, 0.28);
}

.page-explorar-hub .c-hub-card--cupos .c-hub-card__cover::after {
  content: none;
}

/* Estilo propio: A medida */
.page-explorar-hub .c-hub-card--medida {
  border-color: rgba(90, 180, 140, 0.4);
  background: linear-gradient(165deg, #0e1a16 0%, #121c20 100%);
}

.page-explorar-hub .c-hub-card--medida .c-hub-card__badge {
  background: rgba(70, 160, 120, 0.28);
  color: #9be0bf;
}

.page-explorar-hub .c-hub-card--medida .c-hub-card__go {
  color: #9be0bf;
}

.page-explorar-hub .c-hub-card--medida:hover {
  border-color: rgba(120, 210, 170, 0.7);
  box-shadow: 0 18px 44px rgba(50, 140, 100, 0.25);
}

.page-explorar-hub .c-hub-card--medida .c-hub-card__cover::after {
  content: none;
}

/* —— Confianza: Videos / Metro TV —— */
.page-explorar-hub .c-hub-trust-actions {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.page-explorar-hub .c-hub-trust-btn {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-explorar-hub .c-hub-trust-btn i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.page-explorar-hub .c-hub-trust-btn span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.page-explorar-hub .c-hub-trust-btn strong {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-explorar-hub .c-hub-trust-btn em {
  font-style: normal;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

.page-explorar-hub .c-hub-trust-btn--video i {
  background: rgba(201, 149, 58, 0.22);
  color: var(--hub-gold-soft);
}

.page-explorar-hub .c-hub-trust-btn--tv i {
  background: rgba(47, 143, 184, 0.25);
  color: #8ed7f0;
}

.page-explorar-hub .c-hub-trust-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Opiniones (inyectadas por checkit-footer) en contexto hub */
.page-explorar-hub .testimonials-section {
  margin-top: 0.5rem;
  background: #0a1016;
}

.page-explorar-hub .c-footer-collective {
  margin-top: 0;
}

/* Tablet */
@media (min-width: 700px) {
  .page-explorar-hub {
    --hub-frame: min(1080px, calc(100% - 3rem));
  }

  .page-explorar-hub .c-hub-video {
    height: var(--ck-hero-h, min(72svh, 700px));
  }

  .page-explorar-hub .c-hub-video__el,
  .page-explorar-hub .c-hub-video__poster {
    object-position: center 32%;
  }

  .page-explorar-hub .c-hub-top {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .page-explorar-hub .c-hub-top__logo img {
    height: 46px;
  }

  .page-explorar-hub .c-hub-paths {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    align-items: stretch;
  }

  .page-explorar-hub .c-hub-card__cover {
    aspect-ratio: 4 / 3;
  }

  .page-explorar-hub .c-hub-trust-actions {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin: 0 auto;
  }

  .page-explorar-hub .c-hub-intro {
    padding-top: 2.25rem;
  }
}

/* Desktop / laptop */
@media (min-width: 1024px) {
  .page-explorar-hub .c-hub-video {
    height: var(--ck-hero-h, min(76vh, 760px));
  }

  .page-explorar-hub .c-hub-section {
    padding: 2.75rem 0 3.25rem;
  }

  .page-explorar-hub .c-hub-paths {
    gap: 1.35rem;
  }

  .page-explorar-hub .c-hub-card__body {
    padding: 1.3rem 1.35rem 1.45rem;
  }

  .page-explorar-hub .c-hub-card h3 {
    font-size: 1.28rem;
  }
}

/* Móvil angosto: un poco más de aire y scroll táctil cómodo */
@media (max-width: 699px) {
  .page-explorar-hub .c-hub-video {
    height: var(--ck-hero-h, min(52svh, 420px));
  }

  .page-explorar-hub .c-hub-paths {
    padding-bottom: 0.25rem;
  }

  .page-explorar-hub .c-hub-card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-explorar-hub .c-hub-intro,
  .page-explorar-hub .c-hub-card,
  .page-explorar-hub .c-hub-card__cover img,
  .page-explorar-hub .c-hub-trust-btn {
    animation: none !important;
    transition: none !important;
  }

  .page-explorar-hub .c-hub-card:hover .c-hub-card__cover img {
    transform: none;
  }
}

/* ── Vista campaña: ?filtro=destacados ── */
.page-explorar-hub.is-hub-destacados .c-hub-section--paths {
  display: none;
}

.page-explorar-hub .c-hub-section--destacados {
  padding-top: 0.5rem;
}

.page-explorar-hub .c-hub-destacados__status {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.page-explorar-hub .c-hub-destacados__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .page-explorar-hub .c-hub-destacados__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1100px) {
  .page-explorar-hub .c-hub-destacados__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-explorar-hub .c-hub-destacado-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #121a22;
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-explorar-hub .c-hub-destacado-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.page-explorar-hub .c-hub-destacado-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a2430;
}

.page-explorar-hub .c-hub-destacado-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}

.page-explorar-hub .c-hub-destacado-card__body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
}

.page-explorar-hub .c-hub-destacado-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.page-explorar-hub .c-hub-destacado-card__body h3 {
  margin: 0;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  line-height: 1.3;
}

.page-explorar-hub .c-hub-destacado-card__meta {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

.page-explorar-hub .c-hub-destacado-card__price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde68a;
}

.page-explorar-hub .c-hub-destacado-card__go {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fdba74;
}

.page-explorar-hub .c-hub-destacados__empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  text-align: center;
}

.page-explorar-hub .c-hub-destacados__foot {
  margin: 1.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.page-explorar-hub .c-hub-destacados__catalog-link {
  color: #fdba74;
  text-decoration: underline;
  text-underline-offset: 3px;
}
