:root {
  --bg-main: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #111729;
  --yellow-ve: #ffd600;
  --blue-ve: #004b87;
  --red-ve: #e53935;
  --text-main: #f7f7ff;
  --text-muted: #a5b1d8;
  --border-subtle: rgba(165, 177, 216, 0.2);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.18s ease-out;

  /* ── Safe areas iOS (notch / Dynamic Island / home indicator) ──────────
     En iOS la PWA instalada usa viewport-fit=cover + status-bar-style
     black-translucent, por lo que el WebView ocupa TODA la pantalla y la
     barra de estado (hora, señal, batería) se dibuja ENCIMA del contenido.
     Estas variables reservan ese espacio. En Android/escritorio env() vale
     0px y el layout queda exactamente igual que antes. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-header-h: 56px;                                    /* alto útil del header */
  --app-header-total: calc(56px + env(safe-area-inset-top, 0px)); /* alto real ocupado */
  /* El botón "Jugar" del bottom-nav sobresale 22px por encima de la barra
     (.app-bottom-nav__cta-circle { margin-top: -22px }) y se pinta sobre la
     barra de acción (z-index 900 vs 500). Este colchón evita que tape textos;
     22px es el mínimo que libera el círculo por completo. */
  --nav-fab-overhang: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  /* Evita el elastic overscroll (rubber-band) de iOS Safari que causa
     que position:fixed se despegue visualmente del fondo al hacer scroll */
  overscroll-behavior: none;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #102a43 0, #050816 55%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  scroll-margin-top: 5rem;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      135deg,
      rgba(9, 11, 25, 0.97),
      rgba(8, 12, 30, 0.9)
    )
    border-box;
  border-bottom: 1px solid rgba(165, 177, 216, 0.18);
  /* Reserva la barra de estado si la página se abre en modo standalone iOS */
  padding-top: env(safe-area-inset-top, 0px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo {
  height: 50px;
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 50px;
  width: auto;
}

.navbar__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.navbar__title {
  font-size: 1rem;
  font-weight: 600;
}

.navbar__subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.navbar__menu a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform 0.12s ease-out;
}

.navbar__menu a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(165, 177, 216, 0.4);
  transform: translateY(-1px);
}

.navbar__cta {
  background: linear-gradient(
      135deg,
      var(--yellow-ve),
      #ffb300,
      var(--red-ve)
    )
    padding-box;
  color: #050816 !important;
  font-weight: 600;
  padding-inline: 1.2rem;
  box-shadow: var(--shadow-subtle);
}

.navbar__toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(165, 177, 216, 0.4);
  background: rgba(5, 8, 22, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.navbar__toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f7f7ff;
}

/* HERO */

.hero {
  position: relative;
  padding: 3.75rem 0 3.5rem;
  overflow: hidden;
}

.hero__bg-blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.9;
  z-index: -1;
}

.hero__bg-blur--1 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.3), transparent);
  top: -40px;
  left: -40px;
}

.hero__bg-blur--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(60, 100, 255, 0.25), transparent);
  bottom: -40px;
  right: -40px;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 75, 135, 0.12);
  color: var(--yellow-ve);
  font-size: 0.75rem;
  border: 1px solid rgba(0, 75, 135, 0.5);
  margin-bottom: 1rem;
}

.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.25);
}

.hero h1 {
  font-size: clamp(2.25rem, 3.2vw + 1rem, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.hero__highlight {
  background: linear-gradient(120deg, var(--yellow-ve), #ffb300, var(--red-ve));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--yellow-ve),
    #ffb300,
    var(--red-ve)
  );
  color: #050816;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
}

.btn--primary:disabled {
  background: rgba(165, 177, 216, 0.12);
  color: rgba(165, 177, 216, 0.35);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: rgba(11, 16, 32, 0.85);
  border-color: rgba(165, 177, 216, 0.45);
  color: var(--text-main);
}

.btn--ghost:hover {
  background: rgba(15, 20, 45, 0.95);
}

.btn--danger {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  border-color: transparent;
  color: #fff;
}

.btn--danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(229, 57, 53, 0.4);
}

.btn--sent {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  cursor: default;
}

.btn--big {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text-muted);
}

.hero__trust-number {
  font-weight: 600;
  color: var(--text-main);
}

.hero__card {
  background: radial-gradient(circle at top left, #14213d 0, #050816 50%);
  border-radius: 26px;
  border: 1px solid rgba(165, 177, 216, 0.2);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 214, 0, 0.16),
    transparent 55%
  );
  opacity: 0.8;
  pointer-events: none;
}

.ticket {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, #0b1020, #151a30);
  border: 1px solid rgba(165, 177, 216, 0.4);
  padding: 1rem 1rem 0.85rem;
  margin-bottom: 0.9rem;
}

.ticket__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.ticket__title {
  font-size: 0.82rem;
  font-weight: 600;
}

.ticket__date {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ticket__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(165, 177, 216, 0.4);
}

.ticket__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.ticket__row--numbers {
  align-items: flex-start;
}

.ticket__label {
  color: var(--text-muted);
}

.ticket__value {
  font-weight: 500;
}

.ticket__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ticket__numbers span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(165, 177, 216, 0.35);
}

.ticket__status {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.ticket__status--success {
  background: rgba(0, 200, 83, 0.16);
  color: #00e676;
  border: 1px solid rgba(0, 200, 83, 0.55);
}

.ticket__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ticket__id {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--yellow-ve);
}

.hero__note {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(7, 10, 25, 0.9);
  border: 1px solid rgba(165, 177, 216, 0.25);
}

.hero__note span {
  color: var(--text-main);
}

/* SECTION BASE */

.section {
  padding: 3rem 0;
}

