/**
 * Checkit · estándar visual (explorar / catálogo / cupos / detalle)
 * Hero limpio · copy debajo · jerarquía · FAB stack equidistante
 */
:root {
  --ck-gold: #c9953a;
  --ck-gold-soft: #e4bc5c;
  --ck-ink: #0c1218;
  --ck-night: #081018;
  --ck-sky: #2f8fb8;
  --ck-frame: min(1120px, calc(100% - 2rem));
  --ck-hero-h: min(68svh, 640px);
  --ck-float-gap-equal: 22px;
}

/* —— Scroll fiable (rueda / tactil): nunca anidar overflow en body —— */
html:has(.page-explorar-hub),
html:has(.page-resultados),
html:has(.page-ofertas-cupos),
html:has(.page-folleto-oferta-cupo),
html:has(.page-detalle) {
  height: auto !important;
  overflow-x: clip;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

html:has(body.is-mobile-nav-open) {
  overflow: visible !important;
}

html:has(.page-explorar-hub) body.page-explorar-hub,
body.page-resultados,
body.page-ofertas-cupos,
body.page-folleto-oferta-cupo,
body.page-detalle {
  overflow-x: clip !important;
  overflow-y: visible !important;
  touch-action: pan-y;
  min-height: 100%;
  height: auto !important;
}

body.is-mobile-nav-open.page-explorar-hub,
body.is-mobile-nav-open.page-resultados,
body.is-mobile-nav-open.page-ofertas-cupos,
body.is-mobile-nav-open.page-folleto-oferta-cupo,
body.is-mobile-nav-open.page-detalle {
  overflow: hidden !important;
  touch-action: none !important;
}

/* —— Hero limpio (sin textos encima) —— */
.c-checkit-hero {
  position: relative;
  width: 100%;
  height: var(--ck-hero-h);
  min-height: 280px;
  max-height: 780px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  margin: 0;
  padding: 0;
}

.c-checkit-hero__media,
.c-checkit-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.c-checkit-hero__media img,
.c-checkit-hero__media video,
.c-checkit-hero__bg img,
.c-checkit-hero__bg video,
.c-checkit-hero img,
.c-checkit-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

@media (min-width: 700px) {
  :root { --ck-hero-h: min(72svh, 700px); }
  .c-checkit-hero img,
  .c-checkit-hero video,
  .c-checkit-hero__bg img,
  .c-checkit-hero__media img {
    object-position: center 32%;
  }
}

@media (min-width: 1100px) {
  :root { --ck-hero-h: min(76vh, 760px); }
}

@media (max-width: 699px) {
  :root { --ck-hero-h: min(52svh, 420px); }
}

/* Intro debajo del hero */
.c-checkit-intro {
  position: relative;
  z-index: 2;
  padding: 1.75rem 0 0.35rem;
  text-align: center;
  background:
    radial-gradient(900px 220px at 50% 0%, rgba(232, 184, 109, 0.22), transparent 70%),
    #f4f6f8;
  color: #062a4a;
}

.c-checkit-intro--light {
  background:
    radial-gradient(900px 240px at 50% 0%, rgba(201, 149, 58, 0.12), transparent 65%),
    linear-gradient(180deg, #101820 0%, #f8fafc 70%);
}

.c-checkit-intro__frame {
  width: var(--ck-frame);
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 0 1.25rem;
}

.c-checkit-intro__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a3412;
}

.c-checkit-intro__title {
  margin: 0 0 0.55rem;
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #062a4a;
  text-shadow: none;
}

.c-pkg-flex-banner {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #062a4a;
  background: linear-gradient(90deg, #ffd7a8, #fff7ed);
  border: 1px solid #e8b86d;
  box-shadow: 0 8px 22px rgba(232, 93, 4, 0.18);
}

.c-checkit-intro__lead {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.5;
  color: #475569;
}

.c-checkit-intro__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 1.25rem;
  border-radius: 18px;
  background: #062a4a;
  border: 1px solid #0b3a63;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 12px 28px rgba(6, 42, 74, 0.28);
}

.c-checkit-intro__count strong {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffd7a8;
  line-height: 1;
}

/* —— FAB stack equidistante: WA · IA · Subir —— */
:root {
  --checkit-float-gap: var(--ck-float-gap-equal);
  --checkit-float-scroll-gap: var(--ck-float-gap-equal);
}

.c-detalle-scroll-top,
.c-checkit-scroll-top {
  position: fixed;
  right: var(--checkit-float-safe-right, max(16px, env(safe-area-inset-right, 0px)));
  bottom: var(
    --checkit-float-clear-stack,
    calc(max(16px, env(safe-area-inset-bottom, 0px)) + 58px + 22px + 58px + 22px)
  );
  z-index: 88;
  /* Mismo diámetro que WhatsApp / Chat IA */
  width: var(--checkit-float-wa-size, 58px);
  height: var(--checkit-float-wa-size, 58px);
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 100%;
  animation: waGravityBounce 2.8s cubic-bezier(0.22, 0.9, 0.3, 1.15) infinite;
  will-change: transform;
  transition: bottom 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.c-detalle-scroll-top::before,
.c-checkit-scroll-top::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(234, 88, 12, 0.55);
  animation: waPulseRing 2.8s ease-out infinite;
  pointer-events: none;
}

.c-detalle-scroll-top[hidden],
.c-checkit-scroll-top[hidden] {
  display: none !important;
}

.c-detalle-scroll-top:hover,
.c-checkit-scroll-top:hover,
.c-detalle-scroll-top:focus-visible,
.c-checkit-scroll-top:focus-visible {
  animation: none;
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(180deg, #c2410c 0%, #9a3412 100%);
  box-shadow: 0 14px 28px rgba(154, 52, 18, 0.45);
  outline: none;
}

.c-detalle-scroll-top:hover::before,
.c-checkit-scroll-top:hover::before,
.c-detalle-scroll-top:focus-visible::before,
.c-checkit-scroll-top:focus-visible::before {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .c-detalle-scroll-top,
  .c-checkit-scroll-top,
  .c-detalle-scroll-top::before,
  .c-checkit-scroll-top::before {
    animation: none !important;
  }
}

/* —— Range precio con pulso —— */
.c-filter-price {
  display: grid;
  gap: 0.65rem;
}

.c-filter-price__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.c-filter-price__value {
  font-family: "Syne", "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #c2410c;
  text-transform: none;
}

.c-filter-price__track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.c-filter-block input[type="range"].c-filter-price__range,
input[type="range"].c-filter-price__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fdba74 0%, #ea580c 55%, #c9953a 100%);
  outline: none;
  border: 0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15);
}

.c-filter-block input[type="range"].c-filter-price__range::-webkit-slider-thumb,
input[type="range"].c-filter-price__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe8a3, #ea580c 55%, #9a3412);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 0 rgba(234, 88, 12, 0.45),
    0 6px 16px rgba(194, 65, 12, 0.45);
  cursor: pointer;
  animation: ck-price-pulse 1.8s ease-out infinite;
}

.c-filter-block input[type="range"].c-filter-price__range::-moz-range-thumb,
input[type="range"].c-filter-price__range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe8a3, #ea580c 55%, #9a3412);
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.45);
  cursor: pointer;
}

@keyframes ck-price-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5), 0 6px 16px rgba(194, 65, 12, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(234, 88, 12, 0), 0 6px 16px rgba(194, 65, 12, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0), 0 6px 16px rgba(194, 65, 12, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .c-filter-block input[type="range"].c-filter-price__range::-webkit-slider-thumb,
  input[type="range"].c-filter-price__range::-webkit-slider-thumb {
    animation: none;
  }
}
