: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;
}

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

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

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;
}

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);
}

.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);
}

/* ── 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;    /* altura del app-header */
  /* 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;
  height: 56px;
  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: 100%;
  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 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.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 - 56px - 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-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 - 56px);
}

.perfil-container {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tarjeta de identidad */
.perfil-id-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.perfil-id-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-ve) 0%, #ffab00 100%);
  color: #000;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

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

.perfil-id-card__nombre {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perfil-id-card__codigo {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.04em;
}

/* Botón editar */
.perfil-edit-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.25);
  color: var(--yellow-ve);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.perfil-edit-trigger:hover {
  background: rgba(255, 214, 0, 0.16);
  border-color: rgba(255, 214, 0, 0.5);
}

/* Secciones */
.perfil-seccion {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perfil-seccion__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.perfil-seccion__icon {
  display: flex;
  align-items: center;
  color: var(--yellow-ve);
}

.perfil-seccion__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.perfil-dato {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.perfil-dato__valor {
  font-size: 0.95rem;
  color: var(--text-main);
}

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

/* 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: 1rem 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* Toast de feedback */
.perfil-toast {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

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

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

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

  .perfil-dato {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }

  .perfil-dato__label {
    width: 180px;
    flex-shrink: 0;
  }
}

/* ── Perfil: subheader de sección de contraseña ── */
.perfil-seccion__subheader {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0 0.25rem;
  border-top: 1px solid rgba(165, 177, 216, 0.12);
  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.5rem;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  opacity: 0.7;
}

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

.cuentas-cobro-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(0, 75, 135, 0.18);
  border: 1px solid rgba(0, 75, 135, 0.4);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  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: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.perfil-soporte-aviso svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* 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: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.cuenta-cobro-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 214, 0, 0.1);
  color: var(--yellow-ve);
  display: flex;
  align-items: center;
  justify-content: 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.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cuenta-cobro-card__codigo {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cuenta-cobro-card__tipo {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
  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(--yellow-ve);
  background: rgba(255, 214, 0, 0.07);
  border: 1px dashed rgba(255, 214, 0, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-agregar-cuenta:hover {
  background: rgba(255, 214, 0, 0.13);
  border-color: rgba(255, 214, 0, 0.55);
}

/* Formulario inline */
.cuentas-cobro-form-wrap {
  margin-top: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  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.85rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.cuentas-cobro-form-close:hover {
  color: var(--text-main);
}

/* Campo readonly de perfil */
.form-input--readonly {
  background: rgba(165, 177, 216, 0.06);
  color: var(--text-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.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(165, 177, 216, 0.1);
  border-radius: var(--radius-pill);
  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;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  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, 214, 0, 0.5);
  background: rgba(255, 214, 0, 0.04);
}

.dni-dropzone--dragover {
  border-color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.07);
}

.dni-dropzone--has-file {
  border-style: solid;
  border-color: rgba(165, 177, 216, 0.3);
  padding: 1rem 1.25rem;
}

.dni-dropzone__icono {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.7;
}

.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(--yellow-ve);
  font-weight: 600;
}

.dni-dropzone__hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  opacity: 0.65;
}

/* Vista previa del archivo */
.dni-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(165, 177, 216, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 0.65rem;
}

.dni-preview__icono {
  display: flex;
  align-items: center;
  color: var(--yellow-ve);
  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.85rem;
  margin-bottom: 1.75rem;
}

.monedero-header__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 214, 0, 0.12);
  color: var(--yellow-ve);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.monedero-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.monedero-header__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.monedero-refresh {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.monedero-refresh:hover:not(:disabled) {
  color: var(--yellow-ve);
  border-color: rgba(255, 214, 0, 0.35);
}

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

/* Grid de tarjetas */
.monedero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Tarjeta de wallet */
.monedero-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.monedero-card:hover {
  border-color: rgba(255, 214, 0, 0.3);
  transform: translateY(-2px);
}

.monedero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.monedero-card__codigo {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(165, 177, 216, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
}

.monedero-card__balance {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  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.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.monedero-card__footer-moneda {
  color: #fb923c;
  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 combinados dentro de la tarjeta */
.monedero-card__saldos {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.monedero-card__saldo-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.monedero-card__saldo-item--bonos {
  border-left: 1px solid var(--border-subtle);
  padding-left: 1rem;
  margin-left: 1rem;
}

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

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

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

/* 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.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

/* 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;
  flex: 1;
  padding: 1.37rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  letter-spacing: 0.01em;
}

.btn-recarga-card {
  color: var(--yellow-ve);
  background: rgba(255, 214, 0, 0.07);
  border: 1px solid rgba(255, 214, 0, 0.28);
}

.btn-recarga-card:hover {
  background: rgba(255, 214, 0, 0.16);
  border-color: rgba(255, 214, 0, 0.55);
}

.btn-retiro-card {
  color: var(--red-ve);
  background: rgba(229, 57, 53, 0.07);
  border: 1px solid rgba(229, 57, 53, 0.28);
}

.btn-retiro-card:hover {
  background: rgba(229, 57, 53, 0.16);
  border-color: rgba(229, 57, 53, 0.55);
}

/* ══════════════════════════════════════════════
   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(--bg-alt);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border-subtle);
  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: 36px;
  height: 4px;
  background: rgba(165, 177, 216, 0.22);
  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(--border-subtle);
  flex-shrink: 0;
}

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

.recarga-sheet__icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-ve);
  flex-shrink: 0;
}

.recarga-sheet__icon--retiro {
  background: rgba(229, 57, 53, 0.1);
  border-color: rgba(229, 57, 53, 0.25);
  color: var(--red-ve);
}

.recarga-wallet-info__icon--retiro {
  background: rgba(229, 57, 53, 0.1);
  color: var(--red-ve);
}

.recarga-instruccion--retiro {
  background: rgba(229, 57, 53, 0.08);
  border-color: rgba(229, 57, 53, 0.3);
}
.recarga-instruccion--info {
  background: rgba(148, 163, 184, 0.07);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-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: 700;
  margin: 0;
}

.recarga-sheet__close {
  width: 32px;
  height: 32px;
  background: rgba(165, 177, 216, 0.07);
  border: 1px solid rgba(165, 177, 216, 0.15);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: 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(229, 57, 53, 0.12);
  color: var(--red-ve);
  border-color: rgba(229, 57, 53, 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(229, 57, 53, 0.06);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: var(--radius-lg);
}

.retiro-sin-cuenta__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.1);
  color: var(--red-ve);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.retiro-sin-cuenta__titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

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

/* Instrucción de pago */
.recarga-instruccion {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(0, 75, 135, 0.18);
  border: 1px solid rgba(0, 75, 135, 0.4);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.recarga-instruccion svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #5599cc;
}

/* Wallet info */
.recarga-wallet-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 214, 0, 0.05);
  border: 1px solid rgba(255, 214, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
}

.recarga-wallet-info__icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 214, 0, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-ve);
  flex-shrink: 0;
}

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

.recarga-wallet-info__label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.recarga-wallet-info__simbolo {
  color: var(--yellow-ve);
}

.recarga-wallet-info__balance {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* 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(11, 16, 32, 0.85);
  border: 1px solid rgba(255, 214, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.banco-info-card__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow-ve);
  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.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.banco-info-card__val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-all;
}

/* 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;
}

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

  .recarga-sheet {
    border-radius: var(--radius-lg);
    border-bottom: 1px solid var(--border-subtle);
    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;
  }
}

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

.reportes-section {
  margin-top: 1.75rem;
}

.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;
}

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

.historial-section {
  margin-top: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  overflow: hidden;
}

.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);
}

/* Cuerpo colapsable */

.historial-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.historial-body--open {
  max-height: 4000px;
  transition: max-height 0.45s ease;
}

.historial-wallet-selector {
  padding: 0 1rem 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.85rem;
  margin-bottom: 2rem;
}

.jugar-header__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--yellow-ve), #ffb300);
  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);
}

