/* Isla de cristal: superficie casi clara, selección estable y luz del cursor. */
.cine-home .family-choices {
  --crystal-x: 50%;
  --crystal-y: 50%;
  position: absolute;
  inset: auto 0 clamp(28px, 6.2vh, 68px);
  width: min(760px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  display: block;
  z-index: 3;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.cine-home .family-choices::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgb(255 255 255 / 4%), transparent 48%, rgb(255 255 255 / 2%)), rgb(10 16 18 / 7%);
  backdrop-filter: var(--optical-filter, blur(.55px)) var(--crystal-refraction, blur(0px)) saturate(104%);
  -webkit-backdrop-filter: var(--optical-filter, blur(.55px)) var(--crystal-refraction, blur(0px)) saturate(104%);
}

.cine-home .family-choices::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 62%), rgb(255 255 255 / 15%) 13%, rgb(255 255 255 / 12%) 75%, rgb(255 255 255 / 58%));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 1;
}

.cine-home .family-choices .family-choices__track {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.cine-home .family-choices .family-option,
.cine-home .family-choices .family-option.is-active {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cine-home .family-choices .family-choice,
.cine-home .family-choices .family-choice[aria-pressed=true] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 14px 18px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(255 255 255 / 85%);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgb(0 0 0 / 55%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease, background-color 180ms ease;
}

.cine-home .family-choices .family-choice:hover,
.cine-home .family-choices .family-choice[aria-pressed=true] {
  background: transparent;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 8px rgb(0 0 0 / 55%);
}

.cine-home .family-choices .family-choice::before { display: none; }

.cine-home .family-choices .family-choice::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 20%);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cine-home .family-choices .family-choice[aria-pressed=true]::after { opacity: 1; }
.cine-home .family-choices .family-choice:focus-visible { outline: 2px solid rgb(255 255 255 / 90%); outline-offset: -5px; }
.cine-home .family-choices .family-choice:active { background: rgb(255 255 255 / 8%); }
.cine-home .family-choices .family-cursor,
.cine-home .family-choices .family-progress { display: none !important; }

/* La luz vive dentro del cristal; las letras quedan encima y nítidas. */
.family-glass-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.family-choices.is-crystal-lit .family-glass-light { opacity: 1; }

.family-glass-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 145px 42px at var(--crystal-x) var(--crystal-y), rgb(255 255 255 / 19%), rgb(255 255 255 / 7%) 45%, transparent 100%);
}

.family-glass-light::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(ellipse 140px 70px at var(--crystal-x) var(--crystal-y), rgb(255 255 255 / 95%), transparent 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.family-media { --hero-travel: clamp(24px, 5.4vw, 76px); }

/* Tamaño predeterminado de la isla: desde 1280 px crece con la pantalla hasta 1,5 veces
   (1140 × 90 px en 1920 px). A 1280 px mide lo mismo que antes; por debajo no cambia. */
@media (min-width: 1280px) {
  .cine-home .family-choices { width: min(1140px, 59.4vw); }
  .cine-home .family-choices .family-choices__track { padding: 0 clamp(8px, .625vw, 12px); }
  .cine-home .family-choices .family-choice,
  .cine-home .family-choices .family-choice[aria-pressed=true] {
    min-height: clamp(60px, 4.7vw, 90px);
    padding: clamp(14px, 1.1vw, 21px) clamp(18px, 1.4vw, 27px) clamp(18px, 1.4vw, 27px);
    font-size: clamp(13px, 1.017vw, 19.5px);
  }
  .cine-home .family-choices .family-choice::after {
    bottom: clamp(9px, .7vw, 13.5px);
    width: clamp(5px, .39vw, 7.5px);
    height: clamp(5px, .39vw, 7.5px);
  }
}

@media (max-width: 767px) {
  .cine-home .family-choices {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .cine-home .family-choices .family-choices__track { padding-inline: 5px; }
  .cine-home .family-choices .family-option,
  .cine-home .family-choices .family-option.is-active { flex: 0 0 auto; min-width: 112px; }
  .cine-home .family-choices .family-choice,
  .cine-home .family-choices .family-choice[aria-pressed=true] {
    min-height: 54px;
    padding: 12px 18px 18px;
    font-size: 11px;
    letter-spacing: .025em;
  }
}

@media (hover: none), (pointer: coarse) {
  .family-glass-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .family-glass-light,
  .cine-home .family-choices .family-choice,
  .cine-home .family-choices .family-choice::after { transition: none; }
}
