@import url("tokens.css");

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.5rem;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

html,
body.site {
  overflow-anchor: none;
}

body.site {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, var(--blue-100), transparent 28rem),
    var(--bg);
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.7rem clamp(0.9rem, 3vw, 1.6rem) 1.05rem;
  border-bottom: 0;
  background: transparent;
  isolation: isolate;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 0.85rem),
    calc(100% - 1.15rem) 100%,
    1.15rem 100%,
    0 calc(100% - 0.85rem)
  );
  box-shadow: 0 10px 24px rgb(16 38 95 / 8%);
  transition: clip-path 180ms ease;
}

/* Menú abierto en móvil: sin recortes diagonales (evita triangulitos blancos). */
.site-nav:has(.site-menu.is-open)::before {
  clip-path: none;
}

.site-nav > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue-900);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  flex: 0 0 auto;
}

.site-menu {
  display: contents;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  color: var(--blue-800);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-current {
  background: var(--blue-50);
  color: var(--blue-800);
}

.nav-link-vivo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-vivo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgb(239 68 68 / 55%);
  animation: nav-vivo-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes nav-vivo-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(239 68 68 / 55%);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 0.55rem rgb(239 68 68 / 0%);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(239 68 68 / 0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-vivo-dot,
  .rifa-media .rifa-chip-live {
    animation: none;
  }
}

.nav-link.is-locked,
.nav-link.is-locked:hover {
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.55;
}

.nav-auth {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.45rem;
}

.nav-auth:not(:has(.nav-user)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: min(20rem, 100%);
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--blue-800);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.nav-auth-btn:hover,
.nav-auth-btn.is-current {
  background: var(--blue-50);
}

.nav-user {
  position: relative;
}

.nav-user > summary {
  list-style: none;
}

.nav-user > summary::-webkit-details-marker {
  display: none;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--blue-800);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nav-user-btn:hover {
  background: var(--blue-50);
}

.nav-user-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 40;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgb(16 38 95 / 16%);
}

.nav-user-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-user-menu a:hover {
  background: var(--blue-50);
}

.nav-user-menu a[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 12px;
  background: var(--blue-600);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--blue-700);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost.is-current {
  background: var(--blue-50);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1rem;
  height: 2px;
  margin-inline: auto;
  border-radius: 12px;
  background: var(--blue-800);
}

.site-main {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 6.2rem clamp(0.9rem, 3vw, 1.6rem) 5.5rem;
}

.site.is-home .site-nav,
.site.is-sesion .site-nav {
  background: transparent;
  border-bottom-color: transparent;
}

.site.is-home .site-nav::before,
.site.is-sesion .site-nav::before {
  background: linear-gradient(to left, #2f6fed, #16348f);
  border-bottom: 0;
  backdrop-filter: none;
  box-shadow: 0 12px 28px rgb(8 24 72 / 22%);
}

.site.is-home .brand,
.site.is-home .nav-link,
.site.is-sesion .brand,
.site.is-sesion .nav-link {
  color: var(--white);
}

.site.is-home .nav-link:hover,
.site.is-home .nav-link.is-current,
.site.is-sesion .nav-link:hover,
.site.is-sesion .nav-link.is-current {
  background: rgb(255 255 255 / 16%);
  color: var(--white);
}

.site.is-home .nav-vivo-dot,
.site.is-sesion .nav-vivo-dot {
  background: #ff6b6b;
  box-shadow: 0 0 0 0 rgb(255 107 107 / 55%);
}

.site.is-home .nav-link.is-locked,
.site.is-home .nav-link.is-locked:hover,
.site.is-sesion .nav-link.is-locked,
.site.is-sesion .nav-link.is-locked:hover {
  background: transparent;
  color: rgb(255 255 255 / 45%);
  opacity: 1;
}

.site.is-home .site-nav .nav-auth-btn,
.site.is-sesion .site-nav .nav-auth-btn {
  color: #ffffff;
  border-color: rgb(255 255 255 / 55%);
  background: transparent;
}

.site.is-home .site-nav .nav-auth-btn:hover,
.site.is-home .site-nav .nav-auth-btn.is-current,
.site.is-sesion .site-nav .nav-auth-btn:hover,
.site.is-sesion .site-nav .nav-auth-btn.is-current {
  background: rgb(255 255 255 / 14%);
  color: #ffffff;
}

.site.is-home .nav-user-btn,
.site.is-sesion .nav-user-btn {
  color: #ffffff;
  border-color: rgb(255 255 255 / 55%);
}

.site.is-home .nav-user-btn span,
.site.is-sesion .nav-user-btn span,
.site.is-home .nav-user-btn svg,
.site.is-sesion .nav-user-btn svg {
  color: #ffffff;
  fill: currentColor;
}

.site.is-home .nav-user-btn:hover,
.site.is-sesion .nav-user-btn:hover {
  background: rgb(255 255 255 / 14%);
  color: #ffffff;
}

.site.is-sesion .nav-user-menu {
  border-color: transparent;
}

.site.is-sesion .nav-user-menu a {
  color: var(--blue-900);
}

.site.is-home .nav-toggle,
.site.is-sesion .nav-toggle {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 35%);
}

.site.is-home .nav-toggle-bar,
.site.is-sesion .nav-toggle-bar {
  background: var(--white);
}

.site.is-home .site-menu.is-open,
.site.is-sesion .site-menu.is-open {
  background: linear-gradient(to left, #2f6fed, #16348f);
  border-bottom-color: transparent;
}

.site.is-home .site-main {
  width: 100%;
  padding: 0 0 5.5rem;
}

.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(to left, #2f6fed, #16348f);
  transition: height 720ms cubic-bezier(0.22, 1, 0.36, 1), min-height 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage.is-compact {
  height: 0;
  min-height: 0;
}

.area,
.circles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.circles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.circles li {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  bottom: -150px;
  background: rgb(255 255 255 / 20%);
  animation: float-up 25s linear infinite;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-duration: 11s;
}

@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-110vh) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

.stage-copy {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  padding: 5.5rem 1.2rem 6.5rem;
  text-align: center;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.stage.is-compact .stage-copy {
  transform: translateY(-28%) scale(0.72);
  opacity: 0;
}

.stage-copy h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.05;
}

.stage-copy p {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.6;
}

.catalogo {
  width: 100%;
  margin: 0;
  padding: 0 clamp(0.7rem, 1.4vw, 1.1rem);
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}

.stage.is-compact + .catalogo {
  margin-top: 0;
  padding-top: 5.4rem;
}

.catalogo-bloque {
  width: 100%;
  padding: 0.35rem 0.15rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.catalogo-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.catalogo-peso {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-700);
}

.catalogo-peso svg {
  display: block;
  width: 2.85rem;
  height: 2.85rem;
}

.catalogo-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  color: var(--blue-900);
  text-transform: capitalize;
}

