/* Ventana «¿Cómo prefieres pagar?» (js/elegir-pago.js). Caja oscura igual en Lab A, Lab B y TV;
   cada página cambia solo el color de acento con --ep-acento. */
.ep { --ep-acento: #b794ff; --ep-fondo: #141519; --ep-tinta: #f7f6f2; --ep-suave: rgba(247,246,242,.62); --ep-linea: rgba(255,255,255,.12);
  width: min(430px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 28px 22px 20px; overflow-y: auto;
  border: 1px solid var(--ep-linea); border-radius: 24px; background: var(--ep-fondo); color: var(--ep-tinta);
  font-family: inherit; box-shadow: 0 40px 100px -30px rgba(0,0,0,.75); color-scheme: dark; }
.ep::backdrop { background: rgba(10,10,14,.6); backdrop-filter: blur(6px); }
.ep[open] { animation: epSube .3s cubic-bezier(.2,.7,.2,1); }
@keyframes epSube { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.ep-cerrar { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ep-linea);
  background: transparent; color: var(--ep-tinta); font: 400 22px/1 system-ui, sans-serif; cursor: pointer; }
.ep-ceja { margin: 0; font: 600 11.5px/1 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ep-acento); }
.ep h2 { margin: 10px 40px 0 0; font: 700 26px/1.15 system-ui, sans-serif; letter-spacing: -.02em; color: var(--ep-tinta); }
.ep-monto { margin: 8px 0 0; color: var(--ep-suave); font-size: 14.5px; }
.ep-monto b { color: var(--ep-tinta); font-size: 16px; }
.ep-ops { display: grid; gap: 10px; margin-top: 20px; }
.ep-op { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; border-radius: 16px;
  border: 1px solid var(--ep-linea); background: rgba(255,255,255,.04); color: var(--ep-tinta); text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s; }
.ep-op:hover, .ep-op:focus-visible { border-color: var(--ep-acento); background: rgba(255,255,255,.08); transform: translateY(-1px); outline: none; }
.ep-op { grid-template-columns: 84px 1fr 20px; }
/* Logos de Mercado Pago y Redcompra en una placa del color de su propio fondo */
.ep-logo { display: grid; place-items: center; width: 84px; height: 46px; padding: 6px; border-radius: 12px; box-sizing: border-box; }
.ep-logo img { display: block; max-width: 100%; max-height: 100%; height: auto; }
.ep-logo-mp { background: #ffe600; }
.ep-logo-rc { background: #fff; padding: 6px 5px; }

/* Línea de luz que recorre todo el borde del último recuadro, sin parar */
@property --ep-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* la misma luz, más lenta, recorre el borde de toda la ventana */
.ep::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ep-ang), transparent 0 66%, color-mix(in srgb, var(--ep-acento) 75%, transparent) 82%, #fff 89%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: epLuz 6s linear infinite; }
.ep-op-luz { position: relative; isolation: isolate; }
.ep-op-luz::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ep-ang), transparent 0 62%, color-mix(in srgb, var(--ep-acento) 70%, transparent) 80%, #fff 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: epLuz 3.6s linear infinite; }
.ep-op-luz::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 22px -8px var(--ep-acento); }
@keyframes epLuz { to { --ep-ang: 360deg; } }
.ep-txt b { display: block; font: 700 16.5px/1.2 system-ui, sans-serif; }
.ep-txt small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--ep-suave); }
.ep-ir svg { width: 20px; height: 20px; color: var(--ep-suave); }
.ep-seguro { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--ep-suave); }
.ep-seguro svg { flex: none; width: 15px; height: 15px; color: #3ddc84; }
@media (prefers-reduced-motion: reduce) { .ep[open], .ep::before, .ep-op-luz::before { animation: none; } }

/* Paso 2 de Flow: el correo antes de ir a pagar (Flow lo exige) */
.ep-correo { display: grid; gap: 8px; margin-top: 20px; }
.ep-correo[hidden] { display: none; }
.ep-correo label { font: 600 14px/1.2 system-ui, sans-serif; color: var(--ep-tinta); }
.ep-correo input { width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ep-linea);
  background: rgba(255,255,255,.06); color: var(--ep-tinta); font: 16px/1.3 system-ui, sans-serif; }
.ep-correo input:focus { outline: none; border-color: var(--ep-acento); }
.ep-correo input[aria-invalid="true"] { border-color: #ff6b6b; }
.ep-correo-nota { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ep-suave); }
.ep-correo-error { margin: 0; font-size: 13px; color: #ff8a8a; }
.ep-pagar { margin-top: 6px; min-height: 52px; border: 0; border-radius: 999px; background: var(--ep-acento); color: #141519; font: 700 16px/1 system-ui, sans-serif; cursor: pointer; }
.ep-volver { justify-self: center; padding: 8px; border: 0; background: none; color: var(--ep-suave); font: 14px/1 system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