/* Grid de tarjetas */
.jugar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Tarjeta base */
.jugar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(165, 177, 216, 0.25);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.jugar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 177, 216, 0.5);
  box-shadow: var(--shadow-soft);
}

.jugar-card:hover .jugar-card__glow {
  opacity: 1;
}

/* Glow decorativo */
.jugar-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

/* Icono */
.jugar-card__icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  transition: transform var(--transition-fast);
}

.jugar-card:hover .jugar-card__icon {
  transform: scale(1.08);
}

/* Texto */
.jugar-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jugar-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.jugar-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Flecha */
.jugar-card__arrow {
  position: relative;
  z-index: 1;
  opacity: 0.4;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.jugar-card:hover .jugar-card__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── Animalitos ── */
.jugar-card--animalitos {
  background: linear-gradient(150deg, #0e1020 0%, #0a0e25 60%, #050816 100%);
}

.jugar-card--animalitos .jugar-card__glow {
  background: radial-gradient(circle at 50% 30%, rgba(255, 214, 0, 0.15), transparent 65%);
}

.jugar-card--animalitos .jugar-card__icon {
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.3);
  color: var(--yellow-ve);
}

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

.jugar-card--animalitos .jugar-card__arrow {
  color: var(--yellow-ve);
}

.jugar-card--animalitos:hover {
  border-color: rgba(255, 214, 0, 0.4);
  box-shadow: 0 18px 45px rgba(255, 214, 0, 0.15);
}

/* ── Tripletas ── */
.jugar-card--tripletas {
  background: linear-gradient(150deg, #0e1020 0%, #0a0e25 60%, #050816 100%);
}

.jugar-card--tripletas .jugar-card__glow {
  background: radial-gradient(circle at 50% 30%, rgba(255, 214, 0, 0.15), transparent 65%);
}

.jugar-card--tripletas .jugar-card__icon {
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.3);
  color: var(--yellow-ve);
}

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

.jugar-card--tripletas .jugar-card__arrow {
  color: var(--yellow-ve);
}

.jugar-card--tripletas:hover {
  border-color: rgba(255, 214, 0, 0.4);
  box-shadow: 0 18px 45px rgba(255, 214, 0, 0.15);
}

/* Responsive móvil: uno debajo del otro, tamaño grande */
@media (max-width: 720px) {
  .jugar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    margin-inline: 1.5rem;
  }

  .jugar-card {
    aspect-ratio: unset;
    padding: 3rem 2rem;
    justify-content: center;
    gap: 1.2rem;
  }

  .jugar-card__icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .jugar-card__icon svg {
    width: 52px;
    height: 52px;
  }

  .jugar-card__name {
    font-size: 1.4rem;
  }

  .jugar-card__desc {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .jugar-content {
    max-width: 700px;
    margin-inline: auto;
  }

  .jugar-grid {
    gap: 1.8rem;
  }

  .jugar-card {
    padding: 3rem 2rem 2.5rem;
  }

  .jugar-card__icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
  }

  .jugar-card__name {
    font-size: 1.35rem;
  }

  .jugar-card__desc {
    font-size: 0.9rem;
  }
}