.catalogo-head p,
.catalogo-vacio {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.catalogo-vacio {
  margin: 0;
  padding: 0.35rem 0.15rem 0.2rem;
}

.rifa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
  padding: 0.35rem 0.2rem 1.1rem;
}

.rifa-card {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: visible;
  border: 1px solid var(--blue-200);
  border-radius: 1.7rem 1.7rem 48% 48% / 1.45rem 1.45rem 2.55rem 2.55rem;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(16 38 95 / 10%);
  cursor: pointer;
  transform-origin: 50% 75%;
  animation: card-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease, border-color 220ms ease;
}

.rifa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgb(16 38 95 / 0%);
  pointer-events: none;
  transition: background 220ms ease;
}

.rifa-lock {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--blue-700);
  filter: drop-shadow(0 3px 8px rgb(16 38 95 / 20%));
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease, color 220ms ease;
}

.rifa-lock-icon {
  width: 2.2rem;
  height: 2.2rem;
  overflow: visible;
}

.rifa-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.rifa-meta-row .rifa-meta {
  margin: 0;
}

.rifa-lock-keyhole {
  color: var(--white);
  transition: color 220ms ease;
}

.rifa-lock-shackle {
  transform-box: fill-box;
  transform-origin: 16px 22px;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .rifa-card:hover {
    z-index: 2;
    transform: translate(-14px, -22px) scale(1.06) rotate(-7deg);
    border-color: var(--blue-500);
    box-shadow: 0 28px 46px rgb(16 38 95 / 28%);
  }

  .rifa-card:hover::after {
    background: rgb(16 38 95 / 28%);
  }

  .rifa-card:hover .rifa-lock {
    color: var(--white);
    filter: drop-shadow(0 10px 18px rgb(16 38 95 / 55%));
    transform: scale(1.12);
  }

  .rifa-card:hover .rifa-lock-keyhole {
    color: var(--blue-600);
  }

  .rifa-card:active {
    transform: translate(-8px, -12px) scale(1.03) rotate(-4deg);
  }

  .rifa-card.is-unlocking:active {
    transform: translate(-14px, -22px) scale(1.06) rotate(-7deg);
  }

  button.reloj:hover {
    background: var(--blue-700);
  }
}

.rifa-card.is-unlocking {
  pointer-events: none;
}

.rifa-card.is-unlocking::after {
  background: rgb(16 38 95 / 36%);
}

.rifa-card.is-unlocking .rifa-lock {
  color: var(--white);
  transform: scale(1.2);
  filter: drop-shadow(0 12px 20px rgb(16 38 95 / 60%));
}

.rifa-card.is-unlocking .rifa-lock-keyhole {
  color: var(--blue-600);
}

.rifa-card.is-unlocking .rifa-lock-shackle {
  transform: translate(3px, -5px) rotate(-42deg);
}

.rifa-card.is-openable {
  cursor: pointer;
}

.rifa-card.is-resume {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgb(47 111 237 / 18%);
  transform: translateY(-6px);
  transition: outline-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .rifa-lock-shackle {
    transition: none;
  }

  .rifa-card:hover,
  .rifa-card:active,
  .rifa-card.is-unlocking:active {
    transform: translateY(-8px);
  }
}

.rifa-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 9.2rem;
  overflow: hidden;
  border-radius: 1.55rem 1.55rem 0 0;
  background: var(--blue-50);
}

.rifa-media img {
  width: 100%;
  height: 9.2rem;
  object-fit: cover;
}

.rifa-media span {
  color: var(--muted);
  font-size: 0.85rem;
}

.rifa-media .rifa-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-800);
  font-size: 0.75rem;
  font-weight: 700;
}

.rifa-media .rifa-chip-live {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 0 0 rgb(239 68 68 / 45%);
  animation: nav-vivo-pulse 1.6s ease-out infinite;
}

.rifa-media .rifa-chip-wait {
  background: #fef3c7;
  color: #92400e;
}

.rifa-card.is-sala {
  text-decoration: none;
  color: inherit;
}

.rifa-card.is-live {
  outline: 2px solid rgb(239 68 68 / 45%);
  outline-offset: 2px;
}

.rifa-card.is-agotado {
  opacity: 0.35;
  transform: scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.reloj.is-live strong {
  color: #ef4444;
  animation: latido 1.15s ease-in-out infinite;
}

.reloj.is-wait strong {
  color: #b45309;
}

.rifa-card.is-wait {
  outline: 1px solid rgb(245 158 11 / 35%);
  outline-offset: 2px;
}

.rifa-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem 1.35rem;
  overflow: hidden;
  border-radius: 0 0 48% 48% / 0 0 2.4rem 2.4rem;
}

.rifa-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rifa-copy h3 {
  margin: 0.25rem 0 0;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--blue-900);
}

.rifa-copy p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.rifa-precio {
  margin-top: 0.55rem;
  color: var(--blue-900);
  font-size: 1.12rem;
  font-weight: 700;
}

.rifa-ajuste-nota {
  margin: 0.35rem 0 0;
  color: #9a3412;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
}

.rifa-precio span,
.rifa-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.relojes {
  margin-top: 0.7rem;
}