.section--alt {
  background: radial-gradient(circle at top, #111729 0, #050816 55%);
}

.section__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.section__header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* STEPS */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.step {
  background: rgba(9, 12, 28, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(165, 177, 216, 0.3);
  padding: 1.2rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-subtle);
}

.step__number {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: radial-gradient(circle, var(--yellow-ve), var(--red-ve));
  display: grid;
  place-items: center;
  color: #050816;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CARDS / BENEFICIOS */

.card {
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(165, 177, 216, 0.3);
  padding: 1.3rem 1.15rem 1.2rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card__list li {
  font-size: 0.86rem;
  color: var(--text-main);
  position: relative;
  padding-left: 1.1rem;
}

.card__list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--yellow-ve);
}

/* TESTIMONIOS */

.testimonial {
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(165, 177, 216, 0.3);
  padding: 1.2rem 1.1rem 1.15rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.testimonial__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.testimonial__name {
  font-weight: 600;
}

.testimonial__tag {
  color: var(--text-muted);
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
}

.faq__item {
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(165, 177, 216, 0.35);
  padding: 0.75rem 0.9rem;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.faq__item[open] summary {
  color: var(--yellow-ve);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* CTA FINAL */

.section--cta {
  background: radial-gradient(circle at top, #1b2845 0, #050816 52%);
}

.section--cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.section--cta__text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

.section--cta__text p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.86rem;
}

.cta__list li::before {
  content: "✓ ";
  color: #00e676;
}

.cta__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 177, 216, 0.35);
}

.badge--light {
  background: rgba(9, 12, 28, 0.9);
}

.section--cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.cta__note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(165, 177, 216, 0.25);
  background: #050816;
  padding: 1.6rem 0 1.8rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer__logo {
  height: 26px;
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 26px;
  width: auto;
}

.footer__name {
  color: var(--text-main);
  font-weight: 500;
}

.footer__text {
  margin: 0;
}

.footer__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.footer__meta a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.8rem;
}

/* DESKTOP */

@media (min-width: 1024px) {
  .hero {
    padding: 4.5rem 0 4.1rem;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero__subtitle {
    font-size: 1.02rem;
  }

  .hero__badge {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }

  .btn--big {
    padding: 1.05rem 2.2rem;
    font-size: 1.05rem;
  }

  .hero__trust {
    font-size: 0.85rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section__header h2 {
    font-size: 1.9rem;
  }

  .section__header p {
    font-size: 1rem;
  }

  .steps {
    gap: 1.7rem;
  }

  .grid--3 {
    gap: 1.7rem;
  }

  .step,
  .card,
  .testimonial {
    padding: 1.5rem 1.4rem 1.4rem;
  }

  .step h3,
  .card h3 {
    font-size: 1.1rem;
  }

  .card p,
  .testimonial__text {
    font-size: 0.98rem;
  }

  .card__list li,
  .testimonial__meta,
  .faq__item summary,
  .faq__item p {
    font-size: 0.92rem;
  }

  .faq__item {
    padding: 0.9rem 1.1rem;
  }

  .cta__list,
  .cta__note {
    font-size: 0.9rem;
  }

  .footer__inner {
    font-size: 0.82rem;
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__text {
    order: 1;
  }

  .hero__card {
    order: 2;
  }

  .section--cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--3,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.75rem, 640px);
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .navbar__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.6rem 1rem 0.9rem;
    margin-top: 0.4rem;
    background: rgba(5, 8, 22, 0.98);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(165, 177, 216, 0.25);
  }

  .navbar__menu a {
    width: 100%;
  }

  .navbar__menu--open {
    display: flex;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__subtitle {
    max-width: none;
  }

  .hero__card {
    margin-top: 0.5rem;
  }

  .grid--3,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__header {
    text-align: left;
  }

  .faq {
    margin-inline: 0;
  }

  .footer__inner {
    gap: 0.8rem;
  }
}


.loteria {
  margin: 1.4rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.loteria h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.sorteos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sorteo {
  background: linear-gradient(145deg, #0b1020, #151a30);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sorteo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.sorteo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 0.6rem;
  display: block;
}

.numero {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow-ve);
}

.animal {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.hora {
  background: rgba(0, 200, 83, 0.16);
  color: #7cf17b;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-block;
  margin-top: 0.4rem;
  border: 1px solid rgba(124, 241, 123, 0.4);
}

.fecha {
  background: linear-gradient(
    135deg,
    #001a2e,
    var(--blue-ve),
    #005fa3
  );
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 75, 135, 0.4);
}

.fecha h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

#loading {
  text-align: center;
  padding: 1.25rem 1rem;
  display: none;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.06);
  border-top: 4px solid var(--yellow-ve);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.9);
  border: 1px solid rgba(165, 177, 216, 0.25);
  margin-top: 1rem;
}

.tabs__tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tabs__tab--active {
  background: linear-gradient(
    135deg,
    var(--yellow-ve),
    #ffb300,
    var(--red-ve)
  );
  color: #050816;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.tabs__panel {
  display: none;
}

.tabs__panel--active {
  display: block;
  margin-top: 1.5rem;
}

.tabs__panel {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* FILTROS / DROPDOWNS */
.panel-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.filter-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-select {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast),
    box-shadow var(--transition-fast);
  min-width: 200px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a5b1d8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.filter-select:hover {
  border-color: rgba(165, 177, 216, 0.4);
  background-color: rgba(17, 23, 41, 0.8);
}

.filter-select:focus {
  outline: none;
  border-color: var(--yellow-ve);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.filter-select option {
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 0.5rem;
}

.filter-date {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast),
    box-shadow var(--transition-fast);
  min-width: 200px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.filter-date:hover {
  border-color: rgba(165, 177, 216, 0.4);
  background-color: rgba(17, 23, 41, 0.8);
}

.filter-date:focus {
  outline: none;
  border-color: var(--yellow-ve);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

/* Estilos para el calendario nativo del input date */
.filter-date::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

.filter-date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Para Firefox */
.filter-date::-moz-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

.filter-date::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

/* RESPONSIVE: Móviles */
@media (max-width: 768px) {
  .panel-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .filter-label {
    width: 100%;
  }

  .filter-select {
    min-width: 0;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* RESPONSIVE: Tablets pequeñas */
@media (max-width: 480px) {
  .filter-select {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    padding-right: 2.5rem;
  }

  .filter-label {
    font-size: 0.85rem;
  }
}

/* ==========================================
   RESULTADOS PREVIEW EN HERO
   ========================================== */

.resultados-preview {
  position: relative;
  background: radial-gradient(circle at top left, #14213d 0, #050816 50%);
  border-radius: 20px;
  border: 1px solid rgba(165, 177, 216, 0.4);
  padding: 1.2rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-subtle);
}

.resultados-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(165, 177, 216, 0.4);
}

.resultados-preview__title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.resultados-preview__link {
  color: var(--yellow-ve);
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.resultados-preview__link:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.resultados-preview__body {
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  align-content: start;
}

/* Loading state */
.resultados-preview__body .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  margin: 2rem auto 0.5rem;
  grid-column: 1 / -1;
}

.resultados-preview__body > p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
  grid-column: 1 / -1;
}

/* Cada lotería mini */
.loteria-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(165, 177, 216, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.loteria-mini:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.loteria-mini__nombre {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.loteria-mini__sorteos {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Cada sorteo individual */
.sorteo-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(145deg, #0b1020, #151a30);
  border: 1px solid rgba(165, 177, 216, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.6rem;
  text-align: center;
  width: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.sorteo-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
  border-color: rgba(165, 177, 216, 0.4);
}

.sorteo-mini img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.2rem;
}

.sorteo-mini__numero {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yellow-ve);
  line-height: 1;
}

.sorteo-mini__animal {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.2rem;
}

.sorteo-mini__hora {
  font-size: 0.65rem;
  color: #7cf17b;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(124, 241, 123, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  line-height: 1;
  margin-top: 0.1rem;
}

/* Responsive para móviles */
@media (max-width: 720px) {
  .resultados-preview {
    padding: 1rem;
  }
  
  .loteria-mini__sorteos {
    gap: 0.4rem;
  }
  
  .sorteo-mini {
    padding: 0.7rem 0.4rem;
  }
  
  .sorteo-mini img {
    width: 60px;
    height: 60px;
  }
  
  .sorteo-mini__numero {
    font-size: 1rem;
  }
  
  .sorteo-mini__animal {
    font-size: 0.7rem;
  }
  
  .sorteo-mini__hora {
    font-size: 0.6rem;
    padding: 0.12rem 0.35rem;
  }
}

    /* Estilos específicos para la página de términos legales */
    .legal-content {
        max-width: 850px;
        margin: 0 auto;
        padding: 2rem 0 5rem 0;
    }

    .legal-header {
        text-align: center;
        margin-bottom: 3rem;
        border-bottom: 2px solid var(--border-subtle);
        padding-bottom: 2rem;
    }

    .legal-header h1 {
        font-size: 2.2rem;
        color: var(--yellow-ve);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .legal-header p {
        color: var(--text-muted);
        font-size: 1rem;
    }

    .legal-body {
        background: var(--bg-soft);
        padding: 3rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--border-subtle);
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section:last-child {
        margin-bottom: 0;
    }

    .legal-section h2 {
        font-size: 1.2rem;
        color: var(--text-main);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .legal-section h2::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 1.2rem;
        background: var(--yellow-ve);
        border-radius: 2px;
    }

    .legal-section p, .legal-section li {
        color: var(--text-muted);
        line-height: 1.7;
        font-size: 1rem;
        margin: 0;
    }

    .legal-badge {
        display: inline-block;
        background: rgba(255, 214, 0, 0.1);
        color: var(--yellow-ve);
        padding: 4px 12px;
        border-radius: var(--radius-pill);
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

.promo-banner {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.promo-banner__wrapper {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.promo-banner__content {
    flex: 1;
    z-index: 2;
}

.promo-banner__tag {
    display: inline-block;
    background: var(--blue-ve);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.5s ease-out;
}

.promo-banner__title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.promo-banner__title .highlight {
    color: var(--yellow-ve);
    text-shadow: 0 0 20px rgba(255, 214, 0, 0.3);
}

.promo-banner__description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.promo-banner__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.promo-banner__link {
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.promo-banner__link:hover {
    color: var(--yellow-ve);
}

/* Elemento Visual (Tarjeta del 30%) */
.promo-banner__visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.promo-card {
    /* Gradiente similar al estilo de botones del sitio */
    background: linear-gradient(135deg, #ffd600 0%, #ffab00 100%);
    color: var(--bg-main);
    width: 220px;
    height: 220px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(5deg);
    box-shadow: 0 20px 40px rgba(255, 214, 0, 0.25);
    z-index: 2;
    border: 6px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: floatCard 4s ease-in-out infinite;
}

/* Efecto de Brillo (Glow/Shine) */
.promo-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shineEffect 3s infinite;
}

.promo-card__number {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.promo-card__label {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.promo-banner__circle {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--blue-ve) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Animaciones */
@keyframes floatCard {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(7deg) translateY(-15px); }
}

@keyframes shineEffect {
    0% { transform: translateX(-150%) rotate(45deg); }
    20%, 100% { transform: translateX(150%) rotate(45deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

    .promo-carousel {
        padding: 4rem 0;
        position: relative;
    }

    .promo-carousel__container {
        position: relative;
        overflow: hidden;
        min-height: 450px; /* Ajustar según contenido */
    }

    .promo-slide {
        display: none;
        width: 100%;
        animation: fadeEffect 0.6s ease-in-out;
    }

    .promo-slide.active {
        display: block;
    }

    @keyframes fadeEffect {
        from { opacity: 0; transform: translateX(20px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Estilos de los Controles */
    .promo-ctrl {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--border-subtle);
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .promo-ctrl:hover {
        background: var(--yellow-ve);
        color: var(--bg-main);
        border-color: var(--yellow-ve);
    }

    .promo-ctrl--prev { left: 10px; }
    .promo-ctrl--next { right: 10px; }

    .promo-dots {
        text-align: center;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .promo-dot {
        cursor: pointer;
        height: 10px;
        width: 10px;
        margin: 0 5px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: inline-block;
        transition: var(--transition-fast);
    }

    .promo-dot.active, .promo-dot:hover {
        background-color: var(--yellow-ve);
        width: 25px;
        border-radius: var(--radius-pill);
    }

    /* Ajuste para que los banners no se rompan en el carrusel */
    .promo-banner__wrapper {
        margin: 0 50px; /* Espacio para las flechas */
    }

      .footer__badges {
        display: flex;
        justify-content: center;
        gap: 2.5rem;
        margin: 1.5rem 0;
        padding: 1.2rem 0;
        border-top: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
      }

      .footer__badge-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--text-muted);
        font-size: 0.85rem;
      }

      /* Control del tamaño de las imágenes de las insignias */
      .footer__badge-img {
        height: 80px; /* Tamaño para escritorio */
        width: auto;  /* Mantiene la proporción original */
        filter: grayscale(100%) brightness(1.5); 
        opacity: 0.7;
        transition: var(--transition-fast);
      }

      .footer__badge-item:hover .footer__badge-img {
        filter: grayscale(0%) brightness(1);
        opacity: 1;
        transform: scale(1.1);
      }

      .footer__legal-links {
        display: flex;
        gap: 1.5rem;
      }

      @media (max-width: 768px) {
        .footer__badges {
          flex-direction: row; /* Mantener en fila si solo son imágenes */
          gap: 2rem;
          align-items: center;
        }

        /* Ocultar el texto en móviles */
        .footer__badge-text {
          display: none;
        }

        /* Tamaño distinto para las imágenes en móvil */
        .footer__badge-img {
          height: 60px; /* Un poco más grandes para que destaquen solas */
          filter: grayscale(0%); /* Opcional: mostrar color directo en móvil */
          opacity: 1;
        }

        .footer__legal-links {
          flex-direction: column;
          gap: 0.5rem;
          margin-top: 1rem;
          align-items: center;
        }
      }

    @media (max-width: 768px) {
        .promo-banner__wrapper { margin: 0; }
        .promo-ctrl { display: none; } /* Ocultar flechas en móvil para usar swipe o dots */
        .promo-carousel__container { min-height: 550px; }
    }

/* Responsividad */
@media (max-width: 992px) {
    .promo-banner__wrapper {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .promo-banner__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .promo-banner__actions {
        justify-content: center;
    }

    .promo-banner__title {
        font-size: 2rem;
    }

    .promo-card {
        width: 180px;
        height: 180px;
    }

    .promo-card__number {
        font-size: 3.5rem;
    }
}

/* Para pantallas muy pequeñas, ajustar a 2 columnas */
@media (max-width: 380px) {
  .loteria-mini__sorteos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    .legal-body {
        padding: 1.5rem;
    }
    .legal-header h1 {
        font-size: 1.6rem;
    }
}
/* FAB Group */
.fab-group {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.fab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fab svg {
  flex-shrink: 0;
}

.fab--whatsapp {
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.fab--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.fab--telegram {
  background: #229ED9;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.45);
}

.fab--telegram:hover {
  background: #1a8bbf;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.55);
}

@media (max-width: 480px) {
  .fab span {
    display: none;
  }
  .fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* ==========================================
   REGISTRO — PÁGINA Y FORMULARIO
   ========================================== */

.registro-section {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 80px);
}

/* Encabezado hero del registro */
.registro-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.registro-hero__title {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.6rem;
}

.registro-hero__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: 36rem;
}

/* Tarjeta principal del formulario */
.registro-card {
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(165, 177, 216, 0.22);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2rem 1.75rem;
  max-width: 780px;
  margin-inline: auto;
}

/* Secciones internas del formulario */
.form-section + .form-section {
  margin-top: 0;
}

.form-section__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.form-section__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.25);
  display: grid;
  place-items: center;
  color: var(--yellow-ve);
  flex-shrink: 0;
}

.form-section__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

/* Divisor entre secciones */
.form-divider {
  height: 1px;
  background: rgba(165, 177, 216, 0.15);
  margin: 1.5rem 0;
}

/* Grid de campos */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

/* Campo individual */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Label */
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-required {
  color: var(--red-ve);
  font-size: 0.9em;
}

.form-optional {
  font-size: 0.78em;
  font-weight: 400;
  color: rgba(165, 177, 216, 0.6);
  margin-left: auto;
}

/* Input base */
.form-input {
  background: rgba(11, 16, 32, 0.8);
  border: 1px solid rgba(165, 177, 216, 0.22);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.form-input::placeholder {
  color: rgba(165, 177, 216, 0.4);
}

.form-input:hover {
  border-color: rgba(165, 177, 216, 0.38);
  background: rgba(11, 16, 32, 0.9);
}

.form-input:focus {
  border-color: var(--yellow-ve);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
  background: rgba(11, 16, 32, 1);
}

/* Estados de validación */
.form-input--valid {
  border-color: rgba(0, 200, 83, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.08);
}

.form-input--invalid {
  border-color: rgba(229, 57, 53, 0.7);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.08);
}

/* Input con prefijo (icono izquierda) */
.form-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-prefix {
  position: absolute;
  left: 0.75rem;
  color: rgba(165, 177, 216, 0.55);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-input--prefixed {
  padding-left: 2.25rem;
}

/* Select de prefijo de documento (V- / E-) */
.form-select-prefix {
  background: rgba(11, 16, 32, 0.8);
  border: 1px solid rgba(165, 177, 216, 0.22);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem 0.65rem 0.75rem;
  flex-shrink: 0;
  width: 4.8rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(165,177,216,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 11px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.form-select-prefix:hover {
  border-color: rgba(165, 177, 216, 0.38);
  background-color: rgba(11, 16, 32, 0.9);
}
.form-select-prefix:focus {
  border-color: var(--yellow-ve);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
  background-color: rgba(11, 16, 32, 1);
}
.form-select-prefix option {
  background: #0b1020;
  color: var(--text-main);
}

/* Input de número de documento (derecha del grupo con select) */
.form-input--doc-numero {
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Input con sufijo (botón ojo) */
.form-input--suffixed {
  padding-right: 2.75rem;
}

.form-input-toggle {
  position: absolute;
  right: 0.7rem;
  background: none;
  border: none;
  color: rgba(165, 177, 216, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.form-input-toggle:hover {
  color: var(--text-main);
}

/* Mensaje de error */
.form-error {
  font-size: 0.76rem;
  color: var(--red-ve);
  display: none;
  align-items: center;
  gap: 0.25rem;
  min-height: 1em;
}

.form-error--visible {
  display: flex;
}

/* Barra de fuerza de contraseña */
.password-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.password-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(165, 177, 216, 0.1);
  overflow: hidden;
}

.password-strength__fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.password-strength__fill.strength--weak   { background: var(--red-ve); }
.password-strength__fill.strength--fair   { background: #ff9800; }
.password-strength__fill.strength--good   { background: var(--yellow-ve); }
.password-strength__fill.strength--strong { background: #00e676; }

.password-strength__label {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

.password-strength__label.strength--weak   { color: var(--red-ve); }
.password-strength__label.strength--fair   { color: #ff9800; }
.password-strength__label.strength--good   { color: var(--yellow-ve); }
.password-strength__label.strength--strong { color: #00e676; }

/* Acciones del formulario */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form-terms {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-terms a {
  color: var(--yellow-ve);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 2px solid rgba(165, 177, 216, 0.45);
  border-radius: 4px;
  background: rgba(11, 16, 32, 0.85);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.form-check input[type="checkbox"]:checked {
  background: var(--yellow-ve);
  border-color: var(--yellow-ve);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: 2px solid #050816;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-actions__buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Link de login */
/* ── Bloque código de referido ───────────────────────────────────────── */
.referido-block {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.referido-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.referido-block__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  display: grid;
  place-items: center;
  color: #22c55e;
  flex-shrink: 0;
}

.referido-block__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.2rem;
}

.referido-block__desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.referido-prefix {
  color: #22c55e !important;
}

.referido-input {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.referido-input:focus {
  border-color: rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.referido-input.form-input--valid {
  border-color: rgba(34, 197, 94, 0.55) !important;
}

/* ── /Bloque código de referido ──────────────────────────────────────── */

.registro-login-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.registro-login-link a {
  color: var(--yellow-ve);
  font-weight: 500;
}

/* ── Overlay modal de alerta (reemplaza alerta inline) ─────────────────── */
.registro-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.registro-alert-overlay--show {
  opacity: 1;
  pointer-events: all;
}

.registro-alert-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg, 12px);
  max-width: 400px;
  width: 90vw;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.registro-alert-overlay--show .registro-alert-modal {
  transform: scale(1);
}

.registro-alert-modal--success {
  background: #0d2e1a;
  border: 1px solid #00c853;
  color: #00e676;
}

.registro-alert-modal--error {
  background: #2d0d0d;
  border: 1px solid #e53935;
  color: #ef9a9a;
}

/* Variante ámbar: requiere acción del usuario */
.registro-alert-modal--warning {
  background: #1e1500;
  border: 1.5px solid #f59e0b;
  color: #fbbf24;
}

.registro-alert-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.registro-alert-modal--success .registro-alert-modal__icon {
  background: rgba(0, 200, 83, 0.15);
  color: #00e676;
}

.registro-alert-modal--error .registro-alert-modal__icon {
  background: rgba(229, 57, 53, 0.15);
  color: #ef5350;
}

.registro-alert-modal--warning .registro-alert-modal__icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  animation: tlv-verif-pulse 2.2s ease-in-out infinite;
}

@keyframes tlv-verif-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  55%       { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.registro-alert-modal__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.1rem;
}

.registro-alert-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #fff);
  line-height: 1.25;
}

.registro-alert-modal__highlight {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 0.35rem;
}

.registro-alert-modal__message {
  font-size: 0.875rem;
  color: var(--text-muted, #aaa);
  line-height: 1.6;
}

.registro-alert-modal__tip {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: -0.25rem;
}

.registro-alert-modal {
  position: relative;
}

.registro-alert-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  color: var(--text-muted, #aaa);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.registro-alert-modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.registro-alert-modal__btn {
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  width: 100%;
}

.registro-alert-modal__btn:active {
  opacity: 0.85;
  transform: scale(0.97);
}

/* ── Onboarding de moneda: crear wallet tras el login ──────────────────── */
/* Modal obligatorio (no descartable) que aparece cuando el cliente inicia
   sesión y aún no tiene ninguna wallet. Ver public/js/ingresar.js. */
.wallet-onb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.wallet-onb-overlay--show {
  opacity: 1;
  pointer-events: all;
}

.wallet-onb-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 92vw;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #111729, #0b1020);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.wallet-onb-overlay--show .wallet-onb-modal {
  transform: scale(1);
}

.wallet-onb-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.12);
  border: 1px solid rgba(255, 214, 0, 0.25);
  flex-shrink: 0;
}

.wallet-onb-modal__icon--ok {
  color: #00e676;
  background: rgba(0, 200, 83, 0.15);
  border-color: rgba(0, 200, 83, 0.35);
}

.wallet-onb-modal__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.28);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
}

.wallet-onb-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.wallet-onb-modal__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.wallet-onb-modal__body {
  width: 100%;
  margin: 0.5rem 0 0.25rem;
}

.wallet-onb-loading,
.wallet-onb-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.wallet-onb-retry {
  margin-top: 0.25rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(165, 177, 216, 0.08);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.wallet-onb-retry:hover {
  background: rgba(165, 177, 216, 0.16);
}

.wallet-onb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}

.wallet-onb-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 0.5rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.wallet-onb-option:hover {
  border-color: rgba(255, 214, 0, 0.5);
}

.wallet-onb-option:active {
  transform: scale(0.98);
}

.wallet-onb-option--selected {
  border-color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.08);
}

.wallet-onb-option__simbolo {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow-ve);
}

.wallet-onb-option__codigo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.wallet-onb-option__check {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow-ve);
  color: #050816;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}

.wallet-onb-option--selected .wallet-onb-option__check {
  opacity: 1;
  transform: scale(1);
}

.wallet-onb-inline-err {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #ef9a9a;
}

.wallet-onb-modal__btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--yellow-ve), #ffb300, var(--red-ve));
  color: #050816;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.12s, opacity 0.15s;
}

.wallet-onb-modal__btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.wallet-onb-modal__btn:active:not(:disabled) {
  transform: scale(0.98);
}

.wallet-onb-modal__btn:disabled {
  background: rgba(165, 177, 216, 0.12);
  color: rgba(165, 177, 216, 0.4);
  cursor: not-allowed;
}

.wallet-onb-modal__note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  margin: 0.15rem 0 0;
}

.wallet-onb-success__bono {
  font-size: 0.82rem;
  color: #00e676;
  font-weight: 600;
  margin: 0.25rem 0 0;
}

.wallet-onb-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(165, 177, 216, 0.3);
  border-top-color: var(--yellow-ve);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.wallet-onb-spinner--dark {
  border-color: rgba(5, 8, 22, 0.3);
  border-top-color: #050816;
}

/* ── Alerta inline (usada en ingresar.js y otros) ──────────────────────── */
.registro-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.registro-alert--show {
  opacity: 1;
  transform: translateY(0);
}

.registro-alert--success {
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #00e676;
}

.registro-alert--error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.35);
  color: #ef5350;
}

.registro-alert__icon {
  flex-shrink: 0;
  display: flex;
  margin-top: 1px;
}

.registro-alert__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.registro-alert__text strong {
  font-weight: 600;
  color: var(--text-main);
}

.registro-alert__text span {
  color: var(--text-muted);
}

/* Spinner en botón */
@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin-icon 0.8s linear infinite;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .registro-card {
    padding: 1.4rem 1.1rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .form-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions__buttons {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .form-actions__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .form-terms {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .registro-card {
    padding: 2.5rem 2.75rem 2.25rem;
  }

  .registro-hero__title {
    font-size: 2.5rem;
  }
}

/* ==========================================
   INGRESAR — FORMULARIO DE LOGIN
   ========================================== */

.ingresar-section {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.ingresar-section .container {
  width: 100%;
}

/* Encabezado */
.ingresar-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.ingresar-hero__title {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.6rem;
}

.ingresar-hero__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: 32rem;
}

/* Tarjeta del formulario — más estrecha que la de registro */
.ingresar-card {
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(165, 177, 216, 0.22);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2rem 1.75rem;
  max-width: 460px;
  margin-inline: auto;
}

/* Label + enlace "¿Olvidaste?" en la misma fila */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.form-label-row .form-label {
  margin: 0;
}

.form-forgot {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.form-forgot:hover {
  color: var(--yellow-ve);
}

/* Input con prefijo Y sufijo simultáneamente */
.form-input--prefixed.form-input--suffixed {
  padding-left: 2.25rem;
  padding-right: 2.75rem;
}

/* Acciones del login */
.ingresar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botón de ancho completo */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* Separador "¿No tienes cuenta?" */
.ingresar-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ingresar-separator::before,
.ingresar-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(165, 177, 216, 0.18);
}

@media (min-width: 1024px) {
  .ingresar-card {
    padding: 2.5rem 2.75rem 2.25rem;
  }

  .ingresar-hero__title {
    font-size: 2.2rem;
  }
}

/* ==========================================
   VERIFICAR EMAIL
   ========================================== */

.verificar-section .ingresar-hero {
  margin-bottom: 2rem;
}

/* Tarjeta centrada para spinner y resultado */
.verificar-card {
  text-align: center;
  padding: 3rem 2rem 2.5rem;
}

/* Estado contenedor (spinner o ícono) */
.verificar-estado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.verificar-estado__texto {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Íconos de resultado */
.verificar-icono {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.verificar-icono--success {
  background: rgba(0, 200, 83, 0.1);
  border: 2px solid rgba(0, 200, 83, 0.4);
  color: #00c853;
}

.verificar-icono--error {
  background: rgba(229, 57, 53, 0.1);
  border: 2px solid rgba(229, 57, 53, 0.4);
  color: var(--red-ve);
}

/* Mensaje de resultado */
.verificar-estado__mensaje {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 320px;
}

/* Mensaje de redirección automática */
.verificar-redirect-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Acciones en caso de error */
.verificar-acciones {
  margin-top: 1.75rem;
}

/* Transición fade: entrada del resultado */
.verificar-card--resultado {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.verificar-card--resultado.verificar-mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* Transición fade: salida del spinner */
.verificar-card.verificar-ocultar {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 640px) {
  .verificar-card {
    padding: 2rem 1.25rem 2rem;
  }

  .verificar-icono {
    width: 64px;
    height: 64px;
  }
}

/* ==========================================
   INICIO — PÁGINA DE SESIÓN ACTIVA
   ========================================== */

.inicio-section {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.inicio-section .container {
  width: 100%;
  max-width: 520px;
}

/* Loader */
.inicio-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inicio-loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 214, 0, 0.15);
  border-top-color: var(--yellow-ve);
  border-radius: 50%;
  animation: spin-icon 0.75s linear infinite;
}

/* Contenido principal */
.inicio-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.res-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.inicio-content--visible,
.res-content--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cabecera de bienvenida */
.inicio-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(165, 177, 216, 0.22);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}

.inicio-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-ve), #ffb300);
  color: #0a0e1e;
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.inicio-header__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.inicio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00e676;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.inicio-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.inicio-header__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inicio-header__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tarjetas de info */
.inicio-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.inicio-card {
  background: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(165, 177, 216, 0.18);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.inicio-card__label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inicio-card__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.inicio-card__value--mono {
  font-family: 'Courier New', monospace;
  color: var(--yellow-ve);
  letter-spacing: 0.05em;
}

.inicio-card__copy {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: none;
  border: none;
  color: rgba(165, 177, 216, 0.45);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  transition: color var(--transition-fast);
}

.inicio-card__copy:hover {
  color: var(--text-main);
}

/* Últimas jugadas del día */
.inicio-ultimas {
  margin-bottom: 1.25rem;
}

.inicio-ultimas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.inicio-ultimas__ver-todas {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow-ve);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.inicio-ultimas__ver-todas:hover {
  opacity: 1;
}

/* Carrusel de últimos resultados */
.inicio-resultados {
  margin-bottom: 1.5rem;
}

.inicio-resultados__loader {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.inicio-resultados__viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 214, 0, 0.55);
  background: rgba(9, 12, 28, 0.97);
  box-shadow: 0 0 14px rgba(255, 214, 0, 0.12), inset 0 0 24px rgba(255, 214, 0, 0.03);
  padding: 0.6rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.inicio-resultados__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: inicio-slide linear infinite;
  cursor: grab;
}

.inicio-resultados__track:active {
  cursor: grabbing;
}

@keyframes inicio-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.inicio-res-card {
  flex-shrink: 0;
  width: 150px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 214, 0, 0.15);
  padding: 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.inicio-res-card__loteria {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--yellow-ve);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inicio-res-card__animal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inicio-res-card__img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.inicio-res-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.inicio-res-card__num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.inicio-res-card__name {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inicio-res-card__hora {
  font-size: 0.68rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 214, 0, 0.1);
  padding-top: 0.35rem;
}

/* Código en la cabecera */
.inicio-header__codigo {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Card saldo */
.inicio-card--saldo .inicio-saldo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0.75rem;
}

.inicio-saldo-item {
  font-size: 1.89rem;
  font-weight: 700;
  color: var(--yellow-ve);
  letter-spacing: 0.02em;
}

.inicio-card__recarga-btn {
  flex: unset;
  align-self: flex-end;
}

/* Acciones rápidas */
.inicio-acciones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.inicio-accion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 0.75rem;
  background: rgba(9, 12, 28, 0.95);
  border: 1px solid rgba(255, 214, 0, 0.45);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.inicio-accion-card:hover {
  background: rgba(255, 214, 0, 0.05);
  border-color: rgba(255, 214, 0, 0.75);
}

.inicio-accion-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 214, 0, 0.12);
  color: var(--yellow-ve);
}

.inicio-accion-card__icon--purple,
.inicio-accion-card__icon--yellow,
.inicio-accion-card__icon--green,
.inicio-accion-card__icon--blue {
  background: rgba(255, 214, 0, 0.12);
  color: var(--yellow-ve);
}

.inicio-accion-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
}

/* Cerrar sesión */
.inicio-logout {
  text-align: center;
}

.inicio-logout__btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.inicio-logout__btn:hover {
  color: var(--red-ve);
  background: rgba(229, 57, 53, 0.08);
}

@media (max-width: 480px) {
  .inicio-header {
    padding: 1.2rem 1.1rem;
  }

  .inicio-cards,
  .inicio-acciones {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================
   APP LAYOUT — HEADER + BOTTOM NAV
   ========================================== */

/* Ajuste del body en modo app */
.app-body {
  padding-top: 56px;                                       /* fallback: altura del app-header */
  padding-top: calc(56px + env(safe-area-inset-top, 0px)); /* + barra de estado iOS */
  /* Soporte para notch/home indicator en iOS */
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

/* ── App Header ── */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  /* El contenido sigue midiendo 56px; el padding superior reserva la barra
     de estado en iOS (0px en Android/PC) */
  height: 56px;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(9, 12, 28, 0.97);
  border-bottom: 1px solid rgba(165, 177, 216, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-header__inner {
  max-width: 640px;
  margin-inline: auto;
  height: var(--app-header-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.app-header__logo {
  height: 28px;
  width: auto;
}

.app-header__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

/* Nav central del header (solo desktop) */
.app-header__nav {
  display: none; /* oculto en móvil, lo muestra el media query de 768px */
  align-items: center;
  gap: 0.25rem;
}

.app-header__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

.app-header__nav-item:hover {
  color: var(--text-main);
  background: rgba(165, 177, 216, 0.08);
}

.app-header__nav-item--active {
  color: var(--text-main);
}

.app-header__nav-item--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  border-radius: 999px;
  background: var(--yellow-ve);
}

.app-header__nav-item--cta {
  color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.07);
}

.app-header__nav-item--cta:hover {
  background: rgba(255, 214, 0, 0.14);
  color: var(--yellow-ve);
}

/* Avatar botón */
.app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-ve), #ffb300);
  color: #0a0e1e;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  z-index: 10;
}

.app-avatar:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
}

/* Dropdown del avatar */
.app-user-menu {
  position: relative;
}

.app-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(13, 17, 38, 0.98);
  border: 1px solid rgba(165, 177, 216, 0.22);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 901;
}

.app-user-dropdown--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.app-user-dropdown__info {
  padding: 0.85rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-user-dropdown__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-user-dropdown__email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-user-dropdown__divider {
  height: 1px;
  background: rgba(165, 177, 216, 0.15);
  margin: 0;
}

.app-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.app-user-dropdown__item:hover {
  background: rgba(165, 177, 216, 0.07);
  color: var(--text-main);
}

.app-user-dropdown__item--danger:hover {
  background: rgba(229, 57, 53, 0.1);
  color: var(--red-ve);
}

/* Área de usuario (chip + avatar) */
.app-header__user {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Chip de saldo en el header */
.app-header__balance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--yellow-ve);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.app-header__balance:hover {
  background: rgba(255, 214, 0, 0.14);
  border-color: rgba(255, 214, 0, 0.4);
}

.app-header__balance-sep {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}

.app-header__balance-bono-dot {
  width: 1px;
  height: 12px;
  background: rgba(255, 214, 0, 0.3);
  border-radius: 999px;
}

.app-header__balance-bono-icon {
  color: #ff9100;
  flex-shrink: 0;
}

.app-header__balance-sep span:last-child {
  color: #ff9100;
  font-size: 0.75rem;
}

/* Saldos dentro del dropdown */
.app-user-dropdown__balances {
  padding: 0.55rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.app-dropdown-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.app-dropdown-balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-dropdown-balance-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.app-dropdown-balance-val--bono {
  color: #ff9100;
}

.app-dropdown-balance-row--bono .app-dropdown-balance-label {
  color: #ff9100;
  opacity: 0.75;
}

/* Overlay para cerrar dropdown */
.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
}

.app-overlay--visible {
  display: block;
}

/* ── Bottom Navigation ── */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  /* La altura del contenido siempre es 60px; env() añade espacio extra
     debajo para el home indicator / barra de gestos sin comprimir los iconos */
  height: 60px;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  min-height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(9, 12, 28, 0.97);
  border-top: 1px solid rgba(165, 177, 216, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: stretch;
  /* Fuerza capa GPU propia para que los transforms 3D del carrusel
     no rompan el position:fixed en iOS Safari.
     backface-visibility:hidden logra el mismo compositing que will-change:transform
     pero sin el desync asíncrono que causa parpadeo en iOS Safari al hacer scroll. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.app-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(165, 177, 216, 0.55);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.18s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.app-bottom-nav__item:hover,
.app-bottom-nav__item--active {
  color: var(--text-main);
}

.app-bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.app-bottom-nav__item:active .app-bottom-nav__icon {
  transform: scale(0.88);
}

/* Tab CTA (Jugar) — destacado con amarillo */
.app-bottom-nav__item--cta {
  color: var(--yellow-ve);
}

.app-bottom-nav__item--cta:hover {
  color: #ffca28;
}

.app-bottom-nav__item--cta .app-bottom-nav__icon svg {
  filter: drop-shadow(0 0 5px rgba(255, 214, 0, 0.35));
}

/* Tab activo — línea indicadora arriba */
.app-bottom-nav__item--active {
  color: var(--yellow-ve);
  position: relative;
}

.app-bottom-nav__item--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--yellow-ve);
}

/* Ajuste del inicio-section cuando usa app-body */
.app-body .inicio-section {
  min-height: calc(100vh - var(--app-header-total) - 68px);
  align-items: flex-start;
  padding-top: 1.5rem;
}

.app-body .inicio-section .container {
  padding-bottom: 1rem;
}

/* En desktop, el bottom nav se oculta y aparece el nav en el header */
@media (min-width: 768px) {
  .app-body {
    padding-top: 56px;
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }

  .app-bottom-nav {
    display: none;
  }

  .app-header__nav {
    display: flex;
  }

  .app-header__inner {
    max-width: 1200px;
  }
}

/* ==========================================
   APP BOTTOM SHEET — EDITAR PERFIL
   ========================================== */

.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.app-sheet--open {
  pointer-events: auto;
}

/* Backdrop semitransparente */
.app-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
}

.app-sheet--open .app-sheet__backdrop {
  background: rgba(0, 0, 0, 0.65);
}

/* Panel deslizante */
.app-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 92dvh;
  background: #0b1020;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(165, 177, 216, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.app-sheet--open .app-sheet__panel {
  transform: translateY(0);
}

/* Handle visual */
.app-sheet__handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(165, 177, 216, 0.3);
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Header del sheet */
.app-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(165, 177, 216, 0.12);
}

.app-sheet__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.app-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(165, 177, 216, 0.1);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.app-sheet__close:hover {
  background: rgba(165, 177, 216, 0.18);
  color: var(--text-main);
}

/* Loader del sheet */
.app-sheet__loader {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
}

/* Cuerpo con scroll */
.app-sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.25rem 0;
  flex: 1;
  /* Scrollbar sutil */
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 177, 216, 0.2) transparent;
}

.app-sheet__body::-webkit-scrollbar { width: 4px; }
.app-sheet__body::-webkit-scrollbar-track { background: transparent; }
.app-sheet__body::-webkit-scrollbar-thumb { background: rgba(165, 177, 216, 0.2); border-radius: 999px; }

/* Footer fijo del sheet */
.app-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(165, 177, 216, 0.12);
  background: #0b1020;
  flex-shrink: 0;
}

/* Toast de feedback inline */
.sheet-toast {
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.sheet-toast--success {
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #00e676;
}

.sheet-toast--error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: #ef5350;
}

/* En desktop el sheet se centra como modal */
@media (min-width: 640px) {
  .app-sheet__panel {
    left: 50%;
    right: auto;
    width: 560px;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }

  .app-sheet--open .app-sheet__panel {
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Perfil page ─────────────────────────────────────────────────────────── */

.perfil-section {
  padding: 1.5rem 0 6rem;
  min-height: calc(100dvh - var(--app-header-total));
}

.perfil-container {
  max-width: 460px;
  padding-inline: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tarjeta de identidad (hero dorado) */
.perfil-id-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(255, 199, 0, 0.25);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.perfil-id-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--srh-surface);
  color: var(--srh-gold);
  font-size: 1.25rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--srh-gold), 0 0 12px rgba(255, 199, 0, 0.2);
}

.perfil-id-card__info {
  flex: 1;
  min-width: 0;
}

.perfil-id-card__nombre {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perfil-id-card__codigo {
  font-size: 0.72rem;
  color: #FCD34D;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Botón editar / cambiar contraseña */
.perfil-edit-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 199, 0, 0.4);
  color: var(--srh-gold);
  border-radius: 11px;
  padding: 0.5rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.perfil-edit-trigger:hover {
  background: #1e293b;
  border-color: var(--srh-gold);
}

/* Secciones */
.perfil-seccion {
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.perfil-seccion__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--srh-border);
}

.perfil-seccion__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--srh-gold);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.perfil-seccion__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Vista de datos */
.perfil-datos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.perfil-dato {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(35, 49, 72, 0.6);
}

.perfil-dato:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.perfil-dato__label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--srh-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.perfil-dato__valor {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.perfil-dato__valor--muted {
  color: var(--srh-muted);
  font-style: italic;
  font-weight: 400;
}

/* Formulario de edición */
.perfil-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Barra de acciones */
.perfil-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0.85rem 1rem;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: 18px;
}

/* Toast de feedback */
.perfil-toast {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.perfil-toast--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.perfil-toast--error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

@media (min-width: 768px) {
  .perfil-section {
    padding: 2rem 0 3rem;
  }
}

/* ── Perfil: subheader de sección de contraseña ── */
.perfil-seccion__subheader {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0 0.25rem;
  border-top: 1px solid var(--srh-border);
  margin-top: 0.25rem;
}

/* ── Formulario: texto de ayuda bajo el input ── */
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── Formulario: botón sufijo (toggle password) ── */
.form-input-suffix--btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 0.65rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.form-input-suffix--btn:hover {
  color: var(--accent);
}

/* ── Cuentas de Cobro (Perfil) ──────────────────────────────────────────── */

.cuentas-cobro-loader {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.cuentas-cobro-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  color: var(--srh-muted);
  font-size: 0.8rem;
  text-align: center;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
}

.cuentas-cobro-empty svg {
  opacity: 0.6;
}

.cuentas-cobro-empty p {
  margin: 0;
}

.cuentas-cobro-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-top: 0.5rem;
}

/* Aviso de bloqueo de identidad en modo edición */
.perfil-bloqueo-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  flex-shrink: 0;
}
.perfil-bloqueo-aviso svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.perfil-bloqueo-aviso__texto {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.perfil-bloqueo-aviso__texto strong {
  font-size: 0.82rem;
  font-weight: 700;
}
.perfil-bloqueo-aviso__texto p {
  margin: 0;
  color: var(--text-muted);
}

.perfil-soporte-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding: 0.7rem 0.9rem;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.45;
}

.perfil-soporte-aviso svg {
  flex-shrink: 0;
  color: var(--srh-gold);
  margin-top: 0.05rem;
  opacity: 1;
}

/* Lista de cuentas */
.cuentas-cobro-lista {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.cuenta-cobro-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.cuenta-cobro-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--srh-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cuenta-cobro-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cuenta-cobro-card__banco {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cuenta-cobro-card__codigo {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

.cuenta-cobro-card__tipo {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  width: fit-content;
}

.cuenta-cobro-card__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.3rem;
}

.cuenta-cobro-card__datos span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Estado inactiva */
.cuenta-cobro-card--inactiva {
  opacity: 0.55;
}
.cuenta-cobro-card--inactiva .cuenta-cobro-card__icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* Botón toggle estado */
.cuenta-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.cuenta-toggle-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.cuenta-toggle-btn--activa {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e;
}
.cuenta-toggle-btn--activa:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.22);
}
.cuenta-toggle-btn--inactiva {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
}
.cuenta-toggle-btn--inactiva:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.2);
}

/* Aviso inline al intentar desactivar cuenta con retiros pendientes */
.cuenta-toggle-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  font-size: 0.76rem;
  color: #f59e0b;
  line-height: 1.4;
  animation: fadeIn 0.2s ease;
}
.cuenta-toggle-aviso svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Botón agregar cuenta */
.btn-agregar-cuenta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--srh-gold);
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(255, 199, 0, 0.55);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-agregar-cuenta:hover {
  background: #1e293b;
  border-color: var(--srh-gold);
}

/* Formulario inline */
.cuentas-cobro-form-wrap {
  margin-top: 0.75rem;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--srh-border);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cuentas-cobro-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cuentas-cobro-form-header__title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.cuentas-cobro-form-close {
  background: none;
  border: none;
  color: var(--srh-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: color var(--transition-fast);
}

.cuentas-cobro-form-close:hover {
  color: #fff;
}

/* Campo readonly de perfil */
.form-input--readonly {
  background: rgba(148, 163, 184, 0.06);
  color: var(--srh-muted);
  cursor: default;
  border-style: dashed;
}

/* Badge "Tu perfil" en labels */
.nc-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--srh-muted);
  background: #1e293b;
  border: 1px solid var(--srh-border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.cuentas-cobro-form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Toast del formulario */
.cuentas-cobro-toast {
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.cuentas-cobro-toast--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.cuentas-cobro-toast--error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: #ef5350;
}

/* ── Verificación DNI (Perfil) ───────────────────────────────────────────── */

.dni-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  background: rgba(8, 12, 20, 0.5);
  border: 2px dashed var(--srh-border);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
  outline: none;
}

.dni-dropzone:hover,
.dni-dropzone:focus-visible {
  border-color: rgba(255, 199, 0, 0.5);
  background: rgba(255, 199, 0, 0.04);
}

.dni-dropzone--dragover {
  border-color: var(--srh-gold);
  background: rgba(255, 199, 0, 0.07);
}

.dni-dropzone--has-file {
  border-style: solid;
  border-color: var(--srh-border);
  padding: 1rem 1.25rem;
}

.dni-dropzone__icono {
  display: flex;
  align-items: center;
  color: var(--srh-gold);
  opacity: 0.85;
}

.dni-dropzone--has-file .dni-dropzone__icono,
.dni-dropzone--has-file .dni-dropzone__texto,
.dni-dropzone--has-file .dni-dropzone__hint {
  display: none;
}

.dni-dropzone__texto {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dni-dropzone__texto strong {
  color: var(--srh-gold);
  font-weight: 700;
}

.dni-dropzone__hint {
  font-size: 0.7rem;
  color: var(--srh-muted);
  opacity: 0.75;
}

/* Vista previa del archivo */
.dni-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  margin-top: 0.65rem;
}

.dni-preview__icono {
  display: flex;
  align-items: center;
  color: var(--srh-gold);
  flex-shrink: 0;
}

.dni-preview__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dni-preview__nombre {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dni-preview__tamanio {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dni-preview__quitar {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  transition: color 0.15s;
  flex-shrink: 0;
}

.dni-preview__quitar:hover {
  color: #ef5350;
}

/* Acciones del formulario */
.dni-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

/* Badges de estado */
.dni-estado {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.dni-estado--pendiente {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.dni-estado--aprobado {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.dni-estado--rechazado {
  background: rgba(255, 152, 0, 0.08);
  border-color: rgba(255, 167, 38, 0.35);
  color: #ffa726;
}

.dni-estado--bloqueado {
  background: rgba(229, 57, 53, 0.08);
  border-color: rgba(239, 83, 80, 0.3);
  color: #ef5350;
}

.dni-estado__icono {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.dni-estado__cuerpo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dni-estado__titulo {
  font-size: 0.85rem;
  font-weight: 700;
}

.dni-estado__texto {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

.dni-estado__intentos {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
  line-height: 1.35;
}

.dni-estado__intentos strong {
  font-weight: 700;
  opacity: 1;
}

.cuentas-cobro-toast--warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

/* ══════════════════════════════════════════════
   MONEDERO
══════════════════════════════════════════════ */

.monedero-section {
  min-height: calc(100vh - 130px);
}

.monedero-container {
  max-width: 560px;
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

/* Encabezado */
.monedero-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--srh-card), #0f172a 50%, var(--srh-card));
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.monedero-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--srh-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.monedero-header__title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.monedero-header__sub {
  font-size: 0.72rem;
  color: var(--srh-muted);
  margin: 2px 0 0;
}

.monedero-refresh {
  margin-left: auto;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 11px;
  color: var(--srh-gold);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.monedero-refresh:hover:not(:disabled) {
  background: #334155;
}

.monedero-refresh:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Grid de tarjetas */
.monedero-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tarjeta de wallet — hero dorado */
.monedero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(255, 199, 0, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-fast);
}

.monedero-card:hover {
  border-color: rgba(255, 199, 0, 0.4);
}

.monedero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.monedero-card__simbolo {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--srh-gold);
  line-height: 1;
}

.monedero-card__codigo {
  font-size: 0.6rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--srh-gold);
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 7px;
  padding: 3px 8px;
}

.monedero-card__balance {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-all;
}

.monedero-card__footer {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

.monedero-card__footer-moneda {
  color: #FBBF24;
  font-weight: 600;
}

/* Estado vacío */
.monedero-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.monedero-empty svg {
  opacity: 0.35;
}

/* Pie de actualización */
.monedero-updated {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 1rem;
}

/* Saldos SALDO / BONOS en dos cajas */
.monedero-card__saldos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: stretch;
}

.monedero-card__saldo-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
}

.monedero-card__saldo-item--bonos {
  border-color: rgba(245, 158, 11, 0.2);
  padding-left: 0.7rem;
  margin-left: 0;
}

.monedero-card__saldo-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--srh-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.monedero-card__saldo-label--bonos {
  color: #FBBF24;
}

.monedero-card__balance--bonos {
  color: #FCD34D;
}

/* Spinner de carga del saldo de bonos */
.monedero-card__balance-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(251, 146, 60, 0.25);
  border-top-color: #fb923c;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════
   MONEDERO — BOTÓN RECARGAR EN TARJETA
══════════════════════════════════════════════ */

.monedero-card__actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.monedero-card__horario {
  margin-top: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  font-size: 0.66rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.35;
}

/* Wallet bloqueada */
.monedero-card--bloqueado {
  opacity: 0.65;
  cursor: default;
}
.monedero-card--bloqueado:hover {
  border-color: var(--border-subtle);
  transform: none;
}
.monedero-card__balance--bloqueado {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-recarga-card,
.btn-retiro-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 12px;
  cursor: pointer;
  transition: filter var(--transition-fast), background var(--transition-fast);
}

.btn-recarga-card {
  color: #0b1220;
  background: linear-gradient(135deg, #FFD633 0%, #FFC700 60%, #E5AF00 100%);
  border: none;
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.2);
}

.btn-recarga-card:hover {
  filter: brightness(1.08);
}

.btn-recarga-card:active,
.btn-retiro-card:active {
  transform: scale(0.97);
}

.btn-retiro-card {
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b 55%, rgba(76, 5, 25, 0.5));
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.btn-retiro-card:hover {
  background: linear-gradient(90deg, #0f172a, #1e293b 45%, rgba(76, 5, 25, 0.7));
}

/* ══════════════════════════════════════════════
   MONEDERO — BOTTOM SHEET DE RECARGA / RETIRO
══════════════════════════════════════════════ */

/* Overlay */
.recarga-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.recarga-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* Sheet */
.recarga-sheet {
  width: 100%;
  max-width: 560px;
  background: var(--srh-surface);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--srh-border);
  border-bottom: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 92dvh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.recarga-overlay--visible .recarga-sheet {
  transform: translateY(0);
}

/* Handle (arrastre visual, solo móvil) */
.recarga-sheet__handle {
  width: 40px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
  margin: 0.7rem auto 0;
  flex-shrink: 0;
}

/* Header */
.recarga-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--srh-border);
  flex-shrink: 0;
}

.recarga-sheet__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.recarga-sheet__icon {
  width: 36px;
  height: 36px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--srh-gold);
  flex-shrink: 0;
}

.recarga-sheet__icon--retiro {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.recarga-wallet-info__icon--retiro {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.recarga-instruccion--retiro {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}
.recarga-instruccion--info {
  background: rgba(148, 163, 184, 0.07);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--srh-muted);
}

/* ── Panel informativo de comisión de retiro ──────────────────────────── */

.ret-comision-info {
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
}

/* Estado: aviso / estimado (antes del envío) */
.ret-comision-info--aviso {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Estado: desglose confirmado (después del envío exitoso) */
.ret-comision-info--confirmado {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ret-comision-info__title {
  align-items: center;
  color: #059669;
  display: flex;
  font-weight: 600;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.ret-comision-info__rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ret-comision-info__row {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.ret-comision-info__row--comision .ret-comision-info__key {
  color: #e53935;
}
.ret-comision-info__row--total {
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--text-main);
  font-weight: 600;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
}
.ret-comision-info__val--negativo {
  color: #e53935;
}
.ret-comision-info__val--total {
  color: #059669;
}

.recarga-sheet__title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.recarga-sheet__close {
  width: 32px;
  height: 32px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 50%;
  color: var(--srh-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
  font-family: inherit;
}

.recarga-sheet__close:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

/* Body scrollable */
.recarga-sheet__body {
  overflow-y: auto;
  padding: 1.1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Formulario interno del retiro */
#retiro-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Estado: sin cuenta de pago registrada */
.retiro-sin-cuenta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 16px;
}

.retiro-sin-cuenta__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.retiro-sin-cuenta__titulo {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.retiro-sin-cuenta__texto {
  font-size: 0.8rem;
  color: var(--srh-muted);
  margin: 0;
  line-height: 1.5;
}

/* Instrucción de pago */
.recarga-instruccion {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.recarga-instruccion svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--srh-gold);
}

/* Wallet info */
.recarga-wallet-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 0.7rem 1rem;
}

.recarga-wallet-info__icon {
  width: 34px;
  height: 34px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--srh-gold);
  flex-shrink: 0;
}

.recarga-wallet-info__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.recarga-wallet-info__label {
  font-size: 0.66rem;
  color: var(--srh-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.recarga-wallet-info__nombre {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.recarga-wallet-info__simbolo {
  color: var(--srh-gold);
}

.recarga-wallet-info__balance {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

/* Select personalizado */
.recarga-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a5b1d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.recarga-select option {
  background: #0b1020;
  color: #f7f7ff;
}

/* Banco info card (datos pago móvil) */
.banco-info-card {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.banco-info-card__title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--srh-gold);
  margin-bottom: 0.6rem;
}

.banco-info-card__rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.banco-info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.banco-info-card__key {
  font-size: 0.72rem;
  color: var(--srh-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.banco-info-card__val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

/* Toast centrado estilo alerta modal (SwiftUI-like) */
.recarga-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.92);
  z-index: 1200;
  width: min(300px, calc(100vw - 3rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.recarga-toast--show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.recarga-toast--success {
  border: 1px solid rgba(0, 200, 83, 0.35);
}

.recarga-toast--error {
  border: 1px solid rgba(229, 57, 53, 0.35);
}

.recarga-toast__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.recarga-toast--success .recarga-toast__icon {
  background: rgba(0, 200, 83, 0.12);
  border: 1.5px solid rgba(0, 200, 83, 0.4);
  color: #00c853;
}

.recarga-toast--error .recarga-toast__icon {
  background: rgba(229, 57, 53, 0.12);
  border: 1.5px solid rgba(229, 57, 53, 0.4);
  color: var(--red-ve);
}

.recarga-toast__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.recarga-toast__msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Botón en estado enviado (éxito) */
.btn--sent {
  background: linear-gradient(135deg, #00a040 0%, #007a30 100%) !important;
  opacity: 1 !important;
  cursor: default;
}

/* ── Campos y botones dentro de los sheets (scoped, no afecta otras vistas) ── */
.recarga-sheet .form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  display: block;
}
.recarga-sheet .form-required { color: #fb7185; }
.recarga-sheet .form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
}
.recarga-sheet .form-input:focus { border-color: var(--srh-gold); box-shadow: none; }
.recarga-sheet .form-input::placeholder { color: #64748b; }
.recarga-sheet .form-input--invalid { border-color: #fb7185; }
.recarga-sheet .form-input--valid { border-color: #34d399; }
.recarga-sheet .form-hint { font-size: 0.66rem; color: var(--srh-muted); margin-top: 0.3rem; display: block; }
.recarga-sheet .form-error { font-size: 0.68rem; color: #fb7185; margin-top: 0.3rem; display: block; }
.recarga-sheet .recarga-select option { background: var(--srh-surface); color: #fff; }

/* Botones de envío del sheet (el estado .btn--sent verde se conserva por su !important) */
.recarga-sheet .btn--primary {
  background: linear-gradient(135deg, #FFD633 0%, #FFC700 60%, #E5AF00 100%);
  color: #0b1220;
  border: none;
  font-weight: 800;
  border-radius: 12px;
}
.recarga-sheet .btn--primary:hover { filter: brightness(1.08); }
.recarga-sheet .btn--danger {
  background: linear-gradient(90deg, #e11d48, #be123c);
  color: #fff;
  border: none;
  font-weight: 800;
  border-radius: 12px;
}
.recarga-sheet .btn--danger:hover { filter: brightness(1.08); }

/* Desktop: modal centrado en lugar de bottom sheet */
@media (min-width: 640px) {
  .recarga-overlay {
    align-items: center;
    padding: 1rem;
  }

  .recarga-sheet {
    border-radius: 20px;
    border-bottom: 1px solid var(--srh-border);
    max-height: 88vh;
    transform: translateY(14px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
  }

  .recarga-overlay--visible .recarga-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .recarga-sheet__handle {
    display: none;
  }
}

/* ── Pestañas del monedero ────────────────────────────────────────────────── */

.monedero-tabs {
  margin-top: 1.25rem;
}

.monedero-tabs__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1rem;
}

.monedero-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--srh-muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.monedero-tab:hover {
  color: #fff;
}

.monedero-tab--active {
  background: var(--srh-gold);
  color: #0b1220;
}

.monedero-tab-panel {
  animation: fadeInTab 0.18s ease;
}

.monedero-tab-panel[hidden] {
  display: none;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reportes de recargas ─────────────────────────────────────────────────── */

.reportes-section {
  margin-top: 0;
}

.reportes-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.reportes-header__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0;
}

.reportes-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--yellow-ve);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.reportes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reporte-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border-left: 3px solid transparent;
}

.reporte-item--pendiente {
  border-left-color: var(--yellow-ve);
}

.reporte-item--rechazado {
  border-left-color: var(--red-ve);
}

.reporte-item__left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.reporte-item__wallet {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.reporte-item__simbolo {
  color: var(--yellow-ve);
}

.reporte-item__banco {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.reporte-item__ref {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.reporte-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.reporte-item__monto {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.reporte-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.reporte-status--pendiente {
  background: rgba(255, 214, 0, 0.15);
  color: var(--yellow-ve);
}

.reporte-status--rechazado {
  background: rgba(229, 57, 53, 0.15);
  color: var(--red-ve);
}

.reporte-item__fecha {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.reportes-tab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.reportes-tab-empty p {
  font-size: 0.85rem;
  margin: 0;
}

/* ── Historial de transacciones ─────────────────────────────────────────── */

.historial-section {
  margin-top: 0;
}

.historial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  gap: 0.75rem;
}

.historial-header__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.historial-header__title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.historial-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.historial-toggle:hover {
  color: var(--yellow-ve);
  border-color: rgba(255, 214, 0, 0.35);
}

.historial-toggle__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.historial-toggle__chevron--open {
  transform: rotate(180deg);
}

.historial-wallet-selector {
  padding: 0 0 0.75rem;
}

.historial-loader {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

/* Lista de transacciones */

.historial-list {
  padding: 0 0 0.5rem;
}

.historial-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.historial-empty p {
  margin: 0;
}

.historial-error {
  font-size: 0.8rem;
  color: var(--red-ve);
  text-align: center;
  padding: 1rem;
  margin: 0;
}

/* Item de transacción */

.txn-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.txn-item--credito {
  background: rgba(34, 197, 94, 0.04);
  border-left: 3px solid rgba(74, 222, 128, 0.35);
}

.txn-item--debito {
  background: rgba(229, 57, 53, 0.04);
  border-left: 3px solid rgba(239, 83, 80, 0.3);
}

.txn-item:hover {
  background: rgba(165, 177, 216, 0.07);
}

.txn-item--credito:hover {
  background: rgba(34, 197, 94, 0.08);
}

.txn-item--debito:hover {
  background: rgba(229, 57, 53, 0.08);
}

.txn-item__left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.txn-item__tipo {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
  width: fit-content;
}

.txn-item__tipo--credito {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.txn-item__tipo--debito {
  background: rgba(229, 57, 53, 0.12);
  color: #ef5350;
}

.txn-item__cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.txn-item__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.txn-item__fecha {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.txn-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.txn-item__monto {
  font-size: 0.92rem;
  font-weight: 700;
}

.txn-item__monto--credito {
  color: #4ade80;
}

.txn-item__monto--debito {
  color: #ef5350;
}

.txn-item__balance {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Paginación */

.historial-pagination {
  padding: 0.75rem 1rem 1rem;
}

.historial-load-more {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
}

@media (min-width: 560px) {
  .txn-item__desc {
    max-width: 320px;
  }
}

/* ==========================================
   JUGAR — VISTA DE MODALIDADES
   ========================================== */

.jugar-section {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 80px);
}

/* Encabezado */
.jugar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--srh-card), #0f172a 50%, var(--srh-card));
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.jugar-header__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--srh-gold), #E5AF00);
  display: grid;
  place-items: center;
  color: #050816;
  flex-shrink: 0;
}

.jugar-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.jugar-header__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contenedor del hub: centrado y angosto, con margen lateral (como inicio) */
.jugar-content {
  max-width: 460px;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

/* Lista de modalidades de juego (estilo lobby hípico) */
.juego-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.juego-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.15rem;
  border-radius: 18px;
  text-decoration: none;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.1s ease;
}
.juego-card:active { transform: scale(0.99); }
/* Fila superior: ícono + nombre + tipos, verticalmente centrados */
.juego-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.juego-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  color: #0b1220;
}
.juego-card__icon .srh-horse { width: 30px; height: 30px; }
.juego-card__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.juego-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.juego-card__desc {
  font-size: 0.72rem;
  color: var(--srh-muted);
  line-height: 1.3;
}
.juego-card__note {
  font-size: 0.68rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin: 0;
}
.juego-card__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--srh-muted);
}

/* Variantes de color (mismas que las tarjetas de apuesta de inicio) */
.juego-card--gold {
  background: linear-gradient(135deg, var(--srh-card), #0f172a 55%, rgba(69, 26, 3, 0.4));
  border-color: rgba(245, 158, 11, 0.3);
}
.juego-card--gold:hover { border-color: var(--srh-gold); }
.juego-card--gold .juego-card__icon {
  background: linear-gradient(135deg, #F59E0B, #FDE047);
  box-shadow: 0 0 14px rgba(255, 199, 0, 0.25);
}
.juego-card--purple {
  background: linear-gradient(135deg, var(--srh-card), #0f172a 55%, rgba(59, 7, 100, 0.3));
  border-color: rgba(168, 85, 247, 0.3);
}
.juego-card--purple:hover { border-color: #c084fc; }
.juego-card--purple .juego-card__icon {
  background: linear-gradient(135deg, #A855F7, #FBBF24);
}
.juego-card--green {
  background: linear-gradient(135deg, var(--srh-card), #0f172a 55%, rgba(2, 44, 34, 0.35));
  border-color: rgba(16, 185, 129, 0.3);
}
.juego-card--green:hover { border-color: #34d399; }
.juego-card--green .juego-card__icon {
  background: linear-gradient(135deg, #10B981, #FCD34D);
}

/* ==========================================
   ANIMALITOS — VISTA DE JUGADA
   ========================================== */

.anim-section {
  padding: 1.5rem 0 2rem;
  min-height: calc(100vh - 80px);
}

.jugar-header__icon--green {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #34d399;
}

.anim-wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: rgba(9, 12, 28, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.anim-wallet-bar__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.anim-wallet-bar__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.anim-wallet-bar__balance {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--srh-gold);
}

.anim-wallet-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.anim-wallet-select {
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
}

.anim-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.anim-toggle {
  position: relative;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

.anim-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.anim-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(165, 177, 216, 0.2);
  border-radius: 999px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.anim-toggle__slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

.anim-toggle input:checked + .anim-toggle__slider {
  background: #34d399;
}

.anim-toggle input:checked + .anim-toggle__slider::before {
  transform: translateX(16px);
}

.anim-bono-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.anim-step {
  margin-bottom: 1.8rem;
}

.anim-step__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 1rem;
}

.anim-step__info {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(165, 177, 216, 0.6);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.anim-step__num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--srh-gold), var(--red-ve));
  color: #050816;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.anim-step__cierre {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--srh-border);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
  margin-left: auto;
}

.anim-badge {
  background: var(--red-ve);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

.anim-loader-inline {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.anim-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0.5rem 0;
}

/* ── Carrusel cilíndrico ── */
.anim-carousel-viewport {
  width: 100%;
  height: 210px;
  perspective: 900px;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  margin: 0 0 0.25rem;
}

.anim-carousel-viewport--sm {
  height: 130px;
}

.anim-carousel-container {
  position: relative;
  width: 132px;
  height: 140px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.anim-carousel-container--sm {
  width: 152px;
  height: 70px;
}

.anim-carousel-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 200;
  padding: 0 6px;
  box-sizing: border-box;
}

.anim-nav-btn {
  background: rgba(255,255,255,0.05);
  color: var(--srh-gold);
  border: 1px solid var(--srh-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.anim-nav-btn:active {
  transform: scale(0.88);
  background: var(--srh-gold);
  color: #050816;
}

/* Lottery carousel items */
.anim-lot-item {
  position: absolute;
  width: 132px;
  height: 140px;
  left: 0;
  top: 0;
  background: linear-gradient(145deg, var(--srh-card), var(--srh-surface));
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.anim-lot-item__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 0.4rem;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.anim-lot-item.active {
  border-color: var(--srh-gold);
  background: rgba(11, 16, 32, 0.95);
  box-shadow: 0 0 30px rgba(255,199,0,0.65), 0 0 60px rgba(255,199,0,0.25);
  z-index: 100;
}

.anim-lot-item.active .anim-lot-item__content {
  transform: scale(1.15);
}

.anim-lot-item__icon {
  font-size: 1.92rem;
  line-height: 1;
}

.anim-lot-item__name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.anim-lot-item.active .anim-lot-item__name {
  color: var(--srh-gold);
}

.anim-lot-item__mult {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.anim-lot-item.active .anim-lot-item__mult {
  color: var(--srh-gold);
  opacity: 1;
}

/* Sorteo carousel items */
.anim-sort-item {
  position: absolute;
  width: 152px;
  height: 70px;
  left: 0;
  top: 0;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.anim-sort-item__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.anim-sort-item.active {
  background: linear-gradient(135deg, var(--srh-gold), #ff9100);
  border-color: #ffea00;
  box-shadow: 0 0 30px rgba(255,199,0,0.65), 0 0 60px rgba(255,199,0,0.25);
  z-index: 100;
}

.anim-sort-item__hora {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.anim-sort-item.active .anim-sort-item__hora {
  color: #050816;
}

.anim-sort-item__nombre {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.anim-sort-item.active .anim-sort-item__nombre {
  color: rgba(5,8,22,0.65);
  opacity: 1;
}

/* ── Grilla de animalitos ── */
.anim-animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.anim-animal {
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.4rem 0.7rem;
  text-align: center;
  cursor: pointer;
  transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  position: relative;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.anim-animal:hover {
  border-color: rgba(165, 177, 216, 0.5);
  transform: translateY(-3px);
}

.anim-animal--selected {
  background: var(--blue-ve);
  border-color: var(--srh-gold);
  box-shadow: 0 0 25px rgba(0,75,135,0.7);
  transform: scale(1.08);
}

.anim-animal__num {
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--srh-gold);
  opacity: 0.75;
  line-height: 1;
}

.anim-animal--selected .anim-animal__num { color: #fff; opacity: 1; }

.anim-animal__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 4px;
  line-height: 1.1;
}

.anim-animal__name {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.anim-animal--selected .anim-animal__name { color: rgba(255,255,255,0.9); }

/* ── Partículas sparkle ── */
@keyframes anim-sparkle-fly {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(0deg);   opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.5) rotate(180deg); opacity: 0; }
}

.anim-sparkle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  animation: anim-sparkle-fly 0.82s ease-out forwards;
}

.anim-monto-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  background: rgba(9, 12, 28, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-md);
}

.anim-monto-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.anim-monto-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  flex: 1;
  min-width: 120px;
}

.anim-monto-simbolo {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.anim-monto-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  min-width: 0;
}

.anim-monto-input::-webkit-outer-spin-button,
.anim-monto-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.anim-action-bar {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 500;
  background: linear-gradient(to top, #0b1020 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--srh-gold);
  box-shadow: 0 -15px 50px rgba(0,0,0,0.85);
  /* El inferior deja libre la zona que ocupa el botón flotante "Jugar" */
  padding: 0.65rem 1.08rem var(--nav-fab-overhang);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Overrides para anim-monto-row dentro de la barra fija */
.anim-action-bar .anim-monto-row {
  margin-top: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  flex-wrap: nowrap;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.anim-action-bar .anim-monto-input-wrap {
  padding: 0.27rem 0.54rem;
  min-width: 0;
  flex: 0 0 86px;
  width: 86px;
  border-color: #ff9100;
}

.anim-action-bar .anim-monto-simbolo {
  font-size: 0.74rem;
  color: #ff9100;
}

.anim-action-bar .anim-monto-input {
  font-size: 0.82rem;
}

.anim-monto-clear {
  background: none;
  border: none;
  color: #ff9100;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.22rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.anim-monto-clear:hover { color: #ffb84d; }

.anim-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.anim-summary__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.51rem;
  height: 1.51rem;
  padding: 0 0.38rem;
  background: var(--srh-gold);
  color: #050816;
  font-size: 0.70rem;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
}

.anim-summary__total {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--srh-gold);
  white-space: nowrap;
}

.anim-btn-play {
  background: linear-gradient(135deg, var(--srh-gold), #ff9100);
  color: #050816;
  border: none;
  padding: 0.81rem 1.51rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(255, 199, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.anim-btn-play:hover:not(:disabled) {
  box-shadow: 0 0 30px rgba(255,199,0,0.7), 0 0 60px rgba(255,199,0,0.25);
}

.anim-btn-play:active:not(:disabled) { transform: scale(0.95); }

.anim-btn-play:disabled {
  opacity: 0.15;
  filter: grayscale(1);
  box-shadow: none;
  cursor: not-allowed;
}

/* Fila título paso 3 + botón suerte */
.anim-step__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.anim-step__title-row .anim-step__title {
  margin: 0;
  flex: 1;
}

.anim-btn-suerte {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--srh-gold), #ff9100);
  color: #050816;
  border: none;
  padding: 0.52rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 199, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
  transition: 0.2s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.anim-btn-suerte::after {
  content: "NUEVO";
  position: absolute;
  top: 5px;
  right: -16px;
  width: 56px;
  background: #e53935;
  color: #fff;
  font-size: 0.42rem;
  font-weight: 900;
  text-align: center;
  padding: 2.5px 0;
  letter-spacing: 0.7px;
  transform: rotate(45deg);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.anim-btn-suerte:hover { box-shadow: 0 0 22px rgba(255, 199, 0, 0.7); }
.anim-btn-suerte:active { transform: scale(0.95); }

/* ══════════════════════════════════════════════
   JUGADA DE SUERTE — PANEL COMPLETO
══════════════════════════════════════════════ */

.suerte-panel {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Respetar espacio de header y bottom-nav */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Header del panel (debajo del app-header) */
.suerte-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  margin-top: var(--app-header-h); /* altura del app-header (el panel ya reserva --safe-top) */
  border-bottom: 1px solid var(--srh-border);
  background: rgba(11, 16, 32, 0.75);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.suerte-btn-volver {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid var(--srh-border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
  width: 80px;
}
.suerte-btn-volver:hover { color: var(--text-main); border-color: var(--text-muted); }

.suerte-btn-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(108, 62, 244, 0.15);
  border: 1px solid #6c3ef4;
  color: #a78bfa;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  justify-content: center;
}
.suerte-btn-info:hover { background: rgba(108, 62, 244, 0.28); color: #c4b5fd; }

/* ── Modal: cómo jugar ────────────────────────────────── */
.suerte-info-modal {
  position: absolute;
  inset: 0;
  z-index: 820;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.suerte-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.suerte-info-modal__box {
  position: relative;
  z-index: 1;
  background: #0d1530;
  border: 1px solid rgba(255, 199, 0, 0.25);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

.suerte-info-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.suerte-info-modal__title {
  font-size: 1.14rem;
  font-weight: 900;
  color: var(--srh-gold);
  letter-spacing: 0.3px;
}

.suerte-info-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.suerte-info-modal__close:hover { color: var(--text-main); }

.suerte-info-modal__steps {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.suerte-info-modal__steps li {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.45;
}

.suerte-info-modal__note {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: rgba(165, 177, 216, 0.65);
  line-height: 1.45;
}
.suerte-info-modal__note:last-child { margin-bottom: 0; }

.suerte-panel__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--srh-gold);
  letter-spacing: 0.5px;
}

/* Body scrollable */
.suerte-panel__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 1.4rem 1rem calc(70px + env(safe-area-inset-bottom));
}

/* Grupo: control + hint */
.suerte-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Texto informativo debajo de cada sección */
.suerte-hint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* Selector multiplicador */
.suerte-mult-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.suerte-mult-btn {
  flex: 1;
  max-width: 90px;
  padding: 0.65rem 0;
  border-radius: var(--radius-pill);
  border: 2px solid var(--srh-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.suerte-mult-btn--active {
  border-color: var(--srh-gold);
  background: rgba(255, 199, 0, 0.12);
  color: var(--srh-gold);
  box-shadow: 0 0 14px rgba(255, 199, 0, 0.3);
}

/* Slots wrapper */
.suerte-slots-wrap {
  width: 100%;
}

.suerte-slots {
  display: flex;
  gap: 8px;
  width: 100%;
}

/* Layout x10: dos filas de 5 */
.suerte-slots--n10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

/* Cada slot */
.suerte-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

/* Viewport del slot (ventana del cilindro) */
.suerte-slot__viewport {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--srh-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #050811 0%, #0b1123 50%, #050811 100%);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.9);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Sombras cilíndricas top/bottom */
.suerte-slot__viewport::before,
.suerte-slot__viewport::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 33%;
  z-index: 5;
  pointer-events: none;
}
.suerte-slot__viewport::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(5,8,17,0.97), transparent);
}
.suerte-slot__viewport::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(5,8,17,0.97), transparent);
}

/* Línea de enfoque central */
.suerte-slot__focus {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  border-top: 1px solid rgba(255, 199, 0, 0.35);
  border-bottom: 1px solid rgba(255, 199, 0, 0.35);
  background: rgba(255, 199, 0, 0.04);
  z-index: 4;
  pointer-events: none;
}

/* Tambor del slot (se desplaza en Y) */
.suerte-slot__drum {
  position: absolute;
  width: 100%;
  /* top se asigna por JS: viewportH/2 - itemH/2 */
  will-change: transform;
}

/* Placeholder '?' antes de girar */
.suerte-slot__placeholder {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #050811 0%, #0b1123 50%, #050811 100%);
  font-size: 2rem;
  font-weight: 900;
  color: var(--srh-gold);
  pointer-events: none;
  letter-spacing: 0;
  animation: suerte-ph-pulse 1.8s ease-in-out infinite;
}

/* Viewport dorado con brillo pulsante cuando está en reposo */
.suerte-slot__viewport.suerte-slot--idle {
  border-color: var(--srh-gold);
  animation: suerte-idle-pulse 1.8s ease-in-out infinite;
}

@keyframes suerte-idle-pulse {
  0%, 100% { box-shadow: inset 0 0 18px rgba(0,0,0,0.9), 0 0 6px rgba(255,199,0,0.2); }
  50%       { box-shadow: inset 0 0 18px rgba(0,0,0,0.9), 0 0 18px rgba(255,199,0,0.65); }
}

@keyframes suerte-ph-pulse {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 8px rgba(255,199,0,0.4); }
  50%       { opacity: 1;   text-shadow: 0 0 22px rgba(255,199,0,1); }
}

/* Ítem individual del tambor */
.suerte-slot__item {
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.suerte-slot__emoji {
  font-size: 1.7rem;
  line-height: 1;
  filter: grayscale(0.6) brightness(0.65);
  transition: filter 0.3s;
}

.suerte-slot__num {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

/* Tamaño reducido en la cuadrícula de 10 */
.suerte-slots--n10 .suerte-slot__emoji { font-size: 1.3rem; }
.suerte-slots--n10 .suerte-slot__num   { font-size: 0.5rem; }

.suerte-slot__item--active .suerte-slot__emoji {
  filter: grayscale(0) brightness(1);
}
.suerte-slot__item--active .suerte-slot__num {
  color: var(--srh-gold);
}

/* Animaciones de destello al detenerse */
@keyframes suerte-flash {
  0%   { border-color: var(--srh-border); box-shadow: inset 0 0 18px rgba(0,0,0,0.9); }
  40%  { border-color: var(--srh-gold); box-shadow: inset 0 0 20px rgba(255,199,0,0.3), 0 0 28px rgba(255,199,0,0.9); }
  100% { border-color: var(--srh-border); box-shadow: inset 0 0 18px rgba(0,0,0,0.9); }
}

.suerte-slot--flash {
  animation: suerte-flash 0.7s ease-out forwards;
}

@keyframes suerte-blink {
  0%, 100% { border-color: var(--srh-border); box-shadow: inset 0 0 18px rgba(0,0,0,0.9); }
  50%       { border-color: var(--srh-gold); box-shadow: inset 0 0 20px rgba(255,199,0,0.25), 0 0 22px rgba(255,199,0,0.75); }
}

.suerte-slot--blink {
  animation: suerte-blink 0.28s ease-in-out 3;
}

/* Botones de monto fijo */
.suerte-montos {
  display: flex;
  gap: 0.5rem;
}

.suerte-monto-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.7rem 0.3rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--srh-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.suerte-monto-btn--active {
  border-color: var(--srh-gold);
  background: rgba(255, 199, 0, 0.12);
  color: var(--srh-gold);
  box-shadow: 0 0 14px rgba(255, 199, 0, 0.3);
}

.suerte-monto-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Botón jugar — fila completa */
.suerte-btn-play {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--srh-gold), #ff9100);
  color: #050816;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255, 199, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
  transition: 0.2s;
}

.suerte-btn-play:hover:not(:disabled) { box-shadow: 0 0 28px rgba(255, 199, 0, 0.7); }
.suerte-btn-play:active:not(:disabled) { transform: scale(0.95); }
.suerte-btn-play:disabled {
  opacity: 0.25;
  filter: grayscale(1);
  box-shadow: none;
  cursor: not-allowed;
}

/* Badge de total a jugar */
.suerte-total {
  text-align: center;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 199, 0, 0.08);
  border: 1px solid rgba(255, 199, 0, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.suerte-total__eq {
  color: var(--srh-gold);
  font-weight: 900;
  font-size: 1rem;
}

@keyframes anim-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.anim-step--shake { animation: anim-shake 0.5s ease-out; }

.anim-ticket-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.anim-ticket {
  background: radial-gradient(circle at top left, #14213d, #050816 60%);
  border: 1px solid rgba(0, 200, 83, 0.4);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,200,83,0.2);
}

.anim-ticket__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 200, 83, 0.15);
  border: 2px solid #34d399;
  color: #34d399;
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.anim-ticket__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: #34d399;
}

.anim-ticket__code {
  font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--srh-gold);
  margin: 0 0 1.25rem;
}

.anim-ticket__detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--srh-border);
  text-align: left;
}

.anim-ticket__detail span:first-child { color: var(--text-muted); flex-shrink: 0; }
.anim-ticket__detail span:last-child  { color: var(--text-main); font-weight: 500; text-align: right; }

/* Ejemplar del ticket: número de inscripción (mantil) + nombre */
.anim-ticket__ejemplar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}
.anim-ticket__ejemplar .hip-mantil {
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.anim-ticket__bono {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #34d399;
}

.anim-ticket__btn {
  margin-top: 1.25rem;
  width: 100%;
}

.jugada-post-dialog__msg {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.2rem;
}

.jugada-post-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.jugada-post-dialog__btn {
  width: 100%;
}

/* "Ver Carrera": mismo rojo del CTA "Ver Vivo" del banner de stream */
.jugada-post-dialog__btn--vivo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #DC2626, #BE123C);
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jugada-post-dialog__btn--vivo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(190, 18, 60, 0.45);
}
.jugada-post-dialog__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.anim-toast {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom) + 80px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9500;
  background: rgba(9, 12, 28, 0.97);
  border: 1px solid var(--srh-border);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: normal;
  width: max-content;
  max-width: min(420px, calc(100vw - 2rem));
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.anim-toast--error {
  border-color: rgba(229, 57, 53, 0.5);
  color: #ff8a80;
}

.anim-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 599px) {
  .anim-carousel-nav { display: none; }

  /* Mostrar flechas en móvil cuando el carrusel tiene menos de 5 elementos */
  .anim-carousel-viewport:has(.anim-carousel-container > *:first-child:nth-last-child(-n+4)) .anim-carousel-nav,
  .anim-carousel-viewport:has(.anim-carousel-container--sm > *:first-child:nth-last-child(-n+4)) .anim-carousel-nav {
    display: flex;
  }

  /* Lotería mobile */
  .anim-carousel-viewport {
    height: 196px;
    perspective: 1800px;
  }
  .anim-carousel-container {
    width: 125px;
    height: 132px;
  }
  .anim-lot-item {
    width: 125px;
    height: 132px;
  }
  .anim-lot-item__icon { font-size: 1.8rem; }
  .anim-lot-item__name { font-size: 0.72rem; }
  .anim-lot-item.active .anim-lot-item__content { transform: none; }

  /* Sorteo */
  .anim-carousel-viewport--sm { height: 95px; }
  .anim-carousel-container--sm { width: 114px; height: 50px; }
  .anim-sort-item { width: 114px; height: 50px; }
  .anim-sort-item__hora   { font-size: 0.8rem; }
  .anim-sort-item__nombre { font-size: 0.52rem; }
  .anim-sort-item.active .anim-sort-item__content { transform: none; }
}

@media (min-width: 600px) {
  .anim-animals-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

@media (min-width: 1024px) {
  .anim-animals-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .anim-action-bar {
    max-width: 800px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-left: 1px solid var(--srh-border);
    border-right: 1px solid var(--srh-border);
  }

  /* Sin bottom-nav en escritorio: basta el padding normal, sin colchón */
  .anim-action-bar,
  .hex-action-bar,
  .hpk-action-bar {
    --nav-fab-overhang: 0.6rem;
  }
}

@media (orientation: landscape) and (max-width: 1023px) {
  .anim-action-bar {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .anim-action-bar,
  .hex-action-bar,
  .hpk-action-bar {
    --nav-fab-overhang: 0.6rem;
  }

  .app-bottom-nav {
    display: none;
  }
}

/* ==========================================
   TRIPLETAS
   ========================================== */

/* Ícono de cabecera tripletas */
.jugar-header__icon--purple {
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.3);
  color: var(--yellow-ve);
}

/* ── Selector de sorteos ── */
.trip-sort-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

.trip-sort-picker__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.trip-sort-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.trip-sort-pills::-webkit-scrollbar { display: none; }

.trip-sort-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.trip-sort-pill__hora {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.trip-sort-pill__nombre {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.trip-sort-pill:hover {
  border-color: rgba(255, 214, 0, 0.45);
  background: rgba(255, 214, 0, 0.06);
}

.trip-sort-pill.active {
  border-color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.11);
  box-shadow: 0 0 14px rgba(255, 214, 0, 0.2);
}

.trip-sort-pill.active .trip-sort-pill__hora {
  color: var(--yellow-ve);
}

/* ── Progreso de selección de animalitos ── */
.trip-animal-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.45rem 0 0.85rem;
}

.trip-animal-progress__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(165, 177, 216, 0.25);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}

.trip-animal-progress__dot.filled {
  background: var(--yellow-ve);
  border-color: var(--yellow-ve);
  transform: scale(1.18);
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.5);
}

.trip-animal-progress__text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

/* ── Fila monto + botón agregar ── */
.trip-add-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.trip-add-btn {
  flex-shrink: 0;
  padding: 0.62rem 1.35rem;
  background: var(--yellow-ve);
  color: #050816;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 18px rgba(255, 214, 0, 0.3);
}

.trip-add-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.trip-add-btn:not(:disabled):hover {
  box-shadow: 0 0 26px rgba(255, 214, 0, 0.55);
}

.trip-add-btn:not(:disabled):active {
  transform: scale(0.96);
}

/* ── Lista del ticket ── */
.trip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trip-list__empty {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.82rem;
}

.trip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.trip-item:hover {
  border-color: rgba(255, 214, 0, 0.22);
}

.trip-item__animals {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 1.45rem;
  flex-shrink: 0;
  line-height: 1;
}

.trip-item__plus {
  font-size: 0.62rem;
  color: var(--text-muted);
  padding: 0 2px;
  line-height: 1;
}

.trip-item__meta {
  flex: 1;
  min-width: 0;
}

.trip-item__nombres {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-item__sorteos {
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trip-item__monto {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow-ve);
  margin-top: 3px;
}

.trip-item__remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(229, 57, 53, 0.12);
  color: var(--red-ve);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background var(--transition-fast);
}

.trip-item__remove:hover {
  background: rgba(229, 57, 53, 0.28);
}

/* Carrusel de sorteos de tripletas (misma apariencia que anim-sort-item) */
.trip-sort-item {
  position: absolute;
  width: 152px;
  height: 70px;
  left: 0;
  top: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.trip-sort-item__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.trip-sort-item.active {
  background: linear-gradient(135deg, var(--yellow-ve), #ff9100);
  border-color: #ffea00;
  box-shadow: 0 0 30px rgba(255,214,0,0.65), 0 0 60px rgba(255,214,0,0.25);
  z-index: 100;
}

.trip-sort-item__hora {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.trip-sort-item.active .trip-sort-item__hora {
  color: #050816;
}

.trip-sort-item__nombre {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.trip-sort-item.active .trip-sort-item__nombre {
  color: rgba(5,8,22,0.65);
  opacity: 1;
}

@media (max-width: 600px) {
  .trip-sort-item { width: 114px; height: 50px; }
  .trip-sort-item__hora   { font-size: 0.8rem; }
  .trip-sort-item__nombre { font-size: 0.52rem; }
  .trip-sort-item.active .trip-sort-item__content { transform: none; }
}

/* Sorteo fin (auto-calculado) */
.trip-fin-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(124, 77, 255, 0.08);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-radius: 12px;
  min-height: 44px;
}

.trip-fin-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow-ve, #ffd600);
  background: rgba(255, 214, 0, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.trip-fin-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary, #f0f0f0);
  flex: 1;
}

.trip-fin-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 152, 0, 0.18);
  color: #ffab40;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trip-fin-tag--today {
  background: rgba(76, 175, 80, 0.18);
  color: #69f0ae;
}

.trip-fin-sub {
  width: 100%;
  font-size: 0.7rem;
  color: var(--text-secondary, #aaa);
  letter-spacing: 0.02em;
}

.trip-fin-auto-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(124, 77, 255, 0.18);
  color: #b39ddb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* Botón flotante Agregar al Ticket */
.trip-btn-agregar {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom) + 70px);
  right: 1.1rem;
  z-index: 501;
  padding: 0 20px;
  height: 44px;
  border-radius: 22px;
  border: none;
  background: var(--purple-ve, #7c4dff);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 22px rgba(124, 77, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.trip-btn-agregar--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.trip-btn-agregar:active {
  transform: scale(0.95);
}
@media (min-width: 1024px) {
  .trip-btn-agregar {
    bottom: 70px;
  }
}
@media (orientation: landscape) and (max-width: 1023px) {
  .trip-btn-agregar {
    bottom: 70px;
  }
}

/* Hint de validación de monto en la barra de acción */
#trip-action-bar,
#anim-action-bar {
  flex-wrap: wrap;
}
.trip-monto-hint,
.anim-monto-hint {
  flex-basis: 100%;
  order: -1;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 5px;
  line-height: 1;
  color: #ff5252;
  letter-spacing: 0.01em;
}

/* Ítems del ticket multi-tripleta */
.trip-ticket-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(124, 77, 255, 0.07);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 12px;
}
.trip-ticket-item__emojis {
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.trip-ticket-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.trip-ticket-item__nombres {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary, #f0f0f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trip-ticket-item__sorteo {
  font-size: 0.68rem;
  color: var(--text-secondary, #aaa);
}
.trip-ticket-item__monto {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yellow-ve, #ffd600);
  flex-shrink: 0;
}
.trip-ticket-item__remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(229, 57, 53, 0.18);
  color: #ef5350;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.trip-ticket-item__remove:hover {
  background: rgba(229, 57, 53, 0.35);
}

/* ==========================================
   APP RESULTADOS — VISTA PARA USUARIOS
   ========================================== */

.app-results-section {
  padding: 1.25rem 0 1rem;
  min-height: calc(100vh - var(--app-header-total) - 60px);
}

.app-results-container {
  width: min(640px, 100% - 2rem);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Cabecera de página + botón refresh en esquina */
.app-page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-page-header__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.2);
  display: grid;
  place-items: center;
  color: var(--yellow-ve);
  flex-shrink: 0;
}

.app-page-header__text {
  flex: 1;
  min-width: 0;
}

.app-page-header__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.app-page-header__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0;
}

/* Botón de refresh — icono pequeño en esquina derecha del header */
.app-refresh-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(165, 177, 216, 0.25);
  background: rgba(11, 16, 32, 0.8);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

.app-refresh-icon-btn:hover {
  color: var(--yellow-ve);
  border-color: rgba(255, 214, 0, 0.4);
  background: rgba(255, 214, 0, 0.06);
  transform: rotate(30deg);
}

/* Filtros en fila compacta */
.app-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.app-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.app-filter-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Loading state */
.app-loading-state {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.app-loading-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Ajustes para las tarjetas — 4 por fila */
.app-results-section .loteria {
  margin: 0.75rem 0;
  padding: 0.85rem 0.9rem;
}

.app-results-section .loteria h2 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.app-results-section .loteria > p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

/* 4 columnas fijas */
.app-results-section .sorteos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.app-results-section .sorteo {
  padding: 0.6rem 0.3rem;
}

.app-results-section .sorteo img {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.3rem;
}

.app-results-section .numero {
  font-size: 1rem;
}

.app-results-section .animal {
  font-size: 0.68rem;
  margin: 0.2rem 0;
}

.app-results-section .hora {
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  margin-top: 0.25rem;
}

.app-results-section .fecha {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.75rem;
}

.app-results-section .fecha h2 {
  font-size: 0.85rem;
}

/* Inputs de filtro compactos */
.app-results-section .filter-select,
.app-results-section .filter-date {
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  padding-right: 2rem;
  min-width: 0;
  width: 100%;
}

/* Desktop: más ancho, 4 columnas se mantienen */
@media (min-width: 640px) {
  .app-results-container {
    width: min(900px, 100% - 3rem);
  }

  .app-results-section .sorteos {
    gap: 0.75rem;
  }

  .app-results-section .sorteo img {
    width: 44px;
    height: 44px;
  }

  .app-results-section .numero {
    font-size: 1.1rem;
  }

  .app-results-section .animal {
    font-size: 0.74rem;
  }
}

/* Pantallas muy pequeñas: 2 columnas */
@media (max-width: 360px) {
  .app-results-section .sorteos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-filters {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   MODAL ZOOM DE ANIMAL
   ========================================== */

/* Cards interactivas */
.app-results-section .sorteo {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.app-results-section .sorteo:active {
  transform: scale(0.94);
  box-shadow: none;
}

/* Overlay completo */
.animal-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;        /* sube desde abajo en móvil */
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.animal-modal--open {
  pointer-events: auto;
  opacity: 1;
}

/* Fondo difuminado */
.animal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Tarjeta */
.animal-modal__card {
  position: relative;
  z-index: 1;
  width: min(340px, 92vw);
  background: linear-gradient(160deg, #0e1630 0%, #080c1e 100%);
  border: 1px solid rgba(255, 214, 0, 0.55);
  border-radius: 24px 24px 0 0;
  padding: 1rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  box-shadow:
    0 -12px 50px rgba(0, 0, 0, 0.55),
    0 -4px 30px rgba(255, 214, 0, 0.18),
    0 0 0 1px rgba(255, 214, 0, 0.12),
    inset 0 1px 0 rgba(255, 214, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* Brillo superior animado */
.animal-modal__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 0, 0.9), transparent);
  border-radius: 999px;
  animation: goldLineGlow 2.5s ease-in-out infinite;
}

/* Resplandor de esquinas */
.animal-modal__card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 214, 0, 0.12) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 180, 0, 0.08) 100%
  );
  pointer-events: none;
}

@keyframes goldLineGlow {
  0%, 100% { opacity: 0.5; transform: scaleX(0.6); }
  50%       { opacity: 1;   transform: scaleX(1); }
}

.animal-modal--open .animal-modal__card {
  transform: translateY(0);
}

/* Indicador de swipe (pill) */
.animal-modal__swipe-hint {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(165, 177, 216, 0.3);
  margin-bottom: 0.6rem;
}

/* Botón cerrar */
.animal-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(165, 177, 216, 0.25);
  background: rgba(11, 16, 32, 0.8);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.animal-modal__close:hover {
  color: var(--text-main);
  background: rgba(165, 177, 216, 0.12);
}

/* Imagen del animal */
.animal-modal__img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 0.4rem;
  animation: animalZoomIn 0.32s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}

@keyframes animalZoomIn {
  from { transform: scale(0.55); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Número ganador */
.animal-modal__numero {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--yellow-ve);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Nombre del animal */
.animal-modal__nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Nombre de la lotería */
.animal-modal__loteria {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

/* Hora */
.animal-modal__hora {
  background: rgba(0, 200, 83, 0.13);
  color: #7cf17b;
  border: 1px solid rgba(124, 241, 123, 0.3);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-top: 0.4rem;
}

/* Desktop: centrado en pantalla, no desde abajo */
@media (min-width: 640px) {
  .animal-modal {
    align-items: center;
  }

  .animal-modal__card {
    border-radius: 24px;
    padding: 1.5rem 2rem 2rem;
    transform: scale(0.75);
    transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
                opacity 0.2s ease;
    opacity: 0;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.6),
      0 0 40px rgba(255, 214, 0, 0.14),
      0 0 0 1px rgba(255, 214, 0, 0.12),
      inset 0 1px 0 rgba(255, 214, 0, 0.15);
  }

  .animal-modal {
    transition: opacity 0.2s ease;
  }

  .animal-modal--open .animal-modal__card {
    transform: scale(1);
    opacity: 1;
  }

  .animal-modal__swipe-hint {
    display: none;
  }

  .animal-modal__img {
    width: 130px;
    height: 130px;
  }
}

/* ==========================================
   MIS JUGADAS — PÁGINA Y COMPONENTES
   ========================================== */

.jugadas-section {
  padding: 1.5rem 0 4rem;
  min-height: calc(100vh - var(--app-header-total) - 68px);
}

.jugadas-container {
  max-width: 640px;
}

/* ── Filtros ── */
.jugadas-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
}
.jugadas-filters .filter-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}
.jugadas-filters .filter-date {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 11px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  color: #e2e8f0;
  outline: none;
  transition: border-color var(--transition-fast);
}
.jugadas-filters .filter-date:focus { border-color: var(--srh-gold); }
.jugadas-filters .filter-date::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }

@media (min-width: 600px) {
  .jugadas-filters {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .jugadas-filters .toggle-group {
    flex: 1;
    margin-top: 0;
  }
}

/* ── Lista de jugadas ── */
.jugadas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jugadas-list-loader {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

/* ── Tarjeta de jugada ── */
.jugada-card {
  background: var(--srh-card);
  border-radius: 16px;
  border: 1px solid var(--srh-border);
  padding: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.jugada-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.jugada-card:active {
  transform: scale(0.99);
}

.jugada-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0;
}

.jugada-card__code {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--srh-gold);
  letter-spacing: 0.02em;
}

/* Body: caja interna oscura (selección + monto) */
.jugada-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid #1e293b;
}

.jugada-card__bets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.jugada-card__bet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #FCD34D;
}

.jugada-card__bet-chip--tripleta { color: #FBBF24; }

.jugada-card__bet-chip--triple { color: #67E8F9; }

.jugada-card__amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  text-align: right;
}

.jugada-card__simbolo {
  font-size: 0.6rem;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

.jugada-card__monto {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Courier New', monospace;
}

.jugada-card__moneda {
  font-size: 0.7rem;
  color: var(--srh-muted);
  font-weight: 500;
}

.jugada-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.66rem;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

.jugada-card__ver-mas {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--srh-gold);
  opacity: 0.9;
  font-family: inherit;
}

.jugada-card:hover .jugada-card__ver-mas {
  opacity: 1;
}

/* ── Badges de estado ── */
.jugada-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.jugada-status--pendiente {
  background: rgba(245, 158, 11, 0.1);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.jugada-status--ganado {
  background: rgba(16, 185, 129, 0.12);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-weight: 700;
}

.jugada-status--perdido {
  background: rgba(148, 163, 184, 0.08);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ── Card-level estado modifiers ── */
.jugada-card--ganado {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.12);
}
.jugada-card--ganado:hover {
  border-color: rgba(16, 185, 129, 0.6);
}
.jugada-card--ganado .jugada-card__code--header {
  color: #00e676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.45);
}

/* ════════════════════════════════════════════════════
   Módulo Hípica
   ════════════════════════════════════════════════════ */

/* ── Carrusel hipódromo ── */
.hip-hipo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  text-align: center;
}
.hip-hipo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.hip-hipo-logo img {
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}
.hip-hipo-name {
  font-size: .58rem;
  font-weight: 600;
  color: var(--text-muted, #a5b1d8);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.2;
}
.hip-hipo-races {
  font-size: .62rem;
  font-weight: 700;
  color: var(--srh-gold);
  background: rgba(255,199,0,.12);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

/* ── Carrusel carrera ── */
.hip-carr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}
.hip-carr-num {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-muted, #a5b1d8);
}
.hip-carr-hora {
  font-size: .62rem;
  font-weight: 600;
  color: var(--text-muted, #a5b1d8);
  opacity: .7;
}
.anim-sort-item.active .hip-carr-num  { color: #050816; opacity: 1; }
.anim-sort-item.active .hip-carr-hora { color: rgba(5,8,22,.65); opacity: 1; }

/* Carrera no disponible (estado = 0) */
.anim-sort-item.hip-carr--muted { cursor: default; }
.anim-sort-item.hip-carr--muted .hip-carr-card { opacity: .38; }
.anim-sort-item.hip-carr--muted.active {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  box-shadow: none;
}
.anim-sort-item.hip-carr--muted.active .hip-carr-num,
.anim-sort-item.hip-carr--muted.active .hip-carr-hora { color: var(--text-muted, #a5b1d8); opacity: .45; }
.hip-carr-nd {
  font-size: .5rem;
  font-weight: 700;
  color: var(--text-muted, #a5b1d8);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
}

/* ── Etiqueta debajo del carrusel ── */
.hip-carousel-label {
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  margin-top: 6px;
  min-height: 20px;
}

/* ── Pill de carrera activa ── */
.hip-race-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,199,0,.08);
  border: 1px solid rgba(255,199,0,.25);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: .78rem;
  color: var(--srh-gold);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ── Tabla de ejemplares ── */
.hip-tabla-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.hip-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.hip-tabla thead tr { background: rgba(255,199,0,.06); }
.hip-tabla th {
  padding: 10px 12px;
  text-align: left;
  font-size: .63rem;
  font-weight: 800;
  color: var(--srh-gold);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hip-tabla td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
  white-space: nowrap;
  color: var(--text-muted, #a5b1d8);
  transition: background .12s;
}
.hip-tabla tbody tr:hover td { background: rgba(255,255,255,.03); }
.hip-tabla-row { cursor: pointer; }
.hip-tabla-row.hip-row-sel td { background: rgba(255,199,0,.07); }
.hip-tabla-row.hip-row-sel .hip-nombre-ej { color: var(--srh-gold); }
.hip-nombre-ej { color: var(--text-primary, #f1f5f9); font-weight: 700; }
.hip-entrenador { max-width: 140px; white-space: normal; }
.hip-mantil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 900;
  font-size: .78rem;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.hip-badge-ml {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0,75,135,.65);
  border: 1px solid rgba(0,150,255,.3);
  color: #7ec8ff;
  font-weight: 800;
  font-size: .72rem;
}
.hip-error { color: #e53935 !important; }

/* ── Barra de acción hípica ── */
#hip-action-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: #0b1020;
}

/* ── Tab flotante sobre la barra (ejemplar seleccionado) ── */
.hip-sel-tab {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(11,16,32,.97);
  border-top: 1px solid rgba(255,199,0,.4);
  border-left: 2px solid var(--srh-gold);
  border-right: 2px solid var(--srh-gold);
  border-radius: 12px 12px 0 0;
  padding: 7px 1.08rem;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  overflow: hidden;
  white-space: nowrap;
}
.hip-sel-tab.visible { display: flex; }
.hip-sel-tab .hip-mantil {
  width: 22px;
  height: 22px;
  font-size: .68rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.hip-pill-horse { font-size: .9rem; flex-shrink: 0; }
.hip-pill-name {
  color: var(--srh-gold);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.hip-pill-sep { opacity: .35; flex-shrink: 0; }

/* ── Fila monto + botón ── */
.hip-bar-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hip-bar-row2 .anim-monto-row {
  flex: 2;
  min-width: 0;
  margin: 0;
}
.hip-bar-row2 .anim-monto-input-wrap {
  flex: 1 1 auto;
  width: auto;
}
.hip-bar-row2 .anim-btn-play {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Toggle WIN / PLACE / SHOW ── */
.hip-tipo-toggle {
  width: 100%;
  display: flex;
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 4px;
}
.hip-tipo-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(33.33% - 2.67px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border-radius: 14px;
  z-index: 1;
  transition: transform .4s cubic-bezier(.19,1,.22,1);
  box-shadow: 0 4px 14px rgba(255,199,0,.25);
}
.hip-tipo-opt {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-muted, #a5b1d8);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color .25s;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: none;
  border: none;
  font-family: inherit;
}
.hip-tipo-opt.active { color: #02040a; }
.hip-tipo-opt:disabled {
  color: rgba(220, 53, 53, 0.55);
  cursor: not-allowed;
  pointer-events: auto; /* mantener para mostrar tooltip */
}

/* ── Modal vista previa del ticket hípico ── */
.hip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.hip-modal-box {
  background: var(--bg-card, #111729);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: hipFadeUp .3s ease-out forwards;
}
@keyframes hipFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hip-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hip-modal-titulo {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--srh-gold);
}
.hip-modal-cerrar {
  background: none;
  border: none;
  color: var(--text-muted, #a5b1d8);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
  transition: color .2s;
}
.hip-modal-cerrar:hover { color: #f1f5f9; }
.hip-ticket-wrap {
  margin: 1.1rem 1.4rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
}
.hip-ticket-top {
  background: linear-gradient(135deg, #FFC700, #ff9100);
  padding: .6rem 1.1rem;
}
.hip-ticket-label {
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #02040a;
  opacity: .8;
}
.hip-ticket-rows {
  padding: .7rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.hip-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hip-ticket-row:last-child { border-bottom: none; }
.hip-ticket-key {
  font-size: .63rem;
  font-weight: 700;
  color: var(--text-muted, #a5b1d8);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
  margin-right: 12px;
}
.hip-ticket-val {
  font-size: .78rem;
  font-weight: 600;
  color: #f1f5f9;
  text-align: right;
}
.hip-ticket-val small { color: var(--text-muted, #a5b1d8); font-size: .66rem; }
.hip-ticket-horse { color: var(--srh-gold); font-weight: 800; font-size: .88rem; }
.hip-ticket-tipo {
  display: inline-block;
  background: linear-gradient(135deg, #FFC700, #ff9100);
  color: #02040a;
  font-weight: 900;
  font-size: .7rem;
  padding: 2px 12px;
  border-radius: 20px;
}
.hip-ticket-monto { color: #34d399; font-weight: 900; font-size: .92rem; }
.hip-ticket-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,199,0,.4), transparent);
  margin: .35rem 0;
}
.hip-ticket-foot {
  background: rgba(255,199,0,.03);
  border-top: 1px dashed rgba(255,255,255,.08);
  padding: .55rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hip-ticket-foot span { font-size: .62rem; color: var(--text-muted, #a5b1d8); font-weight: 600; }
.hip-ticket-prox {
  font-size: .58rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--srh-gold) !important;
  opacity: .55;
  border: 1px solid rgba(255,199,0,.3);
  padding: 1px 7px;
  border-radius: 6px;
}
.hip-modal-footer {
  display: flex;
  gap: 10px;
  padding: 0 1.4rem 1.4rem;
}
.hip-btn-cancelar {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted, #a5b1d8);
  border-radius: 999px;
  padding: 11px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.hip-btn-cancelar:hover { border-color: rgba(255,255,255,.25); color: #f1f5f9; }
.hip-btn-confirmar {
  flex: 2;
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border: none;
  color: #02040a;
  border-radius: 999px;
  padding: 11px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,199,0,.25);
  transition: .2s;
}
.hip-btn-confirmar:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,199,0,.38); }
.hip-btn-confirmar:disabled { opacity: .32; filter: grayscale(.5); cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Badge cierre anticipado carrera hípica ── */
.hip-cierre-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  vertical-align: middle;
  background: rgba(255,152,0,.12);
  border: 1px solid rgba(255,152,0,.35);
  color: #ff9800;
  margin-left: 6px;
}
.hip-cierre-badge--closed {
  background: rgba(229,57,53,.13);
  border-color: rgba(229,57,53,.38);
  color: #e57373;
}

/* ── Banner carrera cerrada ── */
.hip-carrera-cerrada-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,57,53,.09);
  border: 1px solid rgba(229,57,53,.28);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-bottom: .75rem;
  font-size: .8rem;
  font-weight: 700;
  color: #e57373;
  line-height: 1.35;
}

@keyframes animSparkle {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2); opacity: 0; }
}

.jugada-card--pagado .jugada-card__code--header {
  color: #29b6f6;
}

.jugada-card--perdido {
  border-color: rgba(107, 122, 154, 0.2);
}
.jugada-card--perdido,
.jugada-card--perdido .jugada-card__code--header,
.jugada-card--perdido .jugada-card__simbolo,
.jugada-card--perdido .jugada-card__monto,
.jugada-card--perdido .jugada-card__moneda,
.jugada-card--perdido .jugada-card__footer,
.jugada-card--perdido .jugada-card__ver-mas,
.jugada-card--perdido .jugada-card__bet-chip,
.jugada-card--perdido .jugada-card__bet-chip--tripleta,
.jugada-card--perdido .jugada-card__bet-chip--triple {
  color: #6b7a9a !important;
  text-shadow: none !important;
}
.jugada-card--perdido .jugada-card__bet-chip,
.jugada-card--perdido .jugada-card__bet-chip--tripleta,
.jugada-card--perdido .jugada-card__bet-chip--triple {
  background: rgba(107, 122, 154, 0.1) !important;
  border-color: rgba(107, 122, 154, 0.2) !important;
}

.jugada-status--anulado {
  background: rgba(229, 57, 53, 0.12);
  color: #ef5350;
  border: 1px solid rgba(229, 57, 53, 0.35);
}

.jugada-status--pagado {
  background: rgba(41, 182, 246, 0.13);
  color: #29b6f6;
  border: 1px solid rgba(41, 182, 246, 0.38);
  font-weight: 700;
}

.jugada-card--anulado {
  border-color: rgba(107, 122, 154, 0.2);
}
.jugada-card--anulado,
.jugada-card--anulado .jugada-card__code--header,
.jugada-card--anulado .jugada-card__simbolo,
.jugada-card--anulado .jugada-card__monto,
.jugada-card--anulado .jugada-card__moneda,
.jugada-card--anulado .jugada-card__footer,
.jugada-card--anulado .jugada-card__ver-mas,
.jugada-card--anulado .jugada-card__bet-chip,
.jugada-card--anulado .jugada-card__bet-chip--tripleta,
.jugada-card--anulado .jugada-card__bet-chip--triple {
  color: #6b7a9a !important;
  text-shadow: none !important;
}
.jugada-card--anulado .jugada-card__bet-chip,
.jugada-card--anulado .jugada-card__bet-chip--tripleta,
.jugada-card--anulado .jugada-card__bet-chip--triple {
  background: rgba(107, 122, 154, 0.1) !important;
  border-color: rgba(107, 122, 154, 0.2) !important;
}

/* ── Triple numérico: item base ── */
.jugada-triple-item {
  background: rgba(0, 188, 212, 0.04);
  border: 1px solid rgba(0, 188, 212, 0.15);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jugada-triple-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jugada-triple-item__numero {
  font-size: 1.55rem;
  font-weight: 900;
  color: #00bcd4;
  letter-spacing: 0.12em;
  line-height: 1;
}

.jugada-triple-item__monto {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  flex-shrink: 0;
}

.jugada-triple-item__middle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.jugada-triple-item__tipo {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.25);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.jugada-triple-item__signo {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(165, 177, 216, 0.08);
  border: 1px solid rgba(165, 177, 216, 0.15);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.jugada-triple-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jugada-triple-item__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Triple numérico: estado ganado ── */
.jugada-triple-item--ganado {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(0, 230, 118, 0.06);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15), 0 0 0 1px rgba(0, 230, 118, 0.25);
}
.jugada-triple-item--ganado .jugada-triple-item__numero,
.jugada-triple-item--ganado .jugada-triple-item__monto { color: #00e676; }

/* ── Triple numérico: estado perdido ── */
.jugada-triple-item--perdido .jugada-triple-item__numero,
.jugada-triple-item--perdido .jugada-triple-item__monto,
.jugada-triple-item--perdido .jugada-triple-item__meta { color: #6b7a9a !important; }

/* ── Detail view: estado anulado ── */
.jugada-detail--anulado .jugada-detail__info-val,
.jugada-detail--anulado .jugada-detail__info-val--monto,
.jugada-detail--anulado .jugada-detail__info-val--code,
.jugada-detail--anulado .jugada-detail__section-title,
.jugada-detail--anulado .jugada-detail__animals-meta,
.jugada-detail--anulado .jugada-detail__animal-num,
.jugada-detail--anulado .jugada-detail__animal-name,
.jugada-detail--anulado .jugada-detail__animal-monto,
.jugada-detail--anulado .jugada-tripleta-item__monto,
.jugada-detail--anulado .jugada-tripleta-animal,
.jugada-detail--anulado .jugada-triple-item__numero,
.jugada-detail--anulado .jugada-triple-item__monto,
.jugada-detail--anulado .jugada-triple-item__meta {
  color: #6b7a9a !important;
  text-shadow: none !important;
}
.jugada-detail--anulado .jugada-detail__animal-emoji,
.jugada-detail--anulado .jugada-detail__animal-card {
  opacity: 0.45;
}
.jugada-detail--anulado .jugada-detail__info-val--monto small {
  color: #6b7a9a !important;
}

/* ── Detail view: estado pagado ── */
.jugada-detail--pagado .jugada-detail__premio {
  background: rgba(41, 182, 246, 0.07);
  border-color: rgba(41, 182, 246, 0.35);
}
.jugada-detail--pagado .jugada-detail__premio-label {
  color: rgba(41, 182, 246, 0.75);
}
.jugada-detail--pagado .jugada-detail__premio-mult {
  color: #29b6f6;
}
.jugada-detail--pagado .jugada-detail__premio-row--total .jugada-detail__premio-label {
  color: #29b6f6;
}
.jugada-detail--pagado .jugada-detail__premio-total {
  color: #29b6f6;
  text-shadow: none;
}
.jugada-detail--pagado .jugada-detail__premio-total small {
  color: rgba(41, 182, 246, 0.7);
}

.jugada-status--sm {
  font-size: 0.63rem;
  padding: 0.1rem 0.45rem;
}

/* ── Estado vacío ── */
.jugadas-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.jugadas-empty svg {
  opacity: 0.35;
}

.jugadas-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* ── Modal de detalle ── */
.jugada-detail-sheet__icon {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--srh-gold);
}

.jugada-detail {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Info general del ticket */
.jugada-detail__info {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--srh-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.jugada-detail__info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jugada-detail__info-label {
  font-size: 0.72rem;
  color: var(--srh-muted);
}

.jugada-detail__info-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.jugada-detail__info-val--code {
  font-family: 'Courier New', monospace;
  color: var(--srh-gold);
  font-size: 0.78rem;
}

.jugada-detail__info-val--monto {
  font-size: 1.05rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
}

.jugada-detail__info-val--monto small {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--srh-muted);
  margin-left: 2px;
}

/* ── Bloque de premio (ganador / pagado) ── */
.jugada-detail__premio {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.jugada-detail__premio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jugada-detail__premio-label {
  font-size: 0.74rem;
  color: rgba(110, 231, 183, 0.8);
}

.jugada-detail__premio-mult {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6EE7B7;
  font-family: 'Courier New', monospace;
}

.jugada-detail__premio-row--total .jugada-detail__premio-label {
  font-weight: 700;
  color: #6EE7B7;
}

.jugada-detail__premio-total {
  font-size: 1.15rem;
  font-weight: 900;
  color: #34d399;
  font-family: 'Courier New', monospace;
}

.jugada-detail__premio-total small {
  font-size: 0.68em;
  font-weight: 500;
  color: rgba(110, 231, 183, 0.7);
  margin-left: 2px;
}

/* Secciones de apuestas / tripletas */
.jugada-detail__section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.jugada-detail__section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.jugada-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Ítem de apuesta (animalito) */
.jugada-apuesta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(165, 177, 216, 0.12);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
}

.jugada-apuesta-item__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.jugada-apuesta-item__numero {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow-ve);
  flex-shrink: 0;
}

.jugada-apuesta-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.jugada-apuesta-item__animal {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jugada-apuesta-item__meta {
  font-size: 0.71rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jugada-apuesta-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.jugada-apuesta-item__monto {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Ítem de tripleta */
.jugada-tripleta-item {
  background: rgba(255, 145, 0, 0.04);
  border: 1px solid rgba(255, 145, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.jugada-tripleta-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jugada-tripleta-item__animales {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  min-width: 0;
}

.jugada-tripleta-animal {
  font-size: 0.78rem;
  color: var(--text-main);
  white-space: nowrap;
}

.jugada-tripleta-animal strong {
  color: #ff9100;
}

.jugada-tripleta-item__sep {
  color: rgba(165, 177, 216, 0.35);
  font-size: 0.7rem;
}

.jugada-tripleta-item__monto {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  flex-shrink: 0;
}


.jugada-tripleta-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jugada-tripleta-item__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ajuste bottom nav 6 ítems (móvil) */
@media (max-width: 767px) {
  .app-bottom-nav__item {
    font-size: 0.58rem;
  }
}

/* ── Jugada card: nombre de lotería ───────────────────────────────── */
.jugada-card__loteria {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

/* ── Detalle: meta de apuestas (lotería · sorteo) ─────────────────── */
.jugada-detail__animals-meta {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Detalle: grid dinámico de animalitos ────────────────────────── */
.jugada-detail__animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 10px;
}

.jugada-detail__animal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.jugada-detail__animal-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.jugada-detail__animal-num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--yellow-ve);
  line-height: 1;
}

.jugada-detail__animal-name {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jugada-detail__animal-monto {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

/* ── Animal card: estado ganado ── */
.jugada-detail__animal-card--ganado {
  border-color: rgba(0, 230, 118, 0.55);
  background: rgba(0, 230, 118, 0.07);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2), 0 0 0 1px rgba(0, 230, 118, 0.3);
}
.jugada-detail__animal-card--ganado .jugada-detail__animal-num {
  color: #00e676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}
.jugada-detail__animal-card--ganado .jugada-detail__animal-emoji {
  filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.5));
}
.jugada-detail__animal-card--ganado .jugada-detail__animal-monto {
  color: #00e676;
}

/* ── Animal card: estado perdido ── */
.jugada-detail__animal-card--perdido {
  border-color: rgba(107, 122, 154, 0.15);
  background: rgba(107, 122, 154, 0.04);
}
.jugada-detail__animal-card--perdido .jugada-detail__animal-num,
.jugada-detail__animal-card--perdido .jugada-detail__animal-name,
.jugada-detail__animal-card--perdido .jugada-detail__animal-monto {
  color: #6b7a9a !important;
  text-shadow: none;
}
.jugada-detail__animal-card--perdido .jugada-detail__animal-emoji {
  filter: grayscale(1) opacity(0.5);
}

/* ── Tripleta: estado ganado ── */
.jugada-tripleta-item--ganado {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(0, 230, 118, 0.06);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15), 0 0 0 1px rgba(0, 230, 118, 0.25);
}
.jugada-tripleta-item--ganado .jugada-tripleta-item__monto {
  color: #00e676;
}

/* ── Tripleta: estado perdido ── */
.jugada-tripleta-item--perdido .jugada-tripleta-animal,
.jugada-tripleta-item--perdido .jugada-tripleta-item__monto,
.jugada-tripleta-item--perdido .jugada-tripleta-item__meta {
  color: #6b7a9a !important;
}

/* ── Botón cobrar premio (dentro del detalle) ── */
.jugada-detail__cobrar-section {
  padding: 0.75rem 1rem 0.25rem;
  display: flex;
  justify-content: center;
}

@keyframes cobrar-reflejo {
  0%   { transform: translateX(-180%) skewX(-18deg); }
  100% { transform: translateX(420%) skewX(-18deg); }
}

@keyframes cobrar-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(255, 179, 0, 0.25), var(--shadow-soft); }
  50%       { box-shadow: 0 4px 30px rgba(255, 179, 0, 0.75), 0 0 48px rgba(255, 64, 0, 0.35); }
}

.jugada-detail__btn-cobrar {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: cobrar-glow 1.8s ease-in-out infinite;
}

.jugada-detail__btn-cobrar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 100%
  );
  animation: cobrar-reflejo 2.8s ease-in-out infinite;
  pointer-events: none;
}

/* ── Notificación de cobro de premio ── */
.cobro-notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cobro-notif-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.cobro-notif {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cobro-notif-overlay--visible .cobro-notif {
  transform: scale(1);
}


.cobro-notif__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.cobro-notif--exito .cobro-notif__icon-wrap {
  background: rgba(0, 230, 118, 0.12);
  border: 2px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
}

.cobro-notif--error .cobro-notif__icon-wrap {
  background: rgba(229, 57, 53, 0.12);
  border: 2px solid rgba(229, 57, 53, 0.35);
  color: #e53935;
}

.cobro-notif__titulo {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.cobro-notif__msg {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cobro-notif__monto {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem;
}

.cobro-notif__monto-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00e676;
  letter-spacing: -0.02em;
}

.cobro-notif__monto-cur {
  font-size: 0.8rem;
  color: #00e676;
  opacity: 0.75;
}

.cobro-notif__balance {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.cobro-notif__balance strong {
  color: var(--text-main);
}

.cobro-notif__btn-ok {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
}

/* ── Efectos visuales cobro de premio ── */
.cobro-flash-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
}

.cobro-flash-overlay--active {
  animation: cobro-flash 0.5s ease-out forwards;
}

@keyframes cobro-flash {
  0%   { opacity: 0; }
  5%   { opacity: 0.45; }
  100% { opacity: 0; }
}

.cobro-coin {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  animation: cobro-coin-fall var(--dur) cubic-bezier(0.5, 0, 0.7, 0.5) forwards;
}

@keyframes cobro-coin-fall {
  0%   { transform: translate(0,0) rotate(0deg) scale(0.5); opacity: 0; }
  10%  { opacity: 1; transform: translate(calc(var(--tx)*0.1), calc(var(--ty)*0.1)) rotate(45deg) scale(1.2); }
  100% { transform: translate(var(--tx), var(--ty)) rotate(1080deg) scale(1); opacity: 0; }
}

/* ==========================================
   TOGGLE GROUP — Filtro de tipo de jugada
   ========================================== */

.toggle-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  display: flex;
  position: relative;
  padding: 4px;
  backdrop-filter: blur(10px);
}

.toggle-option {
  flex: 1;
  padding: 0.34rem 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
}

.toggle-option.active {
  color: #050816;
}

.toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--yellow-ve), #ffb300, var(--red-ve));
  border-radius: var(--radius-pill);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 14px rgba(255, 214, 0, 0.25);
}

/* ── Toggle de 4 opciones (jugadas con hípicas) ── */
.toggle-group--4 .toggle-indicator {
  width: calc((100% - 8px) / 4);
}

.toggle-group--4 .toggle-option {
  font-size: 0.68rem;
  padding: 0.34rem 0.1rem;
}

/* ── Toggle de 5 opciones ── */
.toggle-group--5 .toggle-indicator {
  width: calc((100% - 8px) / 5);
}

.toggle-group--5 .toggle-option {
  font-size: 0.6rem;
  padding: 0.34rem 0.08rem;
}

/* ── Chip hípicas en tarjeta ── */
.jugada-card__bet-chip--hipica {
  color: #FCD34D;
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Meta de hipodromo/carrera en tarjeta ── */
.jugada-card__bet-meta {
  display: block;
  font-size: 0.64rem;
  color: var(--srh-muted);
  margin-top: 0.18rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.01em;
}

/* ── Tarjeta hípica ganada ── */
.jugada-card--hipica.jugada-card--ganado .jugada-card__code--header {
  color: #00e676;
}

/* ── Detalle hípica: tarjeta del caballo ── */
.hip-detail-horse {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--srh-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 0.75rem;
}

.hip-detail-horse__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hip-mantil--lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
}

.hip-detail-horse__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hip-detail-horse__nombre {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hip-detail-horse__jinete {
  font-size: 0.68rem;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

.hip-detail-horse__posicion {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6EE7B7;
  letter-spacing: 0.02em;
}

.hip-detail__posicion-val {
  font-weight: 700;
  color: #6EE7B7;
}

.hip-detail-horse__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.hip-detail-horse__tipo {
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hip-detail-horse__linea {
  font-size: 0.7rem;
  color: var(--srh-muted);
  font-weight: 600;
}

.hip-detail-horse--ganado {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.07);
}

.hip-detail-horse--ganado .hip-detail-horse__nombre {
  color: #6EE7B7;
}

.hip-detail-horse--ganado .hip-detail-horse__num {
  color: #6EE7B7;
}

.hip-detail-horse--perdido,
.jugada-card--perdido .hip-mantil {
  opacity: 0.5;
}

.hip-detail__premio-val {
  color: #34d399;
  font-weight: 800;
  font-family: 'Courier New', monospace;
}

/* ── Premio pagado en hípicas: gris en lugar del verde ── */
.jugada-detail--hipica.jugada-detail--pagado .jugada-detail__premio {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
}
.jugada-detail--hipica.jugada-detail--pagado .jugada-detail__premio-label,
.jugada-detail--hipica.jugada-detail--pagado .jugada-detail__premio-row--total .jugada-detail__premio-label,
.jugada-detail--hipica.jugada-detail--pagado .jugada-detail__premio-total {
  color: var(--srh-muted);
  text-shadow: none;
}
.jugada-detail--hipica.jugada-detail--pagado .jugada-detail__premio-total small {
  color: rgba(148, 163, 184, 0.55);
}

/* ── Desglose de cálculo del premio hípico ── */
.hip-detail__calculo-row .jugada-detail__premio-label {
  font-size: 0.72rem;
  color: var(--srh-muted);
}

.hip-detail__calculo-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.01em;
}

.hip-detail__calculo-val--accent {
  color: var(--srh-gold);
}

.hip-detail__calculo-row--cap .jugada-detail__premio-label,
.hip-detail__calculo-row--cap .hip-detail__calculo-val {
  color: #FBBF24;
}

.hip-detail__calculo-divider {
  height: 1px;
  background: var(--srh-border);
  margin: 0.35rem 0;
}

/* ── Nav badge (jugadas ganadoras) ─────────────────────────────────────── */

.app-bottom-nav__icon {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #e53935;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Badge en el header (desktop) — dentro de inline-flex */
.app-header__nav-item .nav-badge {
  top: 3px;
  right: 3px;
}

/* ── Toast de jugada ganadora ──────────────────────────────────────────── */

.tlv-ganadora-toast {
  position: fixed;
  top: calc(var(--safe-top) + 80px);
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 340px;
  padding: 14px 14px 14px 16px;
  background: #1a2035;
  border: 1px solid rgba(76, 175, 80, 0.45);
  border-left: 4px solid #4caf50;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.tlv-ganadora-toast--visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.tlv-ganadora-toast__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.tlv-ganadora-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tlv-ganadora-toast__titulo {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e8f5e9;
}

.tlv-ganadora-toast__monto {
  font-size: 1rem;
  font-weight: 700;
  color: #69f0ae;
}

.tlv-ganadora-toast__ticket {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tlv-ganadora-toast__btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tlv-ganadora-toast__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tlv-ganadora-toast__close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ==========================================
   RECUPERAR CONTRASEÑA — ESTADO INVÁLIDO
   ========================================== */

.reset-invalid-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.reset-invalid-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.12);
  color: var(--red-ve);
  flex-shrink: 0;
}

.reset-invalid-state__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.reset-invalid-state__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 320px;
}

/* =========================================================
   Modal Términos y Condiciones (registro)
   ========================================================= */
.terminos-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.terminos-modal--open {
  display: flex;
}

.terminos-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.terminos-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  padding: 2rem;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.terminos-modal__close {
  position: sticky;
  top: 0;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(165, 177, 216, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-left: auto;
  margin-bottom: 0.5rem;
}

.terminos-modal__close:hover {
  background: rgba(165, 177, 216, 0.2);
  color: var(--text-main);
}

.form-terms__modal-link {
  cursor: pointer;
}

/* =========================================================
   PWA Install Page
   ========================================================= */
.pwa-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1.25rem;
}

.pwa-install__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.pwa-install__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.pwa-install__desc {
  color: var(--text-muted);
  max-width: 320px;
  margin: 0;
  font-size: 0.95rem;
}

.btn--install {
  padding: 1rem 2.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(255, 214, 0, 0.35);
  gap: 0.6rem;
}

.btn--install:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 42px rgba(255, 214, 0, 0.5);
}

.pwa-install__success {
  display: none;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.95rem;
}

.pwa-install__fallback {
  display: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 300px;
  margin: 0;
}

/* ── Coming Soon / Registro próximamente ──────────────────────────────────── */
.coming-soon-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, #0f1b2d 0%, #1a2f4a 60%, #0f1b2d 100%);
}

.coming-soon__logo {
  width: 90px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 18px rgba(255, 200, 0, 0.25));
}

.coming-soon__badge {
  display: inline-block;
  background: rgba(255, 200, 0, 0.12);
  color: #ffc800;
  border: 1px solid rgba(255, 200, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.coming-soon__title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.coming-soon__title span {
  color: #ffc800;
}

.coming-soon__text {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 2rem;
}

.coming-soon__divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #ffc800, rgba(255, 200, 0, 0.2));
  border-radius: 4px;
  margin: 0 auto 2rem;
}

.coming-soon__social-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.coming-soon__social-links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.coming-soon__social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, border-color 0.2s;
}

.coming-soon__social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.coming-soon__social-btn svg {
  flex-shrink: 0;
}

.coming-soon__footer-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 300px;
  line-height: 1.6;
}

/* ── Info Modal (registro) ────────────────────────────────────────────────── */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: infoFadeIn 0.25s ease;
}

.info-modal-overlay.hidden {
  display: none;
}

@keyframes infoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.info-modal__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-modal__img {
  display: block;
  max-width: 100%;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.info-modal__close {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  right: 12px;
  z-index: 10000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.info-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ════════════════════════════════════════════════════
   Resultados Hípicos
   ════════════════════════════════════════════════════ */

/* ── Cabecera dorada (rh-hero) ── */
.rh-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(255, 199, 0, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.rh-hero__watermark {
  position: absolute;
  right: -12px;
  bottom: -24px;
  color: var(--srh-gold);
  opacity: 0.08;
  pointer-events: none;
}
.rh-hero__watermark svg { width: 120px; height: 120px; }
.rh-hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.rh-hero__brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.rh-hero__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #0b1220;
  background: linear-gradient(135deg, #FFD633 0%, #FFC700 60%, #E5AF00 100%);
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.25);
}
.rh-hero__title { font-size: 1rem; font-weight: 800; color: #fff; margin: 0; }
.rh-hero__sub { font-size: 0.7rem; color: #FCD34D; opacity: 0.85; margin: 2px 0 0; }
.rh-refresh {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--srh-gold);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  transition: background 0.15s ease;
}
.rh-refresh:hover { background: rgba(51, 65, 85, 0.8); }
.rh-refresh:active { transform: scale(0.92); }
.rh-hero__toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}
.rh-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.rh-field > svg { position: absolute; left: 10px; color: var(--srh-muted); pointer-events: none; }
.rh-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  border-radius: 11px;
  padding: 8px 10px 8px 30px;
  font-size: 0.75rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}
.rh-input:focus { border-color: var(--srh-gold); }
.rh-input::placeholder { color: #64748b; }
.rh-input[type="date"] { font-family: 'Courier New', monospace; }
.rh-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.rh-summary {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.rh-summary__left { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; color: #6EE7B7; }
.rh-summary__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.rh-summary__date { font-size: 0.66rem; color: var(--srh-muted); font-family: 'Courier New', monospace; }
.rh-list { display: flex; flex-direction: column; gap: 0.6rem; }

/* ── Grupo por hipódromo ── */

.hip-res-hipo {
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: 16px;
  overflow: hidden;
}

.hip-res-hipo__header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: none;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s;
}

.hip-res-hipo__header:hover { background: rgba(30, 41, 59, 0.7); }

.hip-res-hipo__abr {
  width: 42px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: .04em;
  color: var(--srh-gold);
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 9px;
}

.hip-res-hipo__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hip-res-hipo__nombre {
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hip-res-hipo__oficial {
  font-size: .6rem;
  color: var(--srh-muted);
}

.hip-res-hipo__count {
  font-size: .6rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #FBBF24;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 3px 7px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Wrapper animado (acordeón) ── */

.hip-res-carreras-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1);
}

.hip-res-carreras-wrap--open {
  grid-template-rows: 1fr;
}

/* ── Lista de carreras ── */

.hip-res-carreras {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .7rem;
  border-top: 1px solid rgba(35, 49, 72, 0.8);
  background: rgba(8, 12, 20, 0.4);
}

/* ── Chevron del toggle ── */

.hip-res-chevron {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted, #a5b1d8);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.hip-res-hipo__header--open .hip-res-chevron {
  transform: rotate(180deg);
}

/* ── Tarjeta de carrera ── */

.hip-res-carrera {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  overflow: hidden;
}

.hip-res-carrera__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--srh-border);
}

.hip-res-carrera__num {
  font-size: .78rem;
  font-weight: 900;
  color: var(--srh-gold);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hip-res-carrera__hora {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .66rem;
  color: var(--srh-muted);
  font-family: 'Courier New', monospace;
}

/* ── Podio (lista de posiciones) ── */

.hip-res-podio {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Fila de posición ── */

.hip-res-pos {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--srh-border);
}

.hip-res-pos--1 {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(30, 41, 59, 0.5) 60%);
  border-color: rgba(245, 158, 11, 0.4);
}

.hip-res-pos--2 {
  background: rgba(51, 65, 85, 0.4);
  border-color: rgba(148, 163, 184, 0.25);
}

.hip-res-pos--3 {
  background: rgba(30, 41, 59, 0.35);
  border-color: rgba(180, 110, 50, 0.3);
}

.hip-res-pos__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hip-res-pos__medal {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.hip-res-pos__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hip-res-pos__horse {
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hip-res-pos--1 .hip-res-pos__horse { color: #FCD34D; }

.hip-res-pos__jinete {
  font-size: .64rem;
  color: var(--srh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Dividendos ── */

.hip-res-divs {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-shrink: 0;
  align-items: stretch;
}

.hip-res-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 8px;
  padding: 3px 7px;
  min-width: 38px;
}

.hip-res-div--win {
  background: rgba(245, 158, 11, .2);
  border: 1px solid rgba(245, 158, 11, .3);
}

.hip-res-div--place,
.hip-res-div--show {
  background: #1e293b;
  border: 1px solid #334155;
}

.hip-res-div__label {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--srh-muted);
  line-height: 1;
}

.hip-res-div--win .hip-res-div__label { color: #FCD34D; }

.hip-res-div__val {
  font-size: .74rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #fff;
  line-height: 1.1;
}

.hip-res-div-none {
  font-size: .72rem;
  color: var(--text-muted, #a5b1d8);
}

/* ── Estado vacío ── */

.hip-res-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1rem;
  color: var(--text-muted, #a5b1d8);
  font-size: .9rem;
  text-align: center;
}

.hip-res-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted, #a5b1d8);
  font-size: .88rem;
}

/* ── Exóticas de resultados ── */

.hip-res-exoticos {
  margin: 0 8px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.hip-res-exoticos__title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C4B5FD;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--srh-border);
}

.hip-res-exoticos__title svg { color: #FBBF24; flex-shrink: 0; }

.hip-res-exoticos__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hip-res-exot-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 6px;
}

.hip-res-exot-tipo {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #D8B4FE;
  white-space: nowrap;
}

.hip-res-exot-combo {
  font-size: .68rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.hip-res-exot-base {
  font-size: .58rem;
  color: var(--srh-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.hip-res-exot-val {
  font-size: .74rem;
  font-weight: 800;
  color: var(--srh-gold);
  white-space: nowrap;
  text-align: right;
  font-family: 'Courier New', monospace;
  min-width: 52px;
}

/* ── Ajuste responsive ── */
@media (max-width: 400px) {
  .hip-res-pos { flex-wrap: wrap; }
  .hip-res-divs { width: 100%; justify-content: flex-end; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   HÍPICA EXÓTICA — Exacta / Trifecta / Superfecta / Pentafecta
   Prefijo: hex-
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Action bar: columna vertical (override del flex row de anim-action-bar) ── */
.hex-action-bar {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  padding: 0.55rem 1.08rem var(--nav-fab-overhang);
}

/* ── Toggle de tipo exótica (4 opciones) ── */
.hex-tipo-toggle {
  width: 100%;
  display: flex;
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 4px;
  margin-bottom: 6px;
}
.hex-tipo-indicator {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(25% - 3px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border-radius: 14px;
  z-index: 1;
  transition: transform .4s cubic-bezier(.19,1,.22,1);
  box-shadow: 0 4px 14px rgba(255,199,0,.22);
}
.hex-tipo-opt {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  font-size: .7rem;
  font-weight: 800;
  color: var(--text-muted, #a5b1d8);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color .25s;
  text-transform: uppercase;
  letter-spacing: .8px;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.hex-tipo-opt.active { color: #02040a; }
.hex-tipo-opt:disabled {
  color: rgba(220,53,53,.45);
  cursor: not-allowed;
}

/* ── Toggle modo DIRECTA / BOX (pill compacto) ── */
.hex-modo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.hex-modo-seg {
  position: relative;
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
.hex-modo-seg__pill {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border-radius: 17px;
  z-index: 1;
  transition: transform .35s cubic-bezier(.19,1,.22,1), width .35s cubic-bezier(.19,1,.22,1);
  box-shadow: 0 2px 8px rgba(255,199,0,.25);
  pointer-events: none;
}
.hex-modo-seg__opt {
  position: relative;
  z-index: 2;
  padding: 5px 16px;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--text-muted, #a5b1d8);
  cursor: pointer;
  transition: color .25s;
  font-family: inherit;
  white-space: nowrap;
  border-radius: 17px;
  line-height: 1;
}
.hex-modo-seg__opt.active { color: #02040a; }
.hex-modo-desc {
  font-size: .62rem;
  color: var(--text-muted, #a5b1d8);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  opacity: .7;
}

/* ── Panel de posiciones (DIRECTA) ── */
.hex-pos-panel {
  min-height: 46px;
  margin-bottom: 4px;
}
.hex-pos-slots {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hex-pos-slots::-webkit-scrollbar { display: none; }

.hex-pos-slot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  max-width: 130px;
  padding: 6px 8px;
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.hex-pos-slot--active {
  border-color: #FFC700;
  border-style: solid;
  background: rgba(255,199,0,.07);
}
.hex-pos-slot--filled {
  border-style: solid;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
}
.hex-pos-slot--active.hex-pos-slot--filled {
  border-color: #FFC700;
  background: rgba(255,199,0,.1);
}
.hex-pos-num {
  font-size: .68rem;
  font-weight: 900;
  color: #FFC700;
  flex-shrink: 0;
  line-height: 1;
}
.hex-pos-horse {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.hex-pos-empty {
  font-size: .64rem;
  color: var(--text-muted, #a5b1d8);
  opacity: .55;
  flex: 1;
}

/* ── Panel BOX ── */
.hex-box-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
}
.hex-box-count {
  font-size: .72rem;
  color: var(--text-muted, #a5b1d8);
  font-weight: 600;
}
.hex-box-combos {
  font-size: .72rem;
  font-weight: 800;
  color: #FFC700;
  margin-left: auto;
}

/* ── Checkbox en tabla (BOX mode) ── */
.hex-th-chk, .hex-td-chk {
  width: 28px;
  text-align: center;
  padding: 0 2px !important;
}
.hex-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 900;
  color: transparent;
  background: rgba(255,255,255,.04);
  transition: all .18s;
  flex-shrink: 0;
}
.hex-checkbox--on {
  background: #FFC700;
  border-color: #FFC700;
  color: #02040a;
}

/* ── Filas seleccionadas en tabla ── */
.hex-row-box-sel td { background: rgba(255,199,0,.06); }
.hex-row-box-sel .hip-nombre-ej { color: var(--srh-gold); }
.hex-row-dir-sel td { background: rgba(255,199,0,.07); }
.hex-row-dir-sel .hip-nombre-ej { color: var(--srh-gold); }
.hex-row--limited { opacity: .35; pointer-events: none; }
.hpk-row--limited { opacity: .35; pointer-events: none; }

/* ── Badge de posición sobre el mantil ── */
.hex-pos-badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 900;
  background: #FFC700;
  color: #02040a;
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 3px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Costo total (BOX) ── */
.hex-total-costo {
  font-size: .65rem;
  font-weight: 700;
  color: #ff9100;
  line-height: 1;
  min-height: 12px;
}

/* ── Badge modo en ticket ── */
.hex-badge-modo {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  background: rgba(255,199,0,.12);
  color: #FFC700;
  border: 1px solid rgba(255,199,0,.3);
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Banner sin exóticas ── */
.hex-sin-exoticas-msg {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: rgba(255,152,0,.08);
  border: 1px solid rgba(255,152,0,.25);
  border-radius: 10px;
  font-size: .78rem;
  color: #ff9100;
  font-weight: 600;
  text-align: center;
}

/* ── Acceso rápido a resultados hípicos (desde resultados/app.php) ── */

.res-hipicos-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 1rem;
  background: rgba(255, 199, 0, .05);
  border: 1px solid rgba(255, 199, 0, .2);
  border-radius: 12px;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .15s;
}

.res-hipicos-shortcut:hover,
.res-hipicos-shortcut:active {
  background: rgba(255, 199, 0, .1);
  border-color: rgba(255, 199, 0, .4);
  transform: translateY(-1px);
}

.res-hipicos-shortcut__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 199, 0, .12);
  border: 1px solid rgba(255, 199, 0, .25);
  display: grid;
  place-items: center;
  color: var(--srh-gold);
  flex-shrink: 0;
}

.res-hipicos-shortcut__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.res-hipicos-shortcut__title {
  font-size: .84rem;
  font-weight: 700;
  color: var(--srh-gold);
}

.res-hipicos-shortcut__sub {
  font-size: .72rem;
  color: var(--text-muted, #a5b1d8);
}

/* ── Anulación hípica: botón en modal de detalle ── */
.jugada-detail__anular-section {
  padding: 0.5rem 1rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.jugada-detail__btn-anular {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e53935;
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.28);
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.jugada-detail__btn-anular:hover {
  background: rgba(229, 57, 53, 0.16);
  border-color: rgba(229, 57, 53, 0.5);
}

.jugada-detail__btn-anular:active {
  transform: scale(0.96);
}

/* ── Confirmación de anulación: icono de advertencia ── */
.anular-confirm__icon-wrap {
  background: rgba(255, 152, 0, 0.12);
  border: 2px solid rgba(255, 152, 0, 0.35);
  color: #ff9800;
}

.anular-confirm__actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.25rem;
}

.anular-confirm__actions .btn {
  flex: 1;
  padding: 0.65rem 1rem;
}

/* ── Resultado de anulación: devolución ── */
.anular-notif__devolucion {
  background: rgba(33, 150, 243, 0.08);
  border-color: rgba(33, 150, 243, 0.25);
}

.anular-notif__devolucion .cobro-notif__monto-val {
  color: #42a5f5;
}

.anular-notif__devolucion .cobro-notif__monto-cur {
  color: #42a5f5;
}

/* INICIO — Botón Ver Transmisión */
.inicio-stream-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.35);
  color: #ef5350;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.inicio-stream-btn:hover {
  background: rgba(229, 57, 53, 0.14);
  border-color: rgba(229, 57, 53, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.18);
}

.inicio-stream-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef5350;
  flex-shrink: 0;
  animation: stream-pulse 1.4s ease-in-out infinite;
}

@keyframes stream-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}


/* ==========================================
   TRIPLES — MÓDULO DE JUGADA (prefijo: tripl-)
   ========================================== */

.tripl-toggle-group {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  margin: 1rem auto;
  max-width: 340px;
  position: relative;
}

.tripl-toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--yellow-ve), #ff9100);
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 15px rgba(255,214,0,0.3);
  z-index: 1;
}

.tripl-toggle-option {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 999px;
  user-select: none;
}

.tripl-toggle-option.active { color: #02040a; }

.tripl-play-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  background: rgba(11,16,32,0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.2rem 0.8rem 1rem;
  margin: 1rem 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.tripl-slots-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.tripl-zone-label {
  margin: 0 0 8px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tripl-dial-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  position: relative;
}

.tripl-slot-focus-bar {
  position: absolute;
  left: -5px;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  border-top: 2px solid rgba(255,214,0,0.35);
  border-bottom: 2px solid rgba(255,214,0,0.35);
  background: linear-gradient(90deg, rgba(255,214,0,0.05) 0%, transparent 50%, rgba(255,214,0,0.05) 100%);
  pointer-events: none;
  z-index: 6;
}

.tripl-dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.tripl-dial-viewport {
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, #050811 0%, #0b1123 50%, #050811 100%);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  position: relative;
  perspective: 800px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.85);
}

.tripl-dial-viewport:active { cursor: grabbing; }

.tripl-dial-viewport::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(to bottom, rgba(2,4,10,0.95), transparent);
  z-index: 5;
  pointer-events: none;
}

.tripl-dial-viewport::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(to top, rgba(2,4,10,0.95), transparent);
  z-index: 5;
  pointer-events: none;
}

.tripl-dial-container {
  width: 100%;
  height: 38px;
  position: absolute;
  top: calc(50% - 19px);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.tripl-dial-item {
  position: absolute;
  width: 100%;
  height: 38px;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.tripl-dial-item-content {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
  transition: color 0.3s, text-shadow 0.3s;
  pointer-events: none;
  user-select: none;
}

.tripl-dial-item.active .tripl-dial-item-content {
  color: var(--yellow-ve);
  text-shadow: 0 0 16px rgba(255,214,0,0.55);
}

.tripl-dial-btn {
  background: rgba(11,16,32,0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.tripl-dial-btn:hover {
  border-color: var(--yellow-ve);
  color: var(--yellow-ve);
  background: rgba(255,214,0,0.1);
}

.tripl-dial-shield {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #0b1020 0%, #02040a 100%);
  border: 2px solid rgba(165,177,216,0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-muted);
  text-shadow: none;
  z-index: 15;
  transform: translateY(-110%);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.tripl-dial-shield.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tripl-zodiac-side {
  /* flex-basis controla el espacio en el layout; width como respaldo */
  flex: 0 0 128px;
  width: 128px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid var(--border-subtle);
  padding-left: 10px;
  transition:
    flex-basis 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    width      0.45s cubic-bezier(0.19, 1, 0.22, 1),
    opacity    0.45s ease,
    padding    0.45s cubic-bezier(0.19, 1, 0.22, 1),
    border     0.45s;
  opacity: 1;
}

.tripl-zodiac-side--hidden {
  flex-basis: 0;
  width: 0;
  padding-left: 0;
  border-left: 0 solid transparent;
  opacity: 0;
  pointer-events: none;
}

.tripl-zodiac-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tripl-zodiac-viewport {
  width: 108px;
  height: 120px;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: none;
  overflow: hidden;
  cursor: grab;
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  background: linear-gradient(180deg, #050811 0%, #0b1123 50%, #050811 100%);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.85);
}

.tripl-zodiac-viewport:active { cursor: grabbing; }

.tripl-zodiac-viewport::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(to bottom, rgba(2,4,10,0.95), transparent);
  z-index: 5;
  pointer-events: none;
}

.tripl-zodiac-viewport::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(to top, rgba(2,4,10,0.95), transparent);
  z-index: 5;
  pointer-events: none;
}

.tripl-zodiac-focus-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  border-top: 1px solid rgba(255,214,0,0.3);
  border-bottom: 1px solid rgba(255,214,0,0.3);
  background: rgba(255,214,0,0.02);
  z-index: 4;
  pointer-events: none;
}

.tripl-zodiac-container {
  width: 98px;
  height: 34px;
  position: absolute;
  top: calc(50% - 17px);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.tripl-zodiac-item {
  position: absolute;
  width: 98px;
  height: 34px;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.tripl-zodiac-item-content {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
  user-select: none;
}

.tripl-zodiac-item.active .tripl-zodiac-item-content {
  color: var(--yellow-ve);
  text-shadow: 0 0 12px rgba(255,214,0,0.45);
}

.tripl-zodiac-btn {
  background: rgba(11,16,32,0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1;
}

.tripl-zodiac-btn:hover {
  border-color: var(--yellow-ve);
  color: var(--yellow-ve);
  background: rgba(255,214,0,0.1);
}

.tripl-bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.1rem 0 0.4rem;
}

.tripl-bet-row .anim-monto-input-wrap { flex: 0 0 72px; }

.tripl-bet-row--serie {
  justify-content: center;
}
.tripl-bet-row--serie .anim-monto-input-wrap {
  flex: 0 0 auto;
  min-width: 110px;
  pointer-events: none;
}
.tripl-bet-row--serie .anim-monto-input {
  text-align: center;
  cursor: default;
  color: var(--yellow-ve);
  opacity: 0.9;
}

.tripl-btn-add {
  background: transparent;
  border: 2px solid var(--yellow-ve);
  color: var(--yellow-ve);
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.tripl-btn-add:hover:not(:disabled) {
  background: var(--yellow-ve);
  color: #02040a;
  box-shadow: 0 0 18px rgba(255,214,0,0.3);
}

.tripl-btn-add:active:not(:disabled) { transform: scale(0.95); }

.tripl-btn-add:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.tripl-btn-perm {
  background: transparent;
  border: 2px solid #4dabf7;
  color: #4dabf7;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.tripl-btn-perm:hover:not(:disabled) {
  background: #4dabf7;
  color: #02040a;
  box-shadow: 0 0 18px rgba(77,171,247,0.3);
}
.tripl-btn-perm:active:not(:disabled) { transform: scale(0.95); }
.tripl-btn-perm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.tripl-btn-clear {
  background: transparent;
  border: 1.5px solid rgba(239,68,68,0.55);
  color: rgba(239,68,68,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tripl-btn-clear:hover:not(:disabled) {
  background: rgba(239,68,68,0.15);
  border-color: rgb(239,68,68);
  color: rgb(239,68,68);
}
.tripl-btn-clear:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.tripl-action-bar .anim-btn-play {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
}

/* ── Botón Serie ──────────────────────────────────────────── */
.tripl-btn-serie {
  background: transparent;
  border: 2px solid #ff9100;
  color: #ff9100;
  padding: 9px 18px;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tripl-btn-serie:hover:not(:disabled) {
  background: #ff9100;
  color: #02040a;
  box-shadow: 0 0 18px rgba(255,145,0,0.3);
}
.tripl-btn-serie:active:not(:disabled) { transform: scale(0.95); }
.tripl-btn-serie:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.tripl-btn-serie--active {
  background: #ff9100;
  color: #02040a;
}

/* ── Modo serie: hint y estados de columnas ───────────────── */
@keyframes tripl-serie-col-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,145,0,0.4); }
  50%       { box-shadow: 0 0 24px rgba(255,145,0,0.8); }
}
@keyframes tripl-serie-hint-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.tripl-serie-hint {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #ff9100;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 0 4px;
  animation: tripl-serie-hint-blink 1s ease-in-out infinite;
}

.tripl-dial-wrapper--serie-pick {
  cursor: pointer;
}
.tripl-dial-wrapper--serie-pick .tripl-dial-viewport {
  border: 2px solid #ff9100;
  border-radius: 10px;
  animation: tripl-serie-col-pulse 1.2s ease-in-out infinite;
}

.tripl-dial-wrapper--serie-dim {
  opacity: 0.18;
  pointer-events: none;
}

.tripl-zodiac-vertical--serie-pick {
  cursor: pointer;
}
.tripl-zodiac-vertical--serie-pick .tripl-zodiac-viewport {
  border: 2px solid #ff9100;
  border-radius: 10px;
  animation: tripl-serie-col-pulse 1.2s ease-in-out infinite;
}

.tripl-lot-type {
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tripl-ticket-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tripl-ticket-empty {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tripl-ticket-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: tripl-slip-in 0.28s ease-out forwards;
}

@keyframes tripl-slip-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tripl-ticket-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tripl-ticket-num {
  background: var(--blue-ve);
  color: var(--yellow-ve);
  font-weight: 900;
  font-size: 1rem;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255,214,0,0.3);
  letter-spacing: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tripl-ticket-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.tripl-ticket-lottery {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tripl-ticket-meta {
  font-size: 0.58rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tripl-ticket-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tripl-ticket-amount {
  font-weight: 900;
  color: var(--yellow-ve);
  font-size: 0.88rem;
  white-space: nowrap;
}

.tripl-ticket-delete {
  color: var(--red-ve);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15rem;
  background: none;
  border: none;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.2s;
}

.tripl-ticket-delete:hover { opacity: 0.7; }

/* ── Modal confirmación triples ───────────────────────────── */
#tripl-modal { cursor: default; }

.tripl-modal-scroll {
  max-height: 55vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tripl-modal-scroll .hip-ticket-wrap {
  margin: 1.1rem 1.4rem;
}

.tripl-modal-grupo .hip-ticket-key {
  font-size: .67rem;
  font-weight: 900;
  color: var(--yellow-ve, #ffd600);
  letter-spacing: .08em;
}
.tripl-modal-grupo .hip-ticket-val {
  font-size: .67rem;
  color: var(--text-muted, #a5b1d8);
}

.tripl-modal-jugada-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tripl-modal-num {
  font-size: .95rem;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}
.tripl-modal-tipo {
  font-size: .58rem;
  font-weight: 700;
  color: var(--text-muted, #a5b1d8);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tripl-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,4,10,.35);
  color: #02040a;
  font-size: .6rem;
  font-weight: 900;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  padding: 0 .3rem;
  vertical-align: middle;
  margin-left: .3rem;
}

.tripl-action-bar { padding: 10px 16px 14px; }

/* ── Cancelar serie ──────────────────────────────────────── */
.tripl-serie-cancel-row {
  display: flex;
  justify-content: center;
  margin: 1.6rem 0 0.5rem;
}

.tripl-btn-serie-cancel {
  background: #ff9100;
  border: none;
  color: #02040a;
  padding: 15px 0;
  width: 100%;
  max-width: 300px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 6px 24px rgba(255,145,0,0.35);
}
.tripl-btn-serie-cancel:hover {
  box-shadow: 0 0 28px rgba(255,145,0,0.6);
}
.tripl-btn-serie-cancel:active { transform: scale(0.97); }

/* ── Overlay de modo serie ────────────────────────────────── */
.tripl-serie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,4,10,0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 601;
  cursor: pointer;
}

.tripl-step-juego--serie-active {
  position: relative;
  z-index: 602;
}

@media (max-width: 440px) {
  .tripl-play-zone         { padding: 1rem 0.5rem 0.8rem; gap: 6px; }
  .tripl-dial-item-content { font-size: 1.7rem; }
  .tripl-dial-viewport     { height: 108px; }
  .tripl-zodiac-side       { width: 104px; }
  .tripl-zodiac-viewport   { width: 88px; }
  .tripl-zodiac-container  { width: 80px; }
  .tripl-zodiac-item       { width: 80px; }
  .tripl-btn-add           { font-size: 0.7rem; padding: 9px 10px; }
  .tripl-btn-perm          { font-size: 0.7rem; padding: 9px 10px; }
  .tripl-btn-serie         { font-size: 0.7rem; padding: 9px 12px; }
  .tripl-toggle-option     { font-size: 0.68rem; }
}

/* ══════════════════════════════════════════
   RESULTADOS TRIPLES
   ══════════════════════════════════════════ */

.triples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.triple-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.triple-card__header {
  background: linear-gradient(135deg, var(--blue-ve), #005fa3);
  padding: 0.8rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.triple-card__header--error {
  background: linear-gradient(135deg, #c0392b, #7b1c1c);
}

.triple-card__header h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.triple-card__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.triple-card__body {
  padding: 0.9rem 1.1rem;
}

.triple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.triple-table thead tr {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.triple-table th,
.triple-table td {
  padding: 0.5rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.triple-table th:first-child,
.triple-table td:first-child { text-align: left; }

.triple-table tbody tr:last-child td { border-bottom: none; }

.triple-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.triple-hora {
  background: rgba(0, 200, 83, 0.14);
  color: #7cf17b;
  border: 1px solid rgba(124, 241, 123, 0.35);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
  display: inline-block;
}

.triple-num-a { color: #64b5f6; font-weight: 700; font-size: 0.97rem; }
.triple-num-b { color: #81c784; font-weight: 700; font-size: 0.97rem; }
.triple-num-c { color: #ffb74d; font-weight: 700; font-size: 0.97rem; }
.triple-dash  { color: rgba(165, 177, 216, 0.3); }

.triple-signo {
  background: rgba(123, 31, 162, 0.22);
  color: #ce93d8;
  border: 1px solid rgba(123, 31, 162, 0.38);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  display: inline-block;
}

.triple-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 0.65rem 0;
  font-style: italic;
}

.triple-error-msg {
  color: #ef9a9a;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.28);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
}

.triple-fecha {
  background: linear-gradient(135deg, #001a2e, var(--blue-ve), #005fa3);
  color: var(--text-main);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 75, 135, 0.4);
  box-shadow: var(--shadow-subtle);
}

/* Filtro single-column (panel triples en app) */
.app-filters--single {
  grid-template-columns: 1fr;
}

/* Ajustes de triples dentro de la PWA */
.app-results-section .triples-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.app-results-section .triple-card__header {
  padding: 0.7rem 0.9rem;
}

.app-results-section .triple-card__header h2 {
  font-size: 0.85rem;
}

.app-results-section .triple-card__body {
  padding: 0.65rem 0.9rem;
}

.app-results-section .triple-table {
  font-size: 0.8rem;
}

.app-results-section .triple-table th,
.app-results-section .triple-table td {
  padding: 0.42rem 0.5rem;
}

.app-results-section .triple-hora {
  font-size: 0.67rem;
  padding: 0.15rem 0.5rem;
}

.app-results-section .triple-num-a,
.app-results-section .triple-num-b,
.app-results-section .triple-num-c {
  font-size: 0.92rem;
}

.app-results-section .triple-fecha {
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.1rem;
}

/* En tablets y pantallas más amplias: 2 columnas */
@media (min-width: 480px) {
  .app-results-section .triples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .app-results-section .triples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

/* stream.css → public/css/stream.css */
/* ══════════════════════════════════════════════════════════════════════════════
   HÍPICA PICK — Daily Double / Pick 3 / Pick 4 / Pick 5 / Pick 6
   Prefijo: hpk-
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Action bar: columna vertical (igual que hex-) ── */
.hpk-action-bar {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  padding: 0.55rem 1.08rem var(--nav-fab-overhang);
}

/* ── Pick type header icon ── */
.jugar-header__icon--pick {
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.32);
  color: #00bcd4;
}

/* ── Pick type button row ── */
.hpk-pick-type-row {
  display: flex;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.hpk-pick-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted, #a5b1d8);
  transition: all 0.2s;
  gap: 2px;
}

.hpk-pick-btn--active {
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border-color: #FFC700;
  color: #02040a;
  box-shadow: 0 4px 14px rgba(255, 199, 0, 0.28);
}

.hpk-pick-btn--disabled,
.hpk-pick-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.hpk-pick-btn__label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

.hpk-pick-btn__sub {
  font-size: 0.56rem;
  line-height: 1;
  opacity: 0.7;
}

/* ── Start race horizontal chips ── */
.hpk-start-race-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.hpk-start-race-scroll::-webkit-scrollbar { display: none; }

.hpk-start-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted, #a5b1d8);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  gap: 2px;
}

.hpk-start-chip__num {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--text-main, #f7f7ff);
  line-height: 1.2;
}

.hpk-start-chip__hora {
  font-size: 0.58rem;
  color: var(--text-muted, #a5b1d8);
  line-height: 1;
}

.hpk-start-chip--active {
  background: rgba(255, 199, 0, 0.1);
  border-color: #FFC700;
  box-shadow: 0 0 10px rgba(255, 199, 0, 0.18);
}

.hpk-start-chip--active .hpk-start-chip__num {
  color: #FFC700;
}

/* ── Legs timeline tabs ── */
.hpk-legs-timeline {
  display: flex;
  gap: 6px;
  margin-bottom: 0.65rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hpk-legs-timeline::-webkit-scrollbar { display: none; }

.hpk-leg-tab {
  flex: 1;
  min-width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted, #a5b1d8);
  transition: all 0.2s;
  gap: 1px;
}

.hpk-leg-tab__pata {
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
  line-height: 1;
}

.hpk-leg-tab__carr {
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main, #f7f7ff);
}

.hpk-leg-tab__sel {
  font-size: 0.56rem;
  line-height: 1;
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hpk-leg-tab--active {
  background: rgba(0, 75, 135, 0.28);
  border-color: #004b87;
  box-shadow: 0 0 10px rgba(0, 75, 135, 0.25);
}

.hpk-leg-tab--active .hpk-leg-tab__carr {
  color: #4fc3f7;
}

.hpk-leg-tab--done {
  background: rgba(0, 166, 81, 0.1);
  border-color: rgba(0, 166, 81, 0.45);
}

.hpk-leg-tab--done .hpk-leg-tab__carr {
  color: #34d399;
}

/* ── Leg pill below the timeline ── */
.hpk-leg-pill {
  display: inline-block;
  background: rgba(0, 75, 135, 0.16);
  border: 1px solid rgba(0, 75, 135, 0.32);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4fc3f7;
  margin-bottom: 0.55rem;
}

/* ── Horse table pick-specific styles ── */
.hpk-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(165, 177, 216, 0.35);
  background: transparent;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.15s;
  font-weight: 900;
}

.hpk-checkbox--on {
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border-color: #FFC700;
  color: #02040a;
}

.hpk-row-sel td { background: rgba(255, 199, 0, 0.06); }
.hpk-row-sel .hip-nombre-ej { color: var(--srh-gold); }

/* ── Action bar: legs strip ── */
.hpk-legs-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  min-height: 38px;
  align-items: flex-start;
}
.hpk-legs-strip::-webkit-scrollbar { display: none; }

.hpk-leg-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 46px;
  padding: 4px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.hpk-leg-slot__label {
  font-size: 0.5rem;
  color: var(--text-muted, #a5b1d8);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
}

.hpk-leg-slot__mantils {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  min-height: 16px;
  align-items: center;
}

.hpk-leg-slot--done {
  border-color: rgba(0, 166, 81, 0.4);
  background: rgba(0, 166, 81, 0.06);
}

.hpk-leg-slot--empty {
  opacity: 0.5;
}

/* ── Info text under start race heading ── */
.hpk-info-text {
  font-size: 0.74rem;
  color: var(--text-muted, #a5b1d8);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

/* ── hpk tipo toggle (en action bar, 5 opciones) ── */
.hpk-tipo-toggle {
  width: 100%;
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 4px;
  margin-bottom: 4px;
}

.hpk-tipo-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(20% - 3.2px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #FFC700, #ff9100);
  border-radius: 14px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 14px rgba(255, 199, 0, 0.22);
  pointer-events: none;
}

.hpk-tipo-opt {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--text-muted, #a5b1d8);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.hpk-tipo-opt.active { color: #02040a; }

.hpk-tipo-opt:disabled {
  color: rgba(220, 53, 53, 0.4);
  cursor: not-allowed;
}

/* ── Start chip extra states ── */
.hpk-start-chip--leg {
  background: rgba(0, 75, 135, 0.2);
  border-color: rgba(0, 188, 212, 0.45);
}

.hpk-start-chip--leg .hpk-start-chip__num {
  color: #4fc3f7;
}

.hpk-start-chip--muted {
  opacity: 0.28;
  cursor: default;
}

/* ══════════════════════════════════════════════════════════════════
   JUGADAS — Apuestas Exóticas (lista + detalle)
   ══════════════════════════════════════════════════════════════════ */

/* ── Chips de tipo en tarjeta lista ── */
.jugada-card__bet-chip--exotica {
  color: #c084fc;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

.jugada-card__bet-chip--pick {
  color: #22d3ee;
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

.jugada-card__bet-meta-sm {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* ── Acento izquierdo tarjeta exótica ── */
.jugada-card--exotica {
  border-left: 2px solid rgba(124, 58, 237, 0.45);
}

.jugada-card--pick {
  border-left: 2px solid rgba(0, 188, 212, 0.45);
}

/* ── Detalle exótica: combinaciones ── */
.hex-detail-combos {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.75rem;
  padding: 0.35rem 0.6rem;
  background: rgba(165, 177, 216, 0.05);
  border: 1px solid rgba(165, 177, 216, 0.1);
  border-radius: var(--radius-sm);
}

.hex-detail-combos__sep {
  opacity: 0.4;
}

/* ── Detalle exótica: Directa ── */
.hex-detail-sels--direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.hex-detail-pos {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hex-detail-pos__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
}

.hex-detail-pos__horse {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(165, 177, 216, 0.06);
  border: 1px solid rgba(165, 177, 216, 0.12);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}

.hex-detail-pos__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hex-detail-pos__nombre {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hex-detail-pos__jinete {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Detalle exótica: Box ── */
.hex-detail-sels--box {
  margin: 0.5rem 0 0.75rem;
}

.hex-detail-box-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: rgba(124, 58, 237, 0.06);
  border-radius: var(--radius-sm);
}

.hex-detail-box-horses {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hex-detail-box-horse {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  background: rgba(165, 177, 216, 0.05);
  border: 1px solid rgba(165, 177, 216, 0.1);
  border-radius: var(--radius-md);
}

.hex-detail-box-horse__nombre {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Detalle exótica: Pick / Multicarrera ── */
.hex-detail-sels--pick {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.hex-detail-leg {
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hex-detail-leg__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 188, 212, 0.07);
  border-bottom: 1px solid rgba(0, 188, 212, 0.15);
}

.hex-detail-leg__num {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #22d3ee;
}

.hex-detail-leg__carrera {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
}

.hex-detail-leg__hora {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}

.hex-detail-leg__horses {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hex-detail-leg-horse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid rgba(165, 177, 216, 0.06);
}

.hex-detail-leg-horse:first-child {
  border-top: none;
}

.hex-detail-leg-horse__nombre {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Separador de sección hípicas en modo Todos ── */
.jugadas-section-sep {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.6;
  margin: 1.1rem 0 0.35rem;
  padding: 0 0.25rem;
}

.jugadas-section-sep::before,
.jugadas-section-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(165, 177, 216, 0.12);
}

.jugadas-section-sep::before { display: none; }

/* ── Iconos de marca de gaceta en tabla de ejemplares hípica ── */
.hip-gac-marca {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-style: normal;
  vertical-align: middle;
  line-height: 1;
  border-radius: 3px;
  padding: 1px 3px;
  font-weight: 800;
}

.hip-gac-marca--linea {
  color: #fff;
  background: #c9920a;
}

.hip-gac-marca--segunda {
  color: #fff;
  background: #1565c0;
}

.hip-gac-marca--descarte {
  color: #fff;
  background: #b71c1c;
}

/* ==========================================================================
   LOBBY HÍPICO — TEMA "StreamRaceHorse" (rediseño inicio + header + bottom nav)
   Paleta: dark #080C14 · card #162032 · border #233148 · gold #FFC700
   Estas reglas van al final para sobre-escribir el tema base por orden de cascada.
   ========================================================================== */

:root {
  --srh-dark:   #080C14;
  --srh-surface:#0F172A;
  --srh-card:   #162032;
  --srh-border: #233148;
  --srh-gold:   #FFC700;
  --srh-gold-2: #E5B200;
  --srh-red:    #EF4444;
  --srh-text:   #F1F5F9;
  --srh-muted:  #94A3B8;
}

/* Íconos SVG inline (mismo estilo trazo que el resto de la app).
   width/height en 1em → el ícono escala con el font-size del contenedor,
   igual que hacía FontAwesome, pero sin dependencia externa. */
.srh-ic {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.srh-ic--fill { fill: currentColor; stroke: none; }

/* Silueta de caballo corriendo (archivo SVG recoloreado vía mask con currentColor) */
.srh-horse {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url('../img/caballo-corriendo-silueta.svg') center / contain no-repeat;
  mask: url('../img/caballo-corriendo-silueta.svg') center / contain no-repeat;
}
/* Tamaños específicos por contexto */
.app-brand__logo .srh-horse { width: 22px; height: 22px; }
.app-bottom-nav__cta-circle .srh-horse { width: 28px; height: 28px; }

/* ── Fondo general del shell hípico ─────────────────────────────────────── */
.app-body { background-color: var(--srh-dark); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
  /* alto útil 56px + barra de estado iOS (ver :root) */
  height: 56px;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(35, 49, 72, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--srh-surface);
  color: var(--srh-gold);
  font-size: 1rem;
  box-shadow: 0 0 0 1px rgba(255, 199, 0, 0.55), 0 0 12px rgba(255, 199, 0, 0.2);
  position: relative;
}

.app-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-brand__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-brand__tag {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #EF4444, #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-header__name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.app-brand__accent { color: var(--srh-gold); }

/* Chip de saldo */
.app-header__balance {
  gap: 6px;
  padding: 6px 10px;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}
.app-header__balance:hover {
  background: #1b2740;
  border-color: rgba(255, 199, 0, 0.4);
}
.app-header__balance-icon { color: var(--srh-gold); font-size: 0.72rem; }
.app-header__balance-bono-icon { color: #FBBF24; font-size: 0.7rem; }
.app-header__balance-bono-dot { background: rgba(255, 199, 0, 0.3); }
.app-header__balance-sep span:last-child { color: #FBBF24; }

/* Avatar */
.app-avatar {
  background: linear-gradient(135deg, var(--srh-gold), #D97706);
  color: #0b1220;
  box-shadow: 0 0 10px rgba(255, 199, 0, 0.25);
}

/* Nav desktop reteñido */
.app-header__nav-item--active::after { background: var(--srh-gold); }
.app-header__nav-item--cta { color: var(--srh-gold); background: rgba(255, 199, 0, 0.08); }

/* ==========================================================================
   BOTTOM NAV — con botón central elevado
   ========================================================================== */
.app-bottom-nav {
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(35, 49, 72, 0.9);
}

.app-bottom-nav__item {
  color: var(--srh-muted);
  gap: 4px;
}
.app-bottom-nav__item:hover,
.app-bottom-nav__item--active { color: var(--srh-gold); }

.app-bottom-nav__icon { font-size: 1.15rem; position: relative; }

/* Botón central "Jugar" */
.app-bottom-nav__item--cta {
  color: var(--srh-gold);
  justify-content: flex-start;
  padding-top: 6px;
}
.app-bottom-nav__cta-circle {
  width: 48px;
  height: 48px;
  margin-top: -22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #0b1220;
  background: linear-gradient(135deg, #FFD633 0%, #FFC700 60%, #E5AF00 100%);
  border: 3px solid #0b1220;
  box-shadow: 0 0 20px rgba(255, 199, 0, 0.4);
  transition: transform 0.18s ease;
}
.app-bottom-nav__item--cta:active .app-bottom-nav__cta-circle { transform: scale(0.94); }
.app-bottom-nav__item--cta::before { display: none; } /* sin línea superior en el CTA */

/* Badge de jugadas sobre el icono */
.app-bottom-nav__icon .nav-badge {
  position: absolute;
  top: -6px;
  right: -9px;
}

/* ==========================================================================
   INICIO — contenedor
   ========================================================================== */
.inicio-shell { max-width: 460px; padding-inline: 0.75rem; }
.app-body .inicio-section { padding-top: 1rem; }
.inicio-content { display: flex; flex-direction: column; gap: 1rem; }

/* ── HERO card ──────────────────────────────────────────────────────────── */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(22,32,50,0.95) 0%, rgba(30,41,59,0.85) 100%);
  border: 1px solid rgba(255, 199, 0, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-card__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7rem;
  color: var(--srh-gold);
  opacity: 0.08;
  pointer-events: none;
}

.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  position: relative;
  z-index: 1;
}

.hero-card__user { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }

.hero-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 1rem;
  color: var(--srh-gold);
  background: var(--srh-surface);
  box-shadow: 0 0 0 2px var(--srh-gold), 0 0 12px rgba(255,199,0,0.2);
}
.hero-avatar__dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid var(--srh-card);
}

.hero-card__ident { min-width: 0; }
.hero-card__name-row { display: flex; align-items: center; gap: 6px; }
.hero-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}
.hero-card__email {
  font-size: 0.7rem;
  color: var(--srh-muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 9px;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  color: #FCD34D;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  transition: background 0.15s ease;
}
.hero-code:hover { background: rgba(51, 65, 85, 0.8); }
.hero-code span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; font-family: 'Courier New', monospace; }
.hero-code .srh-ic { font-size: 0.7rem; color: var(--srh-muted); }

.hero-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  position: relative;
  z-index: 1;
}
.hero-card__saldo-wrap { min-width: 0; }
.hero-card__saldo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--srh-muted);
}
.hero-card__eye {
  background: none;
  border: none;
  color: var(--srh-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.7rem;
  display: inline-flex;
  transition: color 0.15s ease;
}
.hero-card__eye:hover { color: var(--srh-gold); }

.hero-recarga {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b1220;
  background: linear-gradient(135deg, #FFD633 0%, #FFC700 60%, #E5AF00 100%);
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.2);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.hero-recarga:hover { filter: brightness(1.08); }
.hero-recarga:active { transform: scale(0.97); }

/* Saldo (poblado por inicio.js con .inicio-saldo-item) */
.hero-card .inicio-saldo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 3px 0 0;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.inicio-saldo-list--oculto { filter: blur(9px); opacity: 0.7; }
.hero-card .inicio-saldo-item {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ── Grid de acciones (6) ───────────────────────────────────────────────── */
.acciones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.accion-card {
  display: block;
  padding: 0.85rem;
  border-radius: 18px;
  text-decoration: none;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.1s ease;
}
.accion-card:active { transform: scale(0.97); }
.accion-card:hover { border-color: #475569; }

.accion-card--gold {
  background: linear-gradient(135deg, var(--srh-card), #0f172a 55%, rgba(69,26,3,0.4));
  border-color: rgba(245, 158, 11, 0.3);
}
.accion-card--gold:hover { border-color: var(--srh-gold); }
.accion-card--purple {
  background: linear-gradient(135deg, var(--srh-card), #0f172a 55%, rgba(59,7,100,0.3));
  border-color: rgba(168, 85, 247, 0.3);
}
.accion-card--purple:hover { border-color: #c084fc; }
.accion-card--green {
  background: linear-gradient(135deg, var(--srh-card), #0f172a 55%, rgba(2,44,34,0.35));
  border-color: rgba(16, 185, 129, 0.3);
}
.accion-card--green:hover { border-color: #34d399; }

.accion-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.accion-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #0b1220;
}
.accion-card__icon--gold   { background: linear-gradient(135deg, #F59E0B, #FDE047); box-shadow: 0 0 12px rgba(255,199,0,0.2); }
.accion-card__icon--purple { background: linear-gradient(135deg, #A855F7, #FBBF24); }
.accion-card__icon--green  { background: linear-gradient(135deg, #10B981, #FCD34D); }
.accion-card__icon--muted  { background: #1e293b; border: 1px solid #334155; color: var(--srh-gold); }

.accion-card__tag {
  font-size: 0.54rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.accion-card__tag--gold   { color: #FCD34D; background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.4); }
.accion-card__tag--purple { color: #D8B4FE; background: rgba(168,85,247,0.2); border: 1px solid rgba(168,85,247,0.4); }
.accion-card__tag--green  { color: #6EE7B7; background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4); }
.accion-card__tag--muted  { color: var(--srh-muted); font-weight: 600; }

.accion-card__title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.accion-card__sub {
  font-size: 0.62rem;
  color: var(--srh-muted);
  margin: 2px 0 0;
}

/* ── Banner de transmisión en vivo ──────────────────────────────────────── */
.stream-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(90deg, #450a0a, #0f172a 60%, #0f172a);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}
.stream-banner__left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.stream-banner__play {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #DC2626;
  font-size: 0.75rem;
}
.stream-banner__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.3);
  animation: srh-live-ring 2s ease-in-out infinite;
  z-index: -1;
}
@keyframes srh-live-ring {
  0%   { transform: scale(0.95); opacity: 0.8; }
  50%  { transform: scale(1.2);  opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.stream-banner__text { min-width: 0; }
.stream-banner__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #DC2626;
  padding: 2px 8px;
  border-radius: 999px;
}
.stream-banner__live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.stream-banner__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 0;
}
.stream-banner__sub {
  font-size: 0.66rem;
  color: #cbd5e1;
  margin: 2px 0 0;
}
.stream-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #DC2626, #BE123C);
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.35);
}

/* Mini-carrusel de hipódromos con carreras hoy (dentro del banner) */
.stream-banner__marquee {
  overflow: hidden;
  max-width: 100%;
  margin-top: 5px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.stream-banner__marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: srh-marquee 26s linear infinite;
  will-change: transform;
}
@keyframes srh-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.stream-banner__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  color: #FECACA;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.28);
}
.stream-banner__chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--srh-gold);
  box-shadow: 0 0 5px rgba(255, 199, 0, 0.5);
  flex-shrink: 0;
}
/* Respeta usuarios con movimiento reducido: se detiene el desplazamiento */
@media (prefers-reduced-motion: reduce) {
  .stream-banner__marquee-track { animation: none; }
  .stream-banner__marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ── Secciones "lobby" (últimas jugadas / resultados) ───────────────────── */
.lobby { display: flex; flex-direction: column; gap: 0.6rem; }
.lobby__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lobby__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}
/* Pestañas del lobby de carreras */
.lobby__tabs {
  display: flex;
  gap: 6px;
}
.lobby__tab {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #1e293b;
  color: var(--srh-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.lobby__tab:hover { color: #fff; }
.lobby__tab--active {
  background: var(--srh-gold);
  color: #0b1220;
}
.lobby__tab--active:hover { color: #0b1220; }
.lobby__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--srh-gold);
  text-decoration: none;
}
.lobby__link:hover { text-decoration: underline; }
.lobby__link i { font-size: 0.6rem; }

/* Retema del carrusel de resultados al dorado del lobby */
.inicio-resultados__viewport {
  border-color: rgba(255, 199, 0, 0.4);
  background: var(--srh-card);
}
.inicio-res-card__loteria { color: var(--srh-gold); }
.inicio-res-card__num { color: #fff; }

/* Dividendos WIN/PLACE/SHOW del ganador en la card de resultados */
.inicio-res-card__wps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  border-top: 1px solid rgba(255, 199, 0, 0.1);
  padding-top: 0.35rem;
}
.res-wps {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--srh-gold);
  font-variant-numeric: tabular-nums;
}
.res-wps__k {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--srh-muted);
  letter-spacing: 0.03em;
}
/* La hora ya no lleva su propia línea divisoria (la aporta el bloque WPS) */
.inicio-res-card__hora { border-top: none; padding-top: 0.15rem; }

/* ── Lista de últimos resultados (misma estética que próximas carreras) ──── */
.resultados-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.resultado-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
}
.resultado-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.resultado-card__winner {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resultado-card__meta {
  font-size: 0.62rem;
  color: var(--srh-muted);
}
.resultado-card__wps {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive muy angosto */
@media (max-width: 360px) {
  .hero-card__name { max-width: 96px; }
  .acciones-grid { gap: 0.5rem; }
}

/* ==========================================================================
   POPPINS AUTOALOJADA (subconjunto latin — cubre español U+0000-00FF)
   Reemplaza la dependencia de Google Fonts. Archivos en /public/fonts/.
   ========================================================================== */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   PRÓXIMAS CARRERAS (inicio) — lista con cuenta regresiva
   ========================================================================== */
.proximas-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.proxima-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: var(--srh-card);
  border: 1px solid var(--srh-border);
}
.proxima-card__badge {
  min-width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid #334155;
}
.proxima-card__abrev {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--srh-gold);
  letter-spacing: 0.03em;
}
.proxima-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.proxima-card__name {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proxima-card__hora {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.proxima-card__count {
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.proxima-card__min {
  font-size: 1.05rem;
  font-weight: 900;
  color: #6EE7B7;
  font-variant-numeric: tabular-nums;
}
.proxima-card__min--urgent { color: #FBBF24; }
.proxima-card__min--now {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--srh-red);
}
.proxima-card__min-label {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--srh-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PERFIL — campos scopeados y pasos DNI (paleta StreamRaceHorse)
   ========================================================================== */
.perfil-content .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  display: block;
}
.perfil-content .form-required { color: #fb7185; }
.perfil-content .form-optional {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--srh-muted);
  background: #1e293b;
  border: 1px solid var(--srh-border);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 0.35rem;
  text-transform: uppercase;
}
.perfil-content .form-input,
.perfil-content .recarga-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
}
.perfil-content .form-input:focus,
.perfil-content .recarga-select:focus { border-color: var(--srh-gold); box-shadow: none; }
.perfil-content .form-input::placeholder { color: #64748b; }
.perfil-content .form-input:disabled { opacity: 0.6; }
.perfil-content .form-input--invalid { border-color: #fb7185; }
.perfil-content .form-input--valid { border-color: #34d399; }
.perfil-content .form-hint { font-size: 0.66rem; color: var(--srh-muted); margin-top: 0.3rem; display: block; }
.perfil-content .form-error { font-size: 0.68rem; color: #fb7185; margin-top: 0.3rem; display: block; }
.perfil-content select.form-input option { background: var(--srh-surface); color: #fff; }

/* Grupo con prefijo/sufijo (email, toggle password) */
.perfil-content .form-input-group {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.perfil-content .form-input-group:focus-within { border-color: var(--srh-gold); }
.perfil-content .form-input-group .form-input {
  border: none;
  background: transparent;
  border-radius: 0;
}
.perfil-content .form-input-prefix {
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  color: var(--srh-muted);
}
.perfil-content .form-input-suffix--btn { color: var(--srh-muted); }
.perfil-content .form-input-suffix--btn:hover { color: var(--srh-gold); }

/* Botones de acción del perfil (guardar / registrar) */
.perfil-content .btn--primary {
  background: linear-gradient(135deg, #FFD633 0%, #FFC700 60%, #E5AF00 100%);
  color: #0b1220;
  border: none;
  font-weight: 800;
  border-radius: 12px;
}
.perfil-content .btn--primary:hover { filter: brightness(1.08); }
.perfil-content .btn--ghost {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid var(--srh-border);
  border-radius: 12px;
  font-weight: 700;
}
.perfil-content .btn--ghost:hover { background: #334155; color: #fff; }

/* Pasos del formulario DNI */
.dni-paso__etiqueta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
}
.dni-paso__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: #0b1220;
  background: var(--srh-gold);
  flex-shrink: 0;
}
.dni-paso__sub {
  flex-basis: 100%;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--srh-muted);
  padding-left: calc(20px + 0.45rem);
}