/* ==========================================
   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: #00e676;
}

.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(--border-subtle);
  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(--yellow-ve);
}

.anim-wallet-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.anim-wallet-select {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  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: #00e676;
}

.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__num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow-ve), 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(--border-subtle);
  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: 282px;
  perspective: 900px;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  margin: 0.25rem 0 0.5rem;
}

.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(--yellow-ve);
  border: 1px solid var(--border-subtle);
  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(--yellow-ve);
  color: #050816;
}

/* Lottery carousel items */
.anim-lot-item {
  position: absolute;
  width: 132px;
  height: 140px;
  left: 0;
  top: 0;
  background: linear-gradient(145deg, var(--bg-soft), var(--bg-alt));
  border: 1px solid var(--border-subtle);
  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(--yellow-ve);
  background: rgba(11, 16, 32, 0.95);
  box-shadow: 0 0 30px rgba(255,214,0,0.65), 0 0 60px rgba(255,214,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(--yellow-ve);
}

.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(--yellow-ve);
  opacity: 1;
}

/* Sorteo carousel items */
.anim-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;
}

.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(--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;
}

.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(--bg-soft);
  border: 1px solid var(--border-subtle);
  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(--yellow-ve);
  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(--yellow-ve);
  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(--border-subtle);
  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(--bg-soft);
  border: 1px solid var(--border-subtle);
  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(--yellow-ve);
  box-shadow: 0 -15px 50px rgba(0,0,0,0.85);
  padding: 0.65rem 1.08rem;
  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(--yellow-ve);
  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(--yellow-ve);
  white-space: nowrap;
}