.reloj {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  padding: 0.7rem 0.7rem 0.95rem;
  border: 0;
  border-radius: 14px 14px 40% 40% / 14px 14px 1.35rem 1.35rem;
  background: var(--blue-600);
  color: var(--white);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.reloj span {
  color: rgb(255 255 255 / 82%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reloj strong {
  display: inline-block;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transform-origin: center;
  animation: latido 1.15s ease-in-out infinite;
}

.reloj.is-listo strong {
  animation: none;
}

@keyframes card-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes latido {
  0%, 100% {
    transform: scale(1);
  }

  18% {
    transform: scale(1.14);
  }

  32% {
    transform: scale(1);
  }

  46% {
    transform: scale(1.1);
  }

  62% {
    transform: scale(1);
  }
}

.auth {
  display: grid;
  min-height: calc(100vh - 9.5rem);
  place-items: center;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  width: min(28rem, 100%);
  min-height: 28rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 40px rgb(16 38 95 / 8%);
  animation: auth-float 3.2s ease-in-out infinite;
}

.auth-card h2,
.auth-lead {
  text-align: center;
}

.auth-card h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.85rem;
}

.auth-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-card-wide {
  width: min(46rem, 100%);
  min-height: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-block {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-50);
}

.auth-block h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.auth-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-card input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.auth-forgot {
  justify-self: start;
  color: var(--blue-700);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-actions {
  display: flex;
  justify-content: center;
}

.auth-actions .btn {
  min-width: 8rem;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-switch a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-switch-shine {
  position: relative;
  display: inline-block;
  padding: 0.1rem 0.15rem;
  color: var(--blue-600);
  background-image: linear-gradient(
    105deg,
    var(--blue-700) 0%,
    var(--blue-600) 38%,
    #ffffff 50%,
    var(--blue-600) 62%,
    var(--blue-700) 100%
  );
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auth-switch-shine 2.2s ease-in-out infinite;
}

.auth-switch-shine:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

@keyframes auth-switch-shine {
  0%,
  28% {
    background-position: 100% 50%;
  }
  55%,
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-switch-shine {
    animation: none;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--blue-600);
  }
}

.auth-error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.auth-card.is-sending {
  pointer-events: none;
  opacity: 0.72;
}

.auth-ok {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
}

.auth-ok[open] {
  display: grid;
  place-items: center;
}

.auth-ok::backdrop {
  background: rgb(16 38 95 / 48%);
  backdrop-filter: blur(4px);
  animation: auth-ok-fade 280ms ease both;
}

.auth-ok-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.8rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 50px rgb(16 38 95 / 22%);
  text-align: center;
  animation: auth-ok-pop 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-ok-card h2 {
  margin: 0.35rem 0 0;
  color: var(--blue-900);
  font-size: 1.45rem;
  text-align: center;
}

.auth-ok-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.auth-ok-name {
  margin-top: 0.15rem !important;
  color: var(--blue-900) !important;
  font-size: 1.05rem;
  font-weight: 600;
  min-height: 1.4em;
}

.auth-ok-folio {
  margin-top: 0.35rem !important;
  color: var(--blue-700) !important;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.4em;
}

.auth-loading {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
}

.auth-loading[open] {
  display: grid;
  place-items: center;
  place-content: center;
}

.auth-loading::backdrop {
  background: rgb(16 38 95 / 55%);
  backdrop-filter: blur(5px);
  animation: auth-ok-fade 280ms ease both;
}

.auth-loading-track {
  width: min(5.5rem, 28vw);
  height: 0.32rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 28%);
  overflow: hidden;
}

.auth-loading-bar {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  animation: auth-loading-slide 0.7s ease-in-out infinite;
}

@keyframes auth-loading-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-loading::backdrop {
    animation: none;
  }

  .auth-loading-bar {
    width: 70%;
    animation: none;
    transform: none;
  }
}

.auth-ok-card .btn {
  margin-top: 0.45rem;
  min-width: 11rem;
}

.auth-ok-icon {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  animation: auth-ok-bounce 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-ok-ring {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: auth-ok-draw 520ms ease forwards 120ms;
}

.auth-ok-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: auth-ok-draw 420ms ease forwards 420ms;
}

.auth-ok-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-ok-burst span {
  position: absolute;
  top: 2.4rem;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--blue-500);
  opacity: 0;
  animation: auth-ok-spark 700ms ease-out both 380ms;
}

