/* Pop-up de inicio (Módulo 07 · Web). Si hay varios, se muestran en carrusel. Toma el color de marca del estilo activo. */
.gp-pop {
  --pop-accent: var(--color-brand, var(--color-accent, #262A5E));
  --pop-accent-ink: var(--color-brand-ink, var(--color-accent-ink, #fff));
  --pop-ink: var(--color-ink, #1A1D33);
  --pop-muted: var(--color-muted, #5F6375);
  --pop-line: var(--color-line, var(--color-rule, #E1E3EC));
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px;
  background: #fff; color: var(--pop-ink); font: inherit; overflow: auto;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.35);
}
.gp-pop--wide { width: min(520px, calc(100vw - 32px)); }
.gp-pop::backdrop { background: rgba(16, 18, 34, 0.55); backdrop-filter: blur(2px); }
.gp-pop[open] { animation: gp-pop-in 260ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes gp-pop-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.gp-pop__close { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.gp-pop__close button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--pop-ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.gp-pop__close button:hover { background: #fff; }
.gp-pop__img { display: block; width: 100%; height: auto; max-height: 70dvh; object-fit: cover; }
.gp-pop__slide--flyer .gp-pop__img { object-fit: contain; background: #f4f4f6; }
.gp-pop__imglink { display: block; }
.gp-pop__body { display: grid; gap: 12px; padding: 28px 24px 24px; }
.gp-pop__slide--flyer .gp-pop__body { padding-top: 16px; }
.gp-pop__slide--flyer .gp-pop__body:not(:has(> :not(h2.gp-pop__sr))) { display: none; }
.gp-pop h2 { margin: 0; padding-right: 32px; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--pop-ink); max-width: none; }
.gp-pop__img + .gp-pop__body h2, .gp-pop__imglink + .gp-pop__body h2 { padding-right: 0; }
.gp-pop__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gp-pop__text { margin: 0; color: var(--pop-muted); line-height: 1.55; max-width: none; }
.gp-pop__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border: 2px dashed var(--pop-accent); border-radius: 12px; }
.gp-pop__code span { font-size: 1.375rem; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.gp-pop__copy { min-height: 40px; padding: 0 16px; border: 1px solid var(--pop-line); border-radius: 999px; background: #fff; color: var(--pop-ink); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.gp-pop__form { display: grid; gap: 10px; margin: 0; }
.gp-pop__form label { display: grid; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--pop-ink); }
.gp-pop__form input, .gp-pop__form textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; border: 1px solid #CDD0DC; border-radius: 8px; background: #fff; color: var(--pop-ink); font: inherit; font-size: 1rem; font-weight: 400; }
.gp-pop__form textarea { min-height: 84px; resize: vertical; }
.gp-pop__form input:focus-visible, .gp-pop__form textarea:focus-visible { outline: 2px solid var(--pop-accent); outline-offset: 0; border-color: var(--pop-accent); }
.gp-pop__trap { position: absolute; left: -9999px; }
.gp-pop__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--pop-accent); color: var(--pop-accent-ink); font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.gp-pop__btn:hover { filter: brightness(1.12); }
.gp-pop__btn[disabled] { opacity: 0.6; cursor: wait; }
.gp-pop__msg { margin: 0; min-height: 1.2em; font-size: 0.875rem; color: var(--pop-muted); }
.gp-pop__msg[data-error] { color: #B42318; }

.gp-pop [hidden] { display: none !important; }
.gp-pop__msg:empty { display: none; }
.gp-pop__form ~ .gp-pop__btn--link { background: transparent; color: var(--pop-ink); border: 1px solid #CDD0DC; }
.gp-pop__form ~ .gp-pop__btn--link:hover { filter: none; border-color: var(--pop-ink); }

/* Carrusel */
.gp-pop__viewport { overflow: hidden; }
.gp-pop__track { display: flex; align-items: flex-start; transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1); }
.gp-pop__slide { flex: 0 0 100%; min-width: 0; position: relative; transition: opacity 400ms ease; }
.gp-pop--multi .gp-pop__slide[inert] { opacity: 0.35; }
.gp-pop__nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px; background: #fff; border-top: 1px solid var(--pop-line); }
.gp-pop__arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--pop-line); border-radius: 50%; background: #fff; color: var(--pop-ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.gp-pop__arrow:hover { border-color: var(--pop-ink); }
.gp-pop__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.gp-pop__dot { position: relative; width: 28px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; }
.gp-pop__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: #CDD0DC; transition: width 300ms ease, margin 300ms ease, background 300ms ease; }
.gp-pop__dot[aria-current="true"]::before { width: 22px; margin-left: -11px; background: var(--pop-accent); }
.gp-pop__arrow:focus-visible, .gp-pop__dot:focus-visible { outline: 2px solid var(--pop-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .gp-pop[open] { animation: none; }
  .gp-pop__track, .gp-pop__slide, .gp-pop__dot::before { transition: none; }
}
.gp-pop__viewport { transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .gp-pop__viewport { transition: none; } }