.anim-btn-play {
  background: linear-gradient(135deg, var(--yellow-ve), #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, 214, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.anim-btn-play:hover:not(:disabled) {
  box-shadow: 0 0 30px rgba(255,214,0,0.7), 0 0 60px rgba(255,214,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;
}

@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 #00e676;
  color: #00e676;
  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: #00e676;
}

.anim-ticket__code {
  font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--yellow-ve);
  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(--border-subtle);
  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; }

.anim-ticket__bono {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #00e676;
}

.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%;
}

.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(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  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: 263px;
    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(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

@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;
  }

  .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 - 56px - 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 - 56px - 68px);
}

.jugadas-container {
  max-width: 640px;
}

/* ── Filtros ── */
.jugadas-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

@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: rgba(9, 12, 28, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(165, 177, 216, 0.2);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.jugada-card:hover {
  border-color: rgba(165, 177, 216, 0.38);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.jugada-card:active {
  transform: translateY(0);
}

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

.jugada-card__code {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow-ve);
}

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

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

.jugada-card__bet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  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.2rem 0.55rem;
}

.jugada-card__bet-chip--tripleta {
  color: rgba(255, 145, 0, 0.85);
  background: rgba(255, 145, 0, 0.07);
  border-color: rgba(255, 145, 0, 0.2);
}

.jugada-card__amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-shrink: 0;
}

.jugada-card__simbolo {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.jugada-card__monto {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.jugada-card__moneda {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.jugada-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.jugada-card__ver-mas {
  font-size: 0.7rem;
  color: var(--yellow-ve);
  opacity: 0.75;
}

.jugada-card:hover .jugada-card__ver-mas {
  opacity: 1;
}

/* ── Badges de estado ── */
.jugada-card__status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.jugada-status--pendiente {
  background: rgba(255, 214, 0, 0.12);
  color: var(--yellow-ve);
  border: 1px solid rgba(255, 214, 0, 0.3);
}

.jugada-status--ganado {
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.5);
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
  font-weight: 700;
}

.jugada-status--perdido {
  background: rgba(165, 177, 216, 0.06);
  color: #6b7a9a;
  border: 1px solid rgba(165, 177, 216, 0.18);
}

/* ── Card-level estado modifiers ── */
.jugada-card--ganado {
  border-color: rgba(0, 230, 118, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.35),
    0 0 14px rgba(0, 230, 118, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.jugada-card--ganado .jugada-card__code--header {
  color: #00e676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.45);
}

.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 {
  color: #6b7a9a !important;
  text-shadow: none !important;
}
.jugada-card--perdido .jugada-card__bet-chip,
.jugada-card--perdido .jugada-card__bet-chip--tripleta {
  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 {
  color: #6b7a9a !important;
  text-shadow: none !important;
}
.jugada-card--anulado .jugada-card__bet-chip,
.jugada-card--anulado .jugada-card__bet-chip--tripleta {
  background: rgba(107, 122, 154, 0.1) !important;
  border-color: rgba(107, 122, 154, 0.2) !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 {
  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(255, 214, 0, 0.1);
  border-color: rgba(255, 214, 0, 0.25);
  color: var(--yellow-ve);
}

.jugada-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Info general del ticket */
.jugada-detail__info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(165, 177, 216, 0.15);
  border-radius: var(--radius-md);
  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.78rem;
  color: var(--text-muted);
}

.jugada-detail__info-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: right;
}

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

.jugada-detail__info-val--monto {
  font-size: 1.05rem;
  font-weight: 700;
}

.jugada-detail__info-val--monto small {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

/* ── Bloque de premio (ganador / pagado) ── */
.jugada-detail__premio {
  background: rgba(0, 230, 118, 0.07);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: var(--radius-md);
  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.78rem;
  color: rgba(0, 230, 118, 0.75);
}

.jugada-detail__premio-mult {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00e676;
}

.jugada-detail__premio-row--total .jugada-detail__premio-label {
  font-weight: 600;
  color: #00e676;
}

.jugada-detail__premio-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00e676;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.45);
}

.jugada-detail__premio-total small {
  font-size: 0.68em;
  font-weight: 500;
  color: rgba(0, 230, 118, 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);
}

/* ── 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: 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: 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);
}