.auth-ok-burst span:nth-child(1) { --x: -72px; --y: -18px; background: #60a5fa; }
.auth-ok-burst span:nth-child(2) { --x: 68px; --y: -22px; background: #1d4ed8; }
.auth-ok-burst span:nth-child(3) { --x: -58px; --y: 42px; background: #93c5fd; }
.auth-ok-burst span:nth-child(4) { --x: 62px; --y: 38px; background: #2563eb; }
.auth-ok-burst span:nth-child(5) { --x: -18px; --y: -52px; background: #3b82f6; }
.auth-ok-burst span:nth-child(6) { --x: 22px; --y: 58px; background: #1e40af; }

@keyframes auth-ok-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-ok-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-ok-bounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes auth-ok-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes auth-ok-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), var(--y)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-ok-card,
  .auth-ok-icon,
  .auth-ok-ring,
  .auth-ok-check,
  .auth-ok-burst span,
  .auth-ok::backdrop {
    animation: none;
  }

  .auth-ok-ring,
  .auth-ok-check {
    stroke-dashoffset: 0;
  }
}

@keyframes auth-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.catalogo-vacio-solo {
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.hero,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 2px solid var(--blue-600);
  border-radius: 18px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}

.lead {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.card {
  display: block;
  padding: 1.15rem 1.15rem 1.2rem;
  color: inherit;
  text-decoration: none;
}

.card:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
}

.card h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}

.card p:last-child {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.scroll-hint {
  position: fixed;
  z-index: 26;
  left: 50%;
  bottom: 4.15rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transform: translateX(-50%);
  animation: hint-bob 1.35s ease-in-out infinite;
}

.scroll-hint span {
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
}

.stage.is-compact .scroll-hint {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@keyframes hint-bob {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(0.45rem);
  }
}

.site-footer {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 0.85rem;
  width: max-content;
  max-width: calc(100% - 1.6rem);
  transform: translateX(-50%);
  transition: transform 0.28s ease;
}

.footer-version {
  display: block;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  text-align: center;
  box-shadow: 0 8px 24px rgb(16 38 95 / 8%);
  cursor: pointer;
}

.footer-version:hover {
  color: var(--blue-800);
  border-color: var(--blue-200);
}

.site-footer.is-hidden {
  transform: translateX(-50%) translateY(140%);
}

@media (max-width: 1180px) {
  .rifa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .rifa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.7rem 0.9rem 0.9rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .site-menu.is-open {
    display: flex;
  }

  .nav-link,
  .nav-auth .btn,
  .nav-auth-btn,
  .nav-user,
  .nav-user-btn {
    width: 100%;
  }

  .nav-user-menu {
    position: static;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  /* Menú azul (home / sesión): nombre en blanco, igual que en PC. */
  .site.is-home .site-menu .nav-user-btn,
  .site.is-sesion .site-menu .nav-user-btn,
  .site.is-home .site-menu .nav-user-btn span,
  .site.is-sesion .site-menu .nav-user-btn span,
  .site.is-home .site-menu .nav-user-btn svg,
  .site.is-sesion .site-menu .nav-user-btn svg {
    color: #ffffff;
    fill: currentColor;
    border-color: rgb(255 255 255 / 55%);
  }

  .site.is-home .site-menu .nav-user-btn:hover,
  .site.is-sesion .site-menu .nav-user-btn:hover {
    background: rgb(255 255 255 / 14%);
    color: #ffffff;
  }

  .nav-auth {
    display: grid;
    margin: 0.4rem 0 0;
  }

  .nav-auth:not(:has(.nav-user)) {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  /* Menú azul (home / sesión): auth outline blanco, igual que el nombre. */
  .site.is-home .site-menu .nav-auth-btn,
  .site.is-sesion .site-menu .nav-auth-btn {
    color: #ffffff;
    border-color: rgb(255 255 255 / 55%);
    background: transparent;
  }

  .site.is-home .site-menu .nav-auth-btn:hover,
  .site.is-home .site-menu .nav-auth-btn.is-current,
  .site.is-sesion .site-menu .nav-auth-btn:hover,
  .site.is-sesion .site-menu .nav-auth-btn.is-current {
    background: rgb(255 255 255 / 14%);
    color: #ffffff;
  }

  .cards,
  .rifa-grid,
  .auth-split {
    grid-template-columns: 1fr;
  }


  .rifa-media,
  .rifa-media img {
    min-height: 11rem;
    height: 12rem;
  }

  .site-main,
  .site.is-home .site-main {
    padding-bottom: 5.5rem;
  }

  .stage-copy {
    padding-bottom: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circles li {
    animation: none;
    opacity: 0.35;
    border-radius: 50%;
  }

  .stage,
  .stage-copy,
  .rifa-card,
  .reloj strong,
  .auth-card {
    transition: none;
    animation: none;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.participar-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
}

.participar-modal[open] {
  display: grid;
  place-items: center;
}

.participar-modal::backdrop {
  background: rgb(16 38 95 / 52%);
  backdrop-filter: blur(4px);
}

.participar-modal .swal2-container {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.sc-swal.swal2-popup {
  width: min(24rem, calc(100vw - 2rem)) !important;
  padding: 1.25rem 1.15rem 1.1rem !important;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 36px rgb(16 38 95 / 18%);
  font-family: inherit;
}

.sc-swal .sc-swal-icon {
  margin: 0.15rem auto 0.85rem !important;
}

.sc-swal .sc-swal-icon.swal2-warning,
.sc-swal .sc-swal-icon.swal2-info,
.sc-swal .sc-swal-icon.swal2-question {
  width: 2.85rem !important;
  height: 2.85rem !important;
  border-width: 2px !important;
}

.sc-swal .sc-swal-icon.swal2-warning {
  border-color: #f59e0b;
  color: #d97706;
}

.sc-swal .sc-swal-icon.swal2-info {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.sc-swal .sc-swal-icon.swal2-question {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.sc-swal .sc-swal-icon.swal2-error {
  border-color: #f87171;
  color: #dc2626;
}

.sc-swal .sc-swal-icon.swal2-success {
  border-color: #4ade80;
  color: #16a34a;
  margin: 0.25rem auto 1rem !important;
}

.sc-swal .swal2-success-circular-line-left,
.sc-swal .swal2-success-circular-line-right,
.sc-swal .swal2-success-fix {
  background-color: var(--white) !important;
}

.sc-swal .swal2-icon-content {
  font-size: 1.35rem !important;
  font-weight: 700;
}

.sc-swal .sc-swal-title {
  margin: 0 0 0.4rem !important;
  padding: 0 !important;
  color: var(--blue-900);
  font-size: 1.18rem !important;
  font-weight: 700;
  line-height: 1.3;
}

.sc-swal .sc-swal-text {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--muted);
  font-size: 0.94rem !important;
  line-height: 1.45;
}

.sc-swal .sc-swal-text code {
  font-size: 0.84em;
}

.sc-swal .sc-swal-actions {
  margin: 1.05rem 0 0 !important;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sc-swal .sc-swal-confirm,
.sc-swal .sc-swal-cancel,
.sc-swal .sc-swal-deny {
  margin: 0 !important;
  min-height: 2.45rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
}

.sc-swal .swal2-html-container ol,
.sc-swal .swal2-html-container ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.45;
}

.participar-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(56rem, calc(100vw - 2rem));
  max-height: min(92vh, 52rem);
  max-height: min(92dvh, 52rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 60px rgb(16 38 95 / 24%);
}

.participar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-50), var(--white));
}

.participar-head-copy {
  min-width: 0;
  flex: 1;
}

.participar-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0.35rem 0 0;
  color: var(--blue-800);
  line-height: 1.2;
}

.participar-timer[hidden] {
  display: none !important;
}

.participar-timer-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.participar-timer strong {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--blue-900);
  display: inline-block;
  transform-origin: center;
}

.participar-timer.is-urgent .participar-timer-label,
.participar-timer.is-urgent strong {
  color: #dc2626;
}

.participar-timer.is-urgent strong {
  animation: participar-timer-pulse 1s ease-in-out infinite;
}

@keyframes participar-timer-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.14);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .participar-timer.is-urgent strong {
    animation: none;
  }
}

.participar-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.participar-head h2 {
  margin: 0.25rem 0 0;
  color: var(--blue-900);
  font-size: 1.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.participar-cerrar {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-800);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.participar-steps-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--blue-50);
  overflow: hidden;
}

.participar-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0.85rem 1rem;
  list-style: none;
}

.participar-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.participar-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-800);
  font-size: 0.78rem;
  line-height: 1;
}

.participar-step-label {
  display: block;
  max-width: 100%;
  text-wrap: balance;
}

.participar-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: calc(50% + 0.95rem);
  width: calc(100% - 1.1rem + 0.55rem);
  height: 2px;
  background: var(--line);
  pointer-events: none;
}

.participar-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: calc(-0.55rem / 2 - 0.2rem);
  z-index: 1;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #94a3b8;
  border-top: 2px solid #94a3b8;
  transform: rotate(45deg);
  pointer-events: none;
}

.participar-steps li.is-current,
.participar-steps li.is-done {
  color: var(--blue-800);
}

.participar-steps li.is-current .participar-step-num,
.participar-steps li.is-done .participar-step-num {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.participar-steps li.is-done:not(:last-child)::after {
  background: var(--blue-400);
}

.participar-steps li.is-done:not(:last-child)::before,
.participar-steps li.is-current:not(:last-child)::before {
  border-color: var(--blue-600);
}

@media (max-width: 760px) {
  .participar-steps-wrap {
    container-type: inline-size;
    container-name: pasos;
  }

  .participar-steps {
    display: flex;
    gap: 0.55rem;
    width: max-content;
    max-width: none;
    padding: 0.85rem 0.85rem;
    transform: translateX(
      calc(var(--pasos-offset, 0) * -1 * ((100cqi - 1.7rem - 1.1rem) / 3 + 0.55rem))
    );
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .participar-steps li {
    flex: 0 0 calc((100cqi - 1.7rem - 1.1rem) / 3);
    width: calc((100cqi - 1.7rem - 1.1rem) / 3);
  }

  .participar-steps li:not(:last-child)::after {
    left: calc(50% + 0.9rem);
    width: calc(50% - 0.9rem + 0.55rem / 2);
  }

  .participar-steps li:not(:last-child)::before {
    right: calc(-0.55rem / 2 - 0.18rem);
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .participar-steps {
    transition: none;
  }
}

.participar-body {
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.2rem 1.2rem;
}

.participar-panel {
  display: none;
}

.participar-panel.is-active {
  display: grid;
  gap: 0.85rem;
}

.participar-panel h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.05rem;
}

.participar-lead,
.participar-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.participar-aviso-premio {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.boleto-modo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.boleto-modo-btn {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--blue-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.boleto-modo-btn:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.boleto-modo-btn.is-active {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}

.boleto-modo-suerte {
  border-color: var(--blue-500);
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 45%, #60a5fa 100%);
  color: var(--white);
  box-shadow: 0 8px 18px rgb(37 99 235 / 28%);
  overflow: hidden;
}

.boleto-modo-suerte:hover {
  border-color: var(--blue-600);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: var(--white);
}

.boleto-modo-suerte.is-active {
  border-color: #1e3a8a;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgb(29 78 216 / 36%);
}

.boleto-modo-suerte.is-burst {
  overflow: visible;
}

.boleto-modo-shine {
  position: absolute;
  inset: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgb(255 255 255 / 0%) 35%,
    rgb(255 255 255 / 55%) 50%,
    rgb(255 255 255 / 0%) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: suerte-brillo 2.4s ease-in-out infinite;
  pointer-events: none;
}

.btn-suerte {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #38bdf8 100%);
  box-shadow: 0 8px 18px rgb(37 99 235 / 30%);
}

.btn-suerte:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 55%, #0ea5e9 100%);
}

.btn-suerte::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -55%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    rgb(255 255 255 / 55%),
    transparent
  );
  transform: skewX(-20deg);
  animation: suerte-brillo 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes suerte-brillo {
  0%,
  25% {
    left: -60%;
  }
  55%,
  100% {
    left: 120%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boleto-modo-shine,
  .btn-suerte::before {
    animation: none;
    display: none;
  }
}

.boleto-panel {
  display: grid;
  gap: 0.55rem;
}

.boleto-panel[hidden] {
  display: none !important;
}

.boleto-panel > label {
  color: var(--blue-900);
  font-size: 0.88rem;
  font-weight: 600;
}

.boleto-resultado {
  display: grid;
  gap: 0.55rem;
}

.boleto-resultado[hidden] {
  display: none !important;
}

.boleto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
  gap: 0.45rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.2rem;
  scroll-behavior: smooth;
  transition: filter 0.25s ease;
}

.boleto-grid.is-revelando {
  filter: saturate(1.05);
}

.boleto-grid.is-revelando .boleto-num:not(.is-focus-zoom):not(.is-burst) {
  opacity: 0.42;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.boleto-azar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.boleto-azar-row .btn {
  min-height: 2.5rem;
}

.participar-seleccionados {
  margin: 0;
  color: var(--blue-900);
  font-size: 0.9rem;
  line-height: 1.45;
}

.participar-seleccionados strong {
  font-weight: 700;
  word-break: break-word;
}

.participar-seleccionados-count {
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.boleto-stepper {
  display: grid;
  grid-template-columns: 3.6rem 1.9rem;
  align-items: stretch;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.boleto-stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--blue-900);
  -moz-appearance: textfield;
}

.boleto-stepper input::-webkit-outer-spin-button,
.boleto-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.boleto-stepper-arrows {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid var(--line);
}

.boleto-stepper-arrows button {
  border: 0;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.58rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.boleto-stepper-arrows button + button {
  border-top: 1px solid var(--line);
}

.boleto-stepper-arrows button:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

.boleto-stepper-arrows button:active {
  background: var(--blue-200);
}

.boleto-num {
  position: relative;
  isolation: isolate;
  min-height: 2.7rem;
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  overflow: visible;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .boleto-num:hover:not(:disabled):not(.is-selected) {
    border-color: var(--blue-500);
    background: var(--blue-50);
  }
}

.boleto-num.is-selected,
.boleto-num.is-selected:hover,
.boleto-num.is-selected:focus,
.boleto-num.is-selected:focus-visible,
.boleto-num.is-selected:active,
.boleto-num.is-selected:disabled {
  border-color: var(--blue-600) !important;
  background: var(--blue-600) !important;
  color: var(--white) !important;
  filter: none;
  text-decoration: none;
  opacity: 1;
  cursor: pointer;
}

.boleto-num.is-selected:disabled {
  cursor: default;
}

.boleto-num.is-burst,
.boleto-modo-btn.is-burst {
  animation: boleto-pop 0.55s cubic-bezier(0.22, 1.35, 0.36, 1);
  z-index: 3;
}

.boleto-num.is-focus-zoom {
  z-index: 4;
  animation: boleto-focus-zoom 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 35%), 0 10px 22px rgb(29 78 216 / 28%);
}

.boleto-num.is-focus-zoom.is-selected {
  filter: brightness(1.08);
}

.boleto-num.is-burst::before,
.boleto-num.is-burst::after,
.boleto-modo-btn.is-burst::before,
.boleto-modo-btn.is-burst::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.boleto-num.is-burst::before,
.boleto-modo-btn.is-burst::before {
  box-shadow:
    -1.1rem -0.9rem 0 #60a5fa,
    1.15rem -0.85rem 0 #93c5fd,
    -1.2rem 0.95rem 0 #3b82f6,
    1.25rem 0.9rem 0 #2563eb,
    0 -1.35rem 0 #1d4ed8,
    0 1.3rem 0 #38bdf8;
  animation: boleto-spark-a 0.55s ease-out forwards;
}

.boleto-num.is-burst::after,
.boleto-modo-btn.is-burst::after {
  box-shadow:
    -0.75rem -1.2rem 0 #bfdbfe,
    0.8rem -1.15rem 0 #eff6ff,
    -0.85rem 1.15rem 0 #93c5fd,
    0.9rem 1.1rem 0 #60a5fa,
    -1.35rem 0 0 #2563eb,
    1.4rem 0 0 #1e40af;
  animation: boleto-spark-b 0.55s ease-out forwards;
}

@keyframes boleto-pop {
  0% {
    transform: scale(0.55);
    filter: brightness(1.4);
  }
  45% {
    transform: scale(1.28);
    filter: brightness(1.15);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes boleto-focus-zoom {
  0% {
    transform: scale(0.85);
  }
  55% {
    transform: scale(1.42);
  }
  100% {
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boleto-grid {
    scroll-behavior: auto;
  }

  .boleto-grid.is-revelando .boleto-num:not(.is-focus-zoom):not(.is-burst) {
    opacity: 1;
    transform: none;
  }

  .boleto-num.is-focus-zoom {
    animation: none;
    transform: scale(1.08);
  }
}

@keyframes boleto-spark-a {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@keyframes boleto-spark-b {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3) rotate(20deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8) rotate(20deg);
  }
}

.boleto-num.is-ocupado,
.boleto-num.is-ocupado:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.boleto-num:disabled:not(.is-ocupado):not(.is-selected) {
  border-color: var(--line);
  background: #f1f5f9;
  color: #94a3b8;
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.boleto-num.is-bloqueado,
.boleto-num.is-bloqueado:disabled {
  border-color: var(--line);
  background: #f1f5f9;
  color: #94a3b8;
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.participar-resumen {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participar-resumen li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-50);
}

.participar-resumen li[hidden] {
  display: none !important;
}

.participar-resumen li.is-total {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.participar-resumen li.is-descuento {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.pago-coverflow {
  display: grid;
  gap: 0.65rem;
  margin: 0.1rem 0 0.2rem;
}

.pago-coverflow-stage {
  position: relative;
  height: 12.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  overflow: visible;
  touch-action: pan-y;
}

.pago-coverflow-hint {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.pago-opcion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(15rem, 72%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.95rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0.55;
  z-index: 1;
  box-shadow: 0 10px 22px rgb(15 23 42 / 10%);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    box-shadow 0.4s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    filter 0.35s ease;
}

.pago-opcion input {
  margin-top: 0.15rem;
}

.pago-opcion-card {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

/* Coverflow: transferencia activa */
.pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="0"] {
  left: 42%;
  transform: translate(-50%, -50%) scale(1) rotate(-1deg);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 16px 32px rgb(29 78 216 / 28%);
}

.pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="1"] {
  left: 78%;
  transform: translate(-50%, -50%) scale(0.78) rotate(8deg);
  opacity: 0.78;
  z-index: 2;
  filter: saturate(0.85);
}

/* Coverflow: Mercado Pago activo */
.pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="1"] {
  left: 58%;
  transform: translate(-50%, -50%) scale(1) rotate(1deg);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 16px 32px rgb(0 158 227 / 28%);
}

.pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="0"] {
  left: 22%;
  transform: translate(-50%, -50%) scale(0.78) rotate(-8deg);
  opacity: 0.78;
  z-index: 2;
  filter: saturate(0.85);
}

.pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="1"]:hover,
.pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="0"]:hover {
  opacity: 0.95;
  filter: none;
}

.pago-opcion-transfer {
  overflow: hidden;
  border-color: #93c5fd;
  background:
    linear-gradient(135deg, rgb(29 78 216 / 10%) 0%, rgb(255 255 255 / 0%) 42%),
    linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.pago-opcion-transfer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgb(255 255 255 / 55%) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.pago-opcion-transfer:has(input:checked)::before {
  opacity: 1;
  animation: pago-transfer-sheen 2.8s ease-in-out infinite;
}

.pago-opcion-transfer:has(input:checked) {
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #1e40af 100%);
}

.pago-opcion-transfer:has(input:checked) strong,
.pago-opcion-transfer:has(input:checked) small,
.pago-opcion-transfer:has(input:checked) .pago-badge {
  color: #fff;
}

.pago-opcion-transfer:has(input:checked) small {
  color: rgb(255 255 255 / 90%);
}

.pago-opcion-transfer:has(input:checked) input {
  accent-color: #fff;
}

.pago-opcion-transfer .pago-opcion-card {
  position: relative;
  z-index: 1;
}

.pago-opcion-shine {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(
    105deg,
    #1e3a8a 0%,
    #1d4ed8 38%,
    #ffffff 50%,
    #1d4ed8 62%,
    #1e3a8a 100%
  );
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auth-switch-shine 2.2s ease-in-out infinite;
}

.pago-opcion-transfer:has(input:checked) .pago-opcion-shine {
  background-image: linear-gradient(
    105deg,
    #dbeafe 0%,
    #ffffff 38%,
    #bfdbfe 50%,
    #ffffff 62%,
    #dbeafe 100%
  );
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pago-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.1rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #fef08a;
  color: #854d0e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pago-opcion-transfer:has(input:checked) .pago-badge {
  background: rgb(255 255 255 / 18%);
  color: #fff;
}

@keyframes pago-transfer-sheen {
  0%,
  35% {
    transform: translateX(-120%);
  }
  60%,
  100% {
    transform: translateX(120%);
  }
}

.pago-opcion-mp {
  border-color: #94a3b8;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.pago-opcion-mp:has(input:checked) {
  border-color: #009ee3;
  background: #009ee3;
}

.pago-mp-logo {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 2rem;
  border-radius: 8px;
  background: #009ee3;
  flex-shrink: 0;
}

.pago-opcion-mp:has(input:checked) .pago-mp-logo {
  background: rgb(255 255 255 / 18%);
}

.pago-opcion-mp strong {
  color: #334155;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.pago-opcion-mp small {
  color: #64748b;
}

.pago-opcion-mp:has(input:checked) strong,
.pago-opcion-mp:has(input:checked) small {
  color: #fff;
}

.pago-opcion-mp:has(input:checked) small {
  color: rgb(255 255 255 / 88%);
}

.pago-opcion-mp input {
  accent-color: #009ee3;
}

.pago-opcion-mp:has(input:checked) input {
  accent-color: #fff;
}

.pago-opcion strong {
  display: block;
  color: var(--blue-900);
  font-size: 1.02rem;
}

.pago-opcion small {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .pago-coverflow-stage {
    height: 12rem;
    max-width: none;
  }

  .pago-opcion {
    width: min(13.2rem, 68%);
    padding: 0.85rem 0.75rem;
  }

  .pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="0"] {
    left: 38%;
  }

  .pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="1"] {
    left: 82%;
  }

  .pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="1"] {
    left: 62%;
  }

  .pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="0"] {
    left: 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pago-coverflow-stage {
    height: auto;
    display: grid;
    gap: 0.55rem;
  }

  .pago-opcion,
  .pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="0"],
  .pago-coverflow:has([value="transferencia"]:checked) [data-pago-i="1"],
  .pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="0"],
  .pago-coverflow:has([value="mercado_pago"]:checked) [data-pago-i="1"] {
    position: relative;
    left: auto !important;
    top: auto;
    width: auto;
    transform: none !important;
    opacity: 1;
    filter: none;
    transition: none;
    box-shadow: none;
  }

  .pago-opcion-transfer::before,
  .pago-opcion-shine {
    animation: none;
  }

  .pago-opcion-shine {
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--blue-900);
  }

  .pago-opcion-transfer:has(input:checked) .pago-opcion-shine {
    color: #fff;
  }

  .pago-coverflow-hint {
    display: none;
  }
}

.pago-transfer {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.pago-transfer-intro,
.pago-transfer-hint {
  margin: 0;
  color: var(--blue-900);
  line-height: 1.4;
  font-size: 0.92rem;
}

.pago-transfer-hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.pago-transfer-datos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.pago-transfer-datos li {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 92%);
  border: 1px solid #dbeafe;
}

.pago-transfer-datos span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pago-transfer-datos strong {
  color: var(--blue-900);
  font-size: 1rem;
  word-break: break-all;
}

.pago-transfer-valor {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pago-transfer-valor strong {
  flex: 1;
  min-width: 0;
}

.pago-transfer-copy {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pago-transfer-copy::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.pago-transfer-copy:hover,
.pago-transfer-copy:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  outline: none;
}

.pago-transfer-copy.is-copied {
  background: #ecfdf5;
  border-color: #86efac;
  color: #146c43;
}

.pago-transfer-copy.is-copied::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 16.6 4.8 12.2l1.4-1.4 3 3 8.6-8.6 1.4 1.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

#participar-siguiente.is-transfer-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #1e40af);
  box-shadow: 0 10px 22px rgb(29 78 216 / 28%);
}

#participar-siguiente.is-transfer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgb(255 255 255 / 45%) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: pago-transfer-sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #participar-siguiente.is-transfer-cta::after {
    animation: none;
  }
}

.participar-confirm {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-900);
  line-height: 1.45;
}

.confirm-head {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-50), var(--white));
}

.confirm-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-titulo {
  margin: 0.3rem 0 0;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.confirm-lista {
  margin: 0;
}

.confirm-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 65%;
}

.confirm-chip {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.confirm-chip.is-empty {
  background: #cbd5e1;
}

.confirm-metodo.is-mp {
  color: #007eb5;
}

.participar-foot {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}

.participar-foot .btn {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.participar-foot .btn[hidden] {
  display: none !important;
}

.mp-wallet-wrap {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.mp-wallet-wrap[hidden] {
  display: none !important;
}

#walletBrick_container {
  min-height: 3rem;
}

.pago-estado {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pago-sandbox-aviso {
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
}

.pago-sandbox-aviso[hidden] {
  display: none !important;
}

.pago-sandbox-aviso strong {
  display: block;
  margin-bottom: 0.35rem;
}

.pago-sandbox-aviso p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pago-estado[hidden] {
  display: none !important;
}

.pago-estado.is-loading {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.pago-estado.is-ok {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.pago-estado.is-warn {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.pago-estado.is-error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.mp-fallback {
  justify-self: stretch;
  text-align: center;
}

.pago-resultado {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.pago-resultado-card {
  width: min(32rem, 100%);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 40px rgb(16 38 95 / 12%);
}

.pago-resultado-card.is-exito {
  border-color: #86efac;
}

.pago-resultado-card.is-error {
  border-color: #fca5a5;
}

.pago-resultado-card.is-pendiente {
  border-color: #fcd34d;
}

.pago-resultado-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pago-resultado-card h1 {
  margin: 0.35rem 0 0.5rem;
  color: var(--blue-900);
  font-size: 1.45rem;
}

.pago-resultado-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pago-resultado-datos {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pago-resultado-datos li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--blue-50);
}

.pago-resultado-tiempo {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 600;
  line-height: 1.4;
}

.pago-resultado-vivo-lead {
  margin: 0.85rem 0 0.55rem;
  color: var(--muted);
  line-height: 1.4;
}

.pago-resultado-actions {
  margin-top: 1.1rem;
}

.participar-exito {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 0.25rem 0 0.5rem;
}

.participar-exito-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.participar-exito h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.35rem;
  line-height: 1.25;
}

.participar-exito .participar-lead {
  margin: 0;
}

.participar-exito-tiempo {
  margin: 0.25rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 600;
  line-height: 1.4;
}

.participar-exito-crono {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0.15rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.participar-exito-crono span {
  font-size: 0.82rem;
  font-weight: 600;
}

.participar-exito-crono strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 800;
  color: #9a3412;
}

.participar-exito-crono.is-urgente {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.participar-exito-crono.is-urgente strong {
  color: #b91c1c;
  animation: participar-timer-pulse 1s ease-in-out infinite;
}

.participar-exito-crono.is-expirado {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.participar-exito-crono.is-expirado strong {
  color: #64748b;
  animation: none;
}

.participar-exito .btn {
  margin-top: 0.35rem;
}

.sala-vivo {
  display: grid;
  place-items: start center;
  min-height: 70vh;
  padding: 1.5rem 1rem 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(37 99 235 / 14%), transparent 70%),
    linear-gradient(180deg, var(--blue-50), var(--white) 55%);
}

.sala-vivo-layout {
  width: min(72rem, 100%);
  display: grid;
  gap: 1.1rem;
}

.sala-vivo-head {
  display: grid;
  gap: 0.35rem;
}

.sala-vivo-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sala-vivo-head h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.sala-vivo-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 40rem;
}

.sala-vivo-premio-aviso {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 600;
  line-height: 1.4;
  max-width: 40rem;
}

.sala-vivo-meta {
  margin: 0.25rem 0 0;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}

.sala-sep {
  opacity: 0.45;
}

.sala-vivo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.sala-vivo-main {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 20%, rgb(59 130 246 / 16%), transparent 55%),
    var(--white);
  min-height: 22rem;
  overflow: hidden;
}

.sala-vivo-countdown {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 800;
  color: var(--blue-800);
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(4px);
  animation: sala-count-pulse 1s ease-in-out infinite;
}

.sala-vivo-countdown[hidden],
.sala-espera[hidden] {
  display: none !important;
}

.sala-espera {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
}

.sala-espera-titulo {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
}

.sala-espera-reloj {
  margin: 0.15rem 0 0;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sala-espera-nota {
  margin: 0.25rem 0 0;
  max-width: 26rem;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.sala-vivo-tick {
  margin: 0;
  font-weight: 700;
  color: var(--blue-900);
}

.sala-ruleta {
  display: grid;
  gap: 0.85rem;
}

.sala-ruleta-track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-behavior: smooth;
}

.sala-ruleta-chip {
  flex: 0 0 auto;
  min-width: 8.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--blue-50);
  display: grid;
  gap: 0.15rem;
  opacity: 0.72;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.sala-ruleta-chip strong {
  font-size: 0.85rem;
  color: var(--blue-900);
}

.sala-ruleta-chip span {
  font-size: 0.78rem;
  color: var(--muted);
}

.sala-ruleta-chip.is-active {
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
  border-color: rgb(37 99 235 / 45%);
  background: #fff;
  box-shadow: 0 8px 20px rgb(37 99 235 / 12%);
}

.sala-ruleta-focus {
  text-align: center;
  padding: 1.1rem 0.75rem 0.5rem;
}

.sala-focus-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-700);
}

.sala-focus-nombre {
  margin: 0.25rem 0 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.15;
}

.sala-focus-nums {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: 0.04em;
}

.sala-flash {
  position: absolute;
  inset: auto 1rem 4.5rem;
  z-index: 4;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}

.sala-flash.is-show {
  animation: sala-flash-in 2.1s ease forwards;
}

.sala-flash-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.sala-flash-nombre {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.sala-flash-num {
  margin: 0.15rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.sala-admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.sala-vivo-side {
  display: grid;
  gap: 0.75rem;
}

.sala-panel {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.sala-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--blue-900);
}

.sala-viewers,
.sala-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 12rem;
  overflow: auto;
}

.sala-viewers li,
.sala-chip-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: var(--blue-50);
  font-size: 0.86rem;
}

.sala-chip-list.is-elim li {
  background: #f8fafc;
  color: #64748b;
}

.sala-folio {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.8rem;
}

.sala-muted {
  color: var(--muted) !important;
  background: transparent !important;
}

.sala-vivo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sala-confetti {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
}

.sala-ganador-card {
  max-width: 26rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgb(15 23 42 / 14%);
  overflow: hidden;
}

.modal-ganador-dlg::backdrop {
  background: rgb(15 23 42 / 45%);
  backdrop-filter: blur(3px);
}

.sala-ganador-body {
  padding: 0.25rem 0.15rem 0.35rem;
}

.sala-ganador-badge {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa 55%, #1e40af);
  box-shadow: 0 10px 22px rgb(37 99 235 / 28%);
  overflow: hidden;
}

.sala-ganador-badge-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgb(255 255 255 / 45%) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: auth-switch-shine 2.2s ease-in-out infinite;
}

.sala-ganador-premio {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--blue-50);
  border: 1px solid #bfdbfe;
  color: var(--blue-900);
  font-weight: 600;
  line-height: 1.4;
}

.sala-ganador-tel {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.sala-ganador-tel label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-900);
}

.sala-ganador-tel input {
  width: 100%;
  min-height: 2.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
}

.sala-ganador-card .field-hint {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0;
}

.ruleta-coverflow {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.ruleta-coverflow-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 7.5rem;
  width: 100%;
  perspective: 900px;
}

.ruleta-coverflow-stage.is-single {
  min-height: 6.5rem;
}

.ruleta-card {
  position: relative;
  flex: 0 0 auto;
  width: min(10.5rem, 42vw);
  min-height: 5.6rem;
  padding: 0.85rem 0.8rem;
  border-radius: 18px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(160deg, #eff6ff, #fff 55%);
  color: var(--blue-900);
  display: grid;
  gap: 0.35rem;
  align-content: center;
  text-align: center;
  box-shadow: 0 10px 24px rgb(37 99 235 / 10%);
  transform:
    translateX(calc(var(--s, 0) * var(--d, 0) * 18px))
    scale(calc(1 - var(--d, 0) * 0.12))
    rotateY(calc(var(--s, 0) * var(--d, 0) * -14deg));
  opacity: calc(1 - var(--d, 0) * 0.28);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.ruleta-card.is-active {
  z-index: 2;
  border-color: transparent;
  background: linear-gradient(145deg, #1d4ed8, #3b82f6 45%, #1e3a8a);
  color: #fff;
  box-shadow: 0 16px 30px rgb(29 78 216 / 28%);
  transform: translateY(-4px) scale(1.04);
  opacity: 1;
}

.ruleta-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    110deg,
    transparent 28%,
    rgb(255 255 255 / 38%) 50%,
    transparent 72%
  );
}

.ruleta-card.is-active .ruleta-card-shine {
  opacity: 1;
  animation: pago-transfer-sheen 2.4s ease-in-out infinite;
}

.ruleta-card strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.ruleta-card-num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.ruleta-card.is-active .ruleta-card-num {
  color: #fde68a;
}

.ruleta-coverflow-focus {
  text-align: center;
}

.ruleta-focus-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-700);
}

.ruleta-focus-nombre {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.15;
}

.ruleta-focus-num {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .ruleta-card,
  .ruleta-card.is-active .ruleta-card-shine,
  .sala-ganador-badge-shine {
    animation: none;
    transition: none;
  }
}

@keyframes sala-count-pulse {
  50% {
    transform: scale(1.06);
  }
}

@keyframes sala-flash-in {
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 860px) {
  .sala-vivo-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sala-vivo-countdown,
  .sala-flash.is-show,
  .sala-ruleta-chip {
    animation: none;
    transition: none;
  }
}

.site.is-mis-sorteos .site-main {
  width: 100%;
  max-width: none;
}

.mis-sorteos {
  width: 100%;
  margin: 0;
  padding: 0.35rem 0 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.mis-sorteos-head {
  display: grid;
  gap: 0.35rem;
}

.mis-sorteos-kicker {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mis-sorteos-head h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.2;
}

.mis-sorteos-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: none;
}

.mis-sorteos-vacio {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  padding: 1.25rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--muted);
}

.mis-sorteos-vacio p {
  margin: 0;
}

.mis-sorteos-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.mis-sorteo {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.mis-sorteo-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blue-50);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.mis-sorteo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mis-sorteo-copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}

.mis-sorteo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.mis-sorteo-premio {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.mis-sorteo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 700;
}

.mis-sorteo.is-pendiente_pago .mis-sorteo-badge,
.mis-sorteo.is-parcial .mis-sorteo-badge {
  background: #fef3c7;
  color: #92400e;
}

.mis-sorteo.is-en_sorteo .mis-sorteo-badge {
  background: #dcfce7;
  color: #166534;
}

.mis-sorteo.is-finalizada .mis-sorteo-badge {
  background: #e2e8f0;
  color: #334155;
}

.mis-sorteo.is-ganador .mis-sorteo-badge {
  background: #fef3c7;
  color: #92400e;
}

.mis-sorteo-ganador {
  margin: 0.35rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
  line-height: 1.4;
}

.mis-sorteo-copy h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.1rem;
  line-height: 1.3;
}

.mis-sorteo-tiempo,
.mis-sorteo-metodo,
.mis-sorteo-crono,
.mis-sorteo-numeros,
.mis-sorteo-totales {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.mis-sorteo-metodo,
.mis-sorteo-crono {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.mis-sorteo-metodo strong {
  color: var(--blue-900);
  font-weight: 700;
}

.mis-sorteo-crono {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.mis-sorteo-crono span {
  font-size: 0.78rem;
  font-weight: 600;
}

.mis-sorteo-crono-valor {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  font-weight: 800;
  color: #9a3412;
}

.mis-sorteo-crono.is-urgente {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.mis-sorteo-crono.is-urgente .mis-sorteo-crono-valor {
  color: #b91c1c;
  animation: participar-timer-pulse 1s ease-in-out infinite;
}

.mis-sorteo-crono.is-expirado {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.mis-sorteo-crono.is-expirado .mis-sorteo-crono-valor {
  color: #64748b;
  animation: none;
}

.mis-sorteo-numeros {
  display: grid;
  gap: 0.15rem;
}

.mis-sorteo-numeros strong {
  color: var(--blue-900);
  font-weight: 700;
  word-break: break-word;
}

.mis-sorteo-totales {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mis-sorteo-totales strong {
  color: var(--blue-900);
}

.mis-sorteo-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .mis-sorteo {
    grid-template-columns: 1fr;
  }

  .mis-sorteo-media {
    width: min(100%, 11rem);
  }
}

@media (max-width: 760px) {
  .participar-foot {
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
  }

  .participar-foot .btn:not([hidden]) {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.9rem;
    padding-inline: 0.7rem;
  }

  #participar-siguiente.is-transfer-cta {
    font-size: 0.84rem;
  }
}

