/* ================================================
   RifaPro — index.css
   Estilos específicos del landing público (index.html)
   Los estilos base están en styles.css
   ================================================ */

/* ── Helpers iconos SVG inline ──────────────── */
.icon-inline { display: inline-flex; align-items: center; vertical-align: middle; gap: 0.3rem; }
.icon-inline svg { width: 14px; height: 14px; flex-shrink: 0; }
.feature-chip svg, .badge-tipo svg, .hero-eyebrow svg { vertical-align: middle; margin-right: 2px; }

/* Ocultar hero/ticker en detalle de rifa o polla */
.rifa-detail .hero,  .polla-detail .hero  { display: none !important; }
.rifa-detail .ticker-bar, .polla-detail .ticker-bar { display: none !important; }
.rifa-detail #rifas, .polla-detail #rifas { display: none !important; }
.polla-detail #pollas { display: none !important; }

/* ── HERO ─────────────────────────────────── */
.hero {
  margin-top: 65px;
  width: 100%;
  line-height: 0; /* elimina espacio debajo de la imagen */
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-bg { display: none; }

/* ── TICKER BAR ───────────────────────────── */
.ticker-bar {
  background: rgba(255,202,40,0.08);
  border-top: 1px solid rgba(255,202,40,0.25);
  border-bottom: 1px solid rgba(255,202,40,0.25);
  overflow: hidden;
  padding: .65rem 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-dim);
  padding: 0 1.2rem;
  white-space: nowrap;
}
.ticker-item strong { color: var(--text); font-weight: 700; }
.ticker-item.stat strong { color: var(--gold); font-size: 1.05rem; }
.ticker-item svg { flex-shrink: 0; color: var(--gold); stroke: var(--gold); }
.ticker-sep {
  color: var(--gold);
  font-size: .65rem;
  opacity: .7;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--ticker-half, 50%))); }
}
/* Restaurar animación de rayas de la barra de progreso */
@keyframes progress-stripes {
  from { background-position: 0 0; }
  to   { background-position: 28px 28px; }
}

/* Features row */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hero-feature svg {
  width: 20px; height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  stroke: var(--gold);
}
.hero-feature strong { display: block; font-size: .82rem; color: var(--text); }
.hero-feature small  { display: block; font-size: .68rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .hero { background-position: 70% center; }
  .hero-features { gap: .8rem 1.2rem; }
  .hero-feature svg { width: 16px; height: 16px; }
  .hero-feature strong { font-size: .75rem; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 202, 40, 0.35);
  background: rgba(255, 202, 40, 0.12);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6rem);
  margin-bottom: 1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -.01em;
  line-height: 1;
}
.hero h1 span {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 32px rgba(255, 202, 40, 0.35);
}
.hero-subtitle { font-size: 0.98rem; max-width: 520px; line-height: 1.8; color: var(--text-dim); margin-bottom: 2rem; margin-left: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-stats {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  justify-content: flex-start;
}
.hero-stat-value { font-family: var(--font-display); font-size: 1.65rem; color: var(--gold); display: block; }
.hero-stat-label { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

/* ── SECTION HEADING ──────────────────────── */
.section-heading { text-align: center; margin-bottom: 2.3rem; }
.section-heading h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: 0.5rem; }
.section-heading p { color: var(--text-dim); max-width: 580px; margin: 0 auto; font-size: 0.9rem; }
.section-divider {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}
.divider-line { width: 16px; height: 1px; background: var(--gold); }

/* ── HOW STEPS ────────────────────────────── */
.how-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.1rem;
  text-align: center;
  height: 100%;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  margin: 0 auto 1rem;
  border: 1px solid rgba(255, 202, 40, 0.4);
  background: rgba(255, 202, 40, 0.12);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: grid; place-items: center;
}
.how-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.84rem; color: var(--text-dim); line-height: 1.7; }

/* ── FONDOS DECORATIVOS SECCIONES ────────── */
/* Rifas: cuadrícula de puntos dorados */
#rifas {
  background-image: radial-gradient(circle, rgba(255,202,40,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}
/* Pollas: líneas cruzadas suaves verdes */
#pollas {
  background-image:
    linear-gradient(rgba(52,211,153,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,211,153,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── RIFAS GRID (legacy) ──────────────────── */
.rifas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }

/* ── RIFA / POLLA CARDS HORIZONTAL (landing) */
.rifa-events-grid,
.polla-events-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
/* Cada tarjeta: ancho fijo en multi-card */
.rifa-events-grid .rifa-h-card,
.polla-events-grid .rifa-h-card {
  flex: 0 0 auto;
  width: 500px;
}
/* Una sola tarjeta → más ancha */
.rifa-events-grid.single-card .rifa-h-card,
.polla-events-grid.single-card .rifa-h-card {
  width: min(1100px, 100%);
  grid-template-columns: 420px 1fr;
}
.rifa-events-grid.single-card .rifa-h-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}
/* Card horizontal */
.rifa-h-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  text-decoration: none; color: var(--text); cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.rifa-h-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,202,40,.35);
  box-shadow: var(--shadow);
}
.rifa-h-img { position: relative; overflow: hidden; }
.rifa-h-img      { background: var(--bg-3); }
.rifa-h-img img  { width:100%; height:100%; min-height:180px; object-fit:contain; display:block; transition:transform .4s; }
.rifa-h-card:hover .rifa-h-img img { transform: scale(1.03); }
.rifa-h-img-ph   { width:100%; min-height:200px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#0f2a1a,#16301f); }
.rifa-h-chips    { position:absolute; bottom:.7rem; right:.7rem; display:flex; flex-direction:column; align-items:flex-end; gap:.3rem; }
.rifa-h-body     { padding:1rem 1.1rem; display:flex; flex-direction:column; gap:.35rem; }
.rifa-h-meta     { display:flex; justify-content:space-between; align-items:center; }
.rifa-h-type     { font-size:.6rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-dim); }
.rifa-h-date     { font-size:.72rem; color:var(--text-dim); }
.rifa-h-title    { font-size:1.15rem; font-weight:700; line-height:1.25; margin:0; }
.rifa-h-desc     { font-size:.82rem; color:var(--text-dim); line-height:1.65; flex:1;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rifa-h-footer   { display:flex; justify-content:space-between; align-items:center;
  padding-top:.8rem; border-top:1px solid var(--line); margin-top:auto; }
.rifa-h-price    { font-family:var(--font-display); font-size:1.3rem; color:var(--gold); }
/* Fondo placeholder polla (estadio abstracto) */
.polla-card-img-ph {
  width:100%; height:100%; min-height:180px;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(ellipse at 50% 120%, rgba(52,211,153,.18) 0%, transparent 70%),
              linear-gradient(160deg, #071a0e 0%, #0c2616 40%, #0a1a10 100%);
}
.polla-shield-ph {
  width:34px; height:34px; border-radius:50%;
  background:rgba(52,211,153,.2); border:1px solid rgba(52,211,153,.3);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.9rem; color:#34d399;
}
/* Polla teams — logos arriba del nombre */
.polla-h-teams      { display:flex; align-items:center; gap:.8rem; margin-bottom:.2rem; }
.polla-h-team-block { display:flex; flex-direction:column; align-items:center; gap:.3rem; }
.polla-h-shield     { width:34px; height:34px; object-fit:contain; border-radius:50%; flex-shrink:0; }
.polla-h-team       { font-size:.9rem; font-weight:800; text-align:center; }
.polla-h-vs         { font-size:.72rem; color:var(--text-dim); font-weight:700; flex-shrink:0; margin-bottom:1rem; }

/* ── ZONA PICK MEJORADA ───────────────────── */
.zona-pick-title { display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.9rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.8rem; }
.zona-pick-title::before,.zona-pick-title::after { content:'✦';color:var(--gold);font-size:.7rem; }
.zona-counter-chip svg { color:var(--gold);stroke:var(--gold);margin-bottom:.2rem; }
.zona-tip-box {
  background:rgba(255,202,40,.07);border:1px solid rgba(255,202,40,.2);
  border-radius:10px;padding:.65rem .9rem;font-size:.78rem;color:var(--text-dim);
  display:flex;align-items:center;gap:.5rem;
}
.zona-tip-box svg { flex-shrink:0;color:var(--gold);stroke:var(--gold); }
.zona-security { display:flex;align-items:center;justify-content:center;gap:.35rem;font-size:.72rem;color:var(--text-dim);margin-top:.3rem; }
.zona-security svg { color:var(--ok);stroke:var(--ok); }
.zona-pick-right-title { display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.7rem; }
.zona-pick-right-title::before,.zona-pick-right-title::after { content:'✦';color:var(--gold);font-size:.65rem; }
.zona-pick-hint { text-align:center;font-size:.72rem;color:var(--text-dim);margin-top:.6rem;display:flex;align-items:center;justify-content:center;gap:.3rem; }
.zona-pick-hint::before { content:'✦';color:var(--gold);font-size:.6rem; }
.zona-limpiar { background:transparent;border:1px solid rgba(255,255,255,.12);border-radius:8px;color:var(--text-dim);font-size:.75rem;padding:.35rem .7rem;cursor:pointer;display:flex;align-items:center;gap:.3rem;transition:background .2s; }
.zona-limpiar:hover { background:rgba(255,255,255,.06); }

@media (max-width:900px) {
  .rifa-h-card { grid-template-columns: 1fr; }
  .rifa-h-img img, .rifa-h-img-ph { min-height:180px; max-height:220px; }
}

/* ── RIFA EVENT CARDS (legacy vertical, no usado) ─────────── */
.rifa-events-grid-old {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.rifa-event-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.rifa-event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 202, 40, 0.38);
  box-shadow: var(--shadow);
}
.rifa-event-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}
.rifa-event-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.rifa-event-card:hover .rifa-event-img-wrap img { transform: scale(1.04); }
.rifa-event-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.rifa-event-img-placeholder svg { width: 48px; height: 48px; opacity: .3; }
.rifa-event-img-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.rifa-event-chip {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.rifa-event-tickets {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 0.3rem;
}
.rifa-event-tickets svg { width: 13px; height: 13px; }
.rifa-event-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rifa-event-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.rifa-event-type { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.rifa-event-date { font-size: 0.7rem; color: var(--text-dim); }
.rifa-event-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.3; }
.rifa-event-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; flex: 1; margin-bottom: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rifa-event-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.rifa-event-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); }

@media (max-width: 768px) {
  .rifa-events-grid { grid-template-columns: 1fr; }
}

/* ── PANTALLA COMPLETA: todas las secciones ──── */
#tickets > .container,
#evento-principal > .container,
#polla-detail > .container { max-width: 100% !important; padding: 0 2rem !important; }

/* ── SPINNER UPLOAD ───────────────────────── */
.upload-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,202,40,.3); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .6s linear infinite;
  vertical-align: middle; margin-right: 4px;
}

/* ── ZONA PICK (rifa manual) ─────────────── */
.zona-progreso-section { margin-bottom: 1.4rem; }
.zona-pick-main {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; align-items: start; margin-bottom: 1.4rem;
}
.zona-pick-left { display: flex; flex-direction: column; gap: .9rem; }
.zona-counter-chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.zona-counter-chip {
  background: rgba(255,202,40,.07); border: 1px solid rgba(255,202,40,.2);
  border-radius: 10px; padding: .5rem .9rem; text-align: center; flex: 1;
}
.zona-counter-chip strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.zona-counter-chip span   { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-top: .2rem; }
.zona-counter-chip.vendidos strong { color: #ff8e96; }
.zona-counter-chip.total strong    { color: var(--text); }
.zona-pick-right .ticket-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}
.zona-pick-right .ticket-num { font-size: .72rem; }
@media (max-width: 900px) {
  .zona-pick-main { grid-template-columns: 1fr; }
}

/* ── RIFA DETALLE (nuevo layout) ─────────── */
.rifa-d-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
}
.rifa-d-left { position: relative; }
.rifa-d-img  { width: 100%; height: auto; display: block; object-fit: contain; }
.rifa-d-img-ph { width: 100%; min-height: 340px; display: grid; place-items: center; background: var(--bg-3); }
.rifa-d-right { padding: 1.8rem 2rem; display: flex; flex-direction: column; gap: .9rem; }
.rifa-d-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.rifa-d-title { font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800; line-height: 1.1; }
.rifa-d-desc  { color: var(--text-dim); font-size: .88rem; line-height: 1.7; }
.rifa-d-stats {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: .6rem; padding: .9rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rifa-d-stat {
  display: flex; align-items: flex-start; gap: .5rem;
  flex-direction: column;
}
.rifa-d-stat svg { color: var(--gold); stroke: var(--gold); flex-shrink: 0; }
.rds-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.rds-value  { font-size: 1.05rem; font-weight: 700; }
.rifa-d-avance { display: flex; flex-direction: column; gap: .4rem; }
.rifa-d-avance-hdr { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-dim); }
.rifa-d-bar  { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.rifa-d-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7a800 0%, #ffca28 50%, #ffe566 100%);
  transition: width .5s ease;
  position: relative;
  overflow: hidden;
}
.rifa-d-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  animation: progress-shine 2.2s ease-in-out infinite;
}
@media (max-width:768px) {
  .rifa-d-card { grid-template-columns: 1fr; }
  .rifa-d-img  { min-height: 220px; }
}

/* ── EVENTO PRINCIPAL ─────────────────────── */
.evento-main-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.evento-image-wrap { position: relative; overflow: hidden; }
.evento-main-image { width: 100%; height: 420px; object-fit: cover; display: block; }
.evento-features {
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.feature-chip {
  font-size: 0.68rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  text-align: center;
}
.evento-main-body {
  padding: 1.75rem 2rem 2rem;
  display: flex; flex-direction: column; align-items: flex-start;
}
.evento-main-body > .evento-main-name,
.evento-main-body > .evento-main-desc,
.evento-main-body > .rifa-progress,
.evento-main-body > .evento-inline-progress,
.evento-main-body > .evento-info-inline { width: 100%; }
.evento-main-body > .btn-full { width: 100%; align-self: stretch; }
.evento-main-name { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
.evento-main-desc { color: var(--text-dim); font-size: 0.88rem; line-height: 1.75; margin-bottom: 0.6rem; }

/* Info inline (reemplaza los 4 meta-boxes) */
.evento-info-inline {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding: .85rem 0; margin: .4rem 0 .9rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.evento-info-inline > div { display: flex; flex-direction: column; gap: .15rem; }
.info-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); display: block; }
.info-value  { font-size: 1rem; font-weight: 700; }
.meta-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.meta-value { font-weight: 700; margin-top: 0.15rem; }
.evento-inline-progress { margin-top: 0.9rem; margin-bottom: 0.85rem; }
.evento-inline-progress p { font-size: 0.74rem; color: var(--text-dim); margin-top: 0.35rem; }

/* ── BADGE TIPO EVENTO ────────────────────── */
.badge-tipo {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}
.badge-tipo-aleatorio {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}
.badge-tipo-rifa {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* ── TICKETS PANEL ────────────────────────── */
.tickets-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  padding: 1.4rem;
}

/* ── PROGRESO GENERAL ─────────────────────── */
.general-progress-wrap { margin-bottom: 1.8rem; }
.general-progress-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.general-progress-left {
  background: rgba(255, 202, 40, 0.08);
  display: grid; place-items: center;
  padding: 0.7rem; text-align: center;
}
.general-progress-left strong { font-size: 2rem; color: var(--gold); line-height: 1; }
.general-progress-left span {
  margin-top: 0.25rem; font-size: 0.58rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); display: block;
}
.general-progress-center { padding: 0.7rem 0.4rem; }
.general-progress-center h4 { font-size: 0.9rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.general-progress-right { display: grid; place-items: center; font-size: 2rem; color: var(--gold); font-family: var(--font-display); }
.general-progress-bar {
  width: 100%; height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
}
.general-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f7a800 0%, #ffca28 60%, #ffe566 100%);
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  position: relative;
  border-radius: 999px;
  overflow: hidden;
}
/* Brillo sutil que recorre la barra una sola vez al renderizar */
.general-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  animation: progress-shine 2.2s ease-in-out infinite;
}
@keyframes progress-shine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@keyframes progress-stripes {
  from { background-position: 0 0; }
  to   { background-position: 28px 28px; }
}

/* ── PREMIADOS ────────────────────────────── */
.premiados-title { text-align: center; font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 1rem; }
.premiados-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.ticket-premiado {
  background: linear-gradient(180deg, #ffe15c, #f7b500);
  border: 2px solid rgba(0,0,0,0.35);
  color: #111;
  border-radius: 10px;
  text-align: center;
  padding: 0.58rem 0.4rem;
  position: relative;
  overflow: visible;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.2);
}
.ticket-premiado::before,
.ticket-premiado::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 10px; height: 20px;
  background: var(--dark-2);
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.2);
}
.ticket-premiado::before { left: -6px; }
.ticket-premiado::after  { right: -6px; }
.ticket-premiado-num { display: block; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.04em; line-height: 1; }
.ticket-premiado-label { display: block; margin-top: 0.2rem; font-size: 0.6rem; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase; opacity: 0.75; }

/* ── PACKS TITLE ──────────────────────────── */
.packs-title {
  text-align: center;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--text);
}
.packs-title::before,
.packs-title::after {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── PACKS GRID ───────────────────────────── */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

/* ── PACK CARD ────────────────────────────── */
.pack-card {
  border: 1px solid rgba(255, 202, 40, 0.2);
  border-radius: 14px;
  background: #16161d;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 202, 40, 0.5);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.pack-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 202, 40, 0.7), transparent);
}
.pack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.pack-top h5 {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.pack-price { font-family: var(--font-display); font-size: 1.65rem; line-height: 1; color: var(--text); font-weight: 700; }
.pack-savings {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 202, 40, 0.18);
  border: 1px solid rgba(255, 202, 40, 0.35);
  font-size: 0.6rem; font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.pack-unit { font-size: 0.68rem; color: var(--text-dim); }

/* ── TICKET STACK (SVG abanico) ───────────── */
.pack-ticket-stack {
  position: relative;
  width: 80px;
  height: 76px;
  flex-shrink: 0;
}
.ticket-svg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 62px; height: 62px;
}
.ticket-svg-layer:nth-child(1) { transform: translate(18px,-12px) rotate(16deg); opacity: 0.58; z-index: 1; }
.ticket-svg-layer:nth-child(2) { transform: translate(10px,-6px)  rotate(8deg);  opacity: 0.80; z-index: 2; }
.ticket-svg-layer:nth-child(3) { transform: translate(0px,0px)    rotate(0deg);               z-index: 3; }

/* ── PACK BTN ─────────────────────────────── */
.pack-btn {
  width: 100%;
  border: none;
  border-radius: 9px;
  background: linear-gradient(90deg, #f7bd00, #ffcf3d);
  color: #121212;
  padding: 0.6rem 0.5rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.pack-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pack-agotado { opacity: 0.55; pointer-events: none; }
.pack-btn:disabled { background: var(--bg-3); color: var(--text-dim); cursor: not-allowed; transform: none; filter: none; }

/* ── CUSTOM PACK ──────────────────────────── */
.custom-pack-wrap {
  margin-bottom: 1.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(255,202,40,0.2);
  border-radius: 14px;
  background: rgba(255,202,40,0.04);
}
.custom-pack-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.6rem;
}
.custom-pack-total {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .custom-pack-form { grid-template-columns: 1fr 1fr; }
  .custom-pack-form .btn { grid-column: 1/-1; }
}

/* ── BENEFITS ─────────────────────────────── */
.tickets-benefits {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.benefit-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  padding: 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 202, 40, 0.35);
  background: rgba(255, 202, 40, 0.09);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.benefit-icon svg {
  width: 24px; height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-item strong { color: var(--text); font-weight: 700; font-size: 0.84rem; display: block; }
.benefit-item small { display: block; font-size: 0.68rem; color: var(--text-dim); line-height: 1.5; margin-top: 0.05rem; }

/* ── CONSULTA ─────────────────────────────── */
.consulta-box { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.03); padding: 1rem; }
.consulta-head { text-align: center; margin-bottom: 0.8rem; }
.consulta-head h4 { font-size: clamp(1.2rem, 4vw, 1.7rem); margin-bottom: 0.2rem; }
.consulta-head p { color: var(--text-dim); font-size: 0.8rem; }
.consulta-form { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; margin-bottom: 0.8rem; }
.consulta-result { border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.2); padding: 0.8rem; }
.consulta-item { border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem; margin-bottom: 0.55rem; background: rgba(255,255,255,0.02); }
.consulta-item:last-child { margin-bottom: 0; }
.consulta-title { font-weight: 700; margin-bottom: 0.2rem; }
.consulta-meta { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 0.35rem; }
.consulta-numeros { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.consulta-num { background: rgba(255,202,40,0.16); border: 1px solid rgba(255,202,40,0.35); color: var(--gold); border-radius: 999px; padding: 0.18rem 0.5rem; font-size: 0.72rem; font-weight: 700; }

/* ── BOLETOS comprados (diseño tipo ticket) ──── */
.boletos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.boleto-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
  transition: transform 0.2s ease;
}
.boleto-svg:hover { transform: translateY(-2px) rotate(-1deg); }

/* ── TICKET GRID (cuadrícula de números) ──── */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 620px;
  margin: 0 auto;
}
.ticket-num {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark-3);
  color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ticket-num.available { cursor: pointer; }
.ticket-num.available:hover {
  background: rgba(255, 202, 40, 0.12);
  border-color: rgba(255, 202, 40, 0.45);
  transform: translateY(-2px);
}
.ticket-num.selected {
  background: linear-gradient(180deg, #ffe15c, #f7b500);
  color: #111;
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(247, 181, 0, 0.35);
  cursor: pointer;
}
/* Pendiente (en proceso de pago) — rojo */
.ticket-num.sold,
.ticket-num.pending {
  background: rgba(230, 57, 70, 0.18);
  border-color: rgba(230, 57, 70, 0.4);
  color: #ff8e96;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.85;
}
/* Confirmado (pagado) — verde */
.ticket-num.sold.confirmed,
.ticket-num.confirmed {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #4ade80;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.95;
}
.ticket-num.winner {
  background: linear-gradient(135deg, #fff066, #ffaa00);
  color: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--gold), 0 6px 20px rgba(255, 170, 0, 0.5);
  animation: winnerPulse 1.6s ease-in-out infinite;
}
@keyframes winnerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* ── CONTEO TICKETS (caja con número + total) ─ */
.ticket-counter-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.1), rgba(255, 202, 40, 0.02));
  border: 1px solid rgba(255, 202, 40, 0.35);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.ticket-counter-box .count-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 800;
}
.ticket-counter-box .count-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-top: 0.2rem;
}
.ticket-counter-box .count-total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  text-align: right;
}
.ticket-counter-box .count-total small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

@media (max-width: 600px) {
  .ticket-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ticket-num  { font-size: 0.78rem; }
}

/* ── MODO RIFA (selección manual) ─────────── */
.rifa-pick-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  padding: 1.4rem;
}
.rifa-pick-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.rifa-pick-legend {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.rifa-pick-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.legend-chip {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: inline-block;
}
.legend-chip.available { background: var(--dark-3); border: 1px solid rgba(255,255,255,.15); }
.legend-chip.selected  { background: var(--gold); }
.legend-chip.sold,
.legend-chip.pending   { background: rgba(230,57,70,.4); border:1px solid rgba(230,57,70,.6); }
.legend-chip.confirmed { background: rgba(74,222,128,.4); border:1px solid rgba(74,222,128,.6); }
.rifa-pick-bar {
  margin-top: 1.2rem;
  padding: 1.1rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(245,197,24,0.1);
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ── RIFA CARDS ───────────────────────────── */
.rifa-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); transition: var(--transition); cursor: pointer; }
.rifa-card:hover { transform: translateY(-5px); border-color: rgba(255,202,40,0.35); box-shadow: var(--shadow); }
.rifa-img, .rifa-img-placeholder { width: 100%; aspect-ratio: 16/9; }
.rifa-img { object-fit: cover; display: block; }
.rifa-img-placeholder { display: grid; place-items: center; font-size: 2.2rem; background: var(--bg-3); }
.rifa-body { padding: 1.1rem; }
.rifa-name { font-size: 1.25rem; margin-bottom: 0.25rem; }
.rifa-desc { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.8rem; line-height: 1.6; }
.rifa-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.rifa-price { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); }
.rifa-price small { display: block; font-family: var(--font-body); font-size: 0.64rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.progress-bar { height: 6px; border-radius: 999px; background: #2a2a31; overflow: hidden; margin-top: 0.3rem; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffa000, #ffca28); transition: width 0.5s ease; }
.progress-text { font-size: 0.68rem; color: var(--text-dim); display: flex; justify-content: space-between; margin-top: 0.3rem; }
.rifa-footer { padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.7rem; background: rgba(0,0,0,0.18); }
.rifa-date { font-size: 0.72rem; color: var(--text-dim); flex: 1; }

/* ── EMPTY STATE ──────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-icon { font-size: 3rem; opacity: 0.35; margin-bottom: 0.8rem; }

/* ── GALERÍA CON FLECHAS ──────────────────── */
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.65); border: none; color: #fff;
  font-size: 2.2rem; line-height: 1; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gallery-arrow:hover { background: rgba(0,0,0,.85); }
.gallery-prev { left: .8rem; }
.gallery-next { right: .8rem; }
.gallery-dots { position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; z-index: 3; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s; }
.gallery-dot.active { background: #fff; }

/* ── OVERLAY STATUS/TIPO SOBRE IMAGEN ────── */
.rifa-d-status-overlay { position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.rifa-d-tipo-overlay   { position: absolute; bottom: .8rem; right: .8rem; z-index: 2; }
.rifa-d-tipo-chip {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(0,0,0,.65); color: rgba(255,255,255,.95);
  padding: .3rem .7rem; border-radius: 6px; backdrop-filter: blur(4px);
}
/* status-dot compartido (también en admin) */
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status-dot.active { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.6); }
.status-dot.closed { background: #fb7185; }

/* ── POLLA LAYOUT CON PANEL DERECHO ──────── */
.polla-page-wrap {
  display: grid;
  grid-template-columns: 480px 1fr;   /* form fijo, paneles llenan el resto */
  gap: 1.2rem;
  align-items: stretch;
}
.polla-panels-right {
  display: flex;
  flex-direction: row;
  gap: .8rem;
  align-items: stretch;
}
.polla-panels-right .polla-right-panel {
  flex: 1;       /* cada panel ocupa la mitad del espacio disponible */
  min-width: 0;
}
.polla-right-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.prp-prize-block {
  background: linear-gradient(135deg, #071810 0%, #0d2e18 55%, #071810 100%);
  border-bottom: 1px solid rgba(52,211,153,.25);
  padding: 1.4rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.prp-prize-block::before {
  content: '🏆';
  position: absolute;
  right: .8rem; top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem; opacity: .45;
  pointer-events: none;
}
.prp-prize-label {
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em;
  color: rgba(52,211,153,.75); margin-bottom: .5rem;
}
.prp-prize-value {
  font-size: 2.2rem; font-weight: 900;
  color: #34d399; font-family: var(--font-display);
  line-height: 1;
  text-shadow: 0 0 24px rgba(52,211,153,.35);
}
.prp-prize-sub { font-size: .73rem; color: var(--text-dim); margin-top: .4rem; }
.prp-section { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.prp-section-title { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: .6rem; }
.prp-bet-item { display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .8rem; }
.prp-bet-item:last-child { border-bottom: none; }
.prp-bet-score { background: rgba(255,202,40,.1); border: 1px solid rgba(255,202,40,.25);
  color: var(--gold); border-radius: 6px; padding: .15rem .55rem; font-weight: 700; font-size: .78rem; }
.prp-empty { padding: 1rem; text-align: center; color: var(--text-dim); font-size: .82rem; }

/* Escudos de equipos */
.polla-shield { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.05); }
.polla-matchup-with-shields { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem 0 .5rem; }
.polla-team-block { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 1; }

/* Nuevo selector con equipos + controles integrados */
.polla-new-selector {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 1.5rem; margin-bottom: .5rem;
}
.polla-team-col {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  flex: 1;
}
.polla-team-col .polla-score-control { margin-top: .3rem; }

@media (max-width:900px) {
  .polla-page-wrap { grid-template-columns: 1fr; }
  .polla-right-panel { position: static; }
}

/* ── POLLAS FUTBOLERAS ────────────────────── */
/* Ocultar secciones según ruta */
.rifa-detail #pollas, .polla-detail #rifas,
.polla-detail #pollas, .polla-detail #evento-principal,
.polla-detail #tickets { display: none !important; }
.polla-detail #polla-detail { display: block !important; }

/* Tarjeta polla (equipos) */
.polla-teams-body { min-height: 0; }
.polla-teams { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .6rem 0 .2rem; }
.polla-team  { font-size: .95rem; font-weight: 700; text-align: center; flex: 1; }
.polla-vs    { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--text-dim); flex-shrink: 0; }

/* Detalle polla */
.polla-detail-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01)); margin-bottom: 1.8rem; }
.polla-detail-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.polla-detail-body { padding: 1.75rem 2rem; }
.polla-matchup { display: flex; align-items: center; gap: 1rem; margin: .5rem 0; flex-wrap: wrap; }
.polla-team-big { font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 800; flex: 1; text-align: center; }
.polla-vs-big   { font-size: 1rem; color: var(--text-dim); font-weight: 700; flex-shrink: 0; }

/* Selector de marcador */
.polla-selector-wrap { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; }
.polla-score-selector { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.polla-score-team { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.polla-score-team-name { font-size: .85rem; font-weight: 700; color: var(--text-dim); text-align: center; max-width: 120px; }
.polla-score-control { display: flex; align-items: center; gap: .6rem; }
.polla-btn-score { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); font-size: 1.3rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.polla-btn-score:hover { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.4); transform: scale(1.1); }
.polla-score-val { font-size: 2.8rem; font-weight: 900; min-width: 52px; text-align: center; font-family: var(--font-display); color: var(--gold); }
.polla-score-sep { font-size: 2rem; color: var(--text-dim); font-weight: 800; }

/* Info de premios */
.polla-prize-info-box { background: rgba(52,211,153,.05); border: 1px solid rgba(52,211,153,.18); border-radius: 12px; padding: 1rem 1.2rem; margin: .8rem 0; }
.polla-prize-rows { display: flex; flex-direction: column; gap: .5rem; }
.ppr { display: flex; justify-content: space-between; font-size: .85rem; }
.ppr span { color: var(--text-dim); }

/* Resultado */
.polla-resultado-wrap { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.polla-resultado-score { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.polla-resultado-marcador { font-size: clamp(2.5rem,6vw,4rem); font-weight: 900; font-family: var(--font-display); color: #34d399; }
.polla-premio-box { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.polla-premio-box > div { background: rgba(0,0,0,.2); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .15rem; }

/* Chip apuesta en consulta */
.polla-apuesta-chip { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: #34d399; border-radius: 8px; padding: .4rem 1rem; font-size: 1.1rem; font-weight: 800; font-family: var(--font-display); }
.polla-apuesta-chip.ganador { background: rgba(52,211,153,.25); border-color: #34d399; }

/* ── GANADOR ──────────────────────────────── */
.ganador-panel { text-align: center; padding: 1rem 0; }
.ganador-boleto-wrap { max-width: 260px; margin: 1.5rem auto; }
.ganador-boleto-wrap .boleto-svg { filter: drop-shadow(0 8px 28px rgba(52,211,153,.45)); }

/* ── FOOTER MINIMAL ───────────────────────── */
footer.footer-minimal { margin-top: 2rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.01); }
footer { margin-top: 4rem; border-top: 1px solid var(--line); background: rgba(255,255,255,0.01); padding: 2.5rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.8rem; }
.footer-brand-name { font-family: var(--font-display); color: var(--gold); font-size: 1.7rem; }
.footer-brand-name span { color: var(--text); }
.footer-desc, .footer-col a, .footer-copy { color: var(--text-dim); font-size: 0.8rem; }
.footer-col h4 { color: var(--gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.7rem; }
.footer-col a { display: block; text-decoration: none; margin-bottom: 0.45rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .rifas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .evento-main-card { grid-template-columns: 1fr; }
  .premiados-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs-grid { grid-template-columns: 1fr; }
  .tickets-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .general-progress-card { grid-template-columns: 1fr; }
  .general-progress-right { padding-bottom: 0.7rem; }
  .consulta-form { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE FIXES — móvil y tablet
   ════════════════════════════════════════════════ */

/* ── Tablet (≤980px) ──────────────────────── */
@media (max-width: 980px) {
  /* Polla detail: stack vertical */
  .polla-page-wrap {
    grid-template-columns: 1fr !important;
  }
  .polla-panels-right {
    flex-direction: column !important;
  }
  .polla-panels-right .polla-right-panel {
    width: 100% !important;
  }
  /* Tickets zona: ya stacked por su propio media query */
  .zona-pick-main { grid-template-columns: 1fr !important; }
}

/* ── Mobile (≤768px) ──────────────────────── */
@media (max-width: 768px) {
  /* Hero margin adjustments (navbar mobile altura ~58px) */
  .hero { margin-top: 58px; }

  /* Ticker más compacto */
  .ticker-item { font-size: 0.72rem; padding: 0 0.7rem; }

  /* Cards landing: full width */
  .rifa-events-grid .rifa-h-card,
  .polla-events-grid .rifa-h-card {
    width: 100% !important;
  }
  .rifa-events-grid.single-card .rifa-h-card,
  .polla-events-grid.single-card .rifa-h-card {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  /* Card horizontal → vertical en mobile */
  .rifa-h-card {
    grid-template-columns: 1fr !important;
  }
  .rifa-h-img img,
  .rifa-h-img-ph { min-height: 160px; max-height: 180px; }

  /* Polla teams compact */
  .polla-h-team { font-size: 0.85rem; }
  .polla-h-shield { width: 28px; height: 28px; }

  /* Rifa detail card stacking */
  .rifa-d-card { grid-template-columns: 1fr !important; }
  .rifa-d-right { padding: 1.2rem !important; }
  .rifa-d-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .rifa-d-title { font-size: 1.4rem !important; }

  /* Gallery arrows más pequeños */
  .gallery-arrow { width: 36px; height: 36px; font-size: 1.8rem; }
  .gallery-prev { left: 0.4rem; }
  .gallery-next { right: 0.4rem; }

  /* Sección secciones padding reducido */
  .section { padding: 2.5rem 0 !important; }
  #tickets > .container,
  #evento-principal > .container,
  #polla-detail > .container,
  #rifas > .container,
  #pollas > .container { padding: 0 1rem !important; }

  /* Polla detail */
  .polla-team-big { font-size: 1.2rem !important; }
  .polla-shield { width: 44px; height: 44px; }
  .polla-new-selector { gap: 0.8rem; }
  .polla-score-val { font-size: 2rem; min-width: 40px; }
  .polla-btn-score { width: 34px; height: 34px; font-size: 1.1rem; }
  .polla-score-sep { font-size: 1.4rem; }

  /* Polla matchup en columnas pequeñas */
  .polla-matchup-with-shields { gap: 0.6rem; padding: 0.6rem 0 0.3rem; }

  /* Info inline más compacto */
  .evento-info-inline { gap: 1rem !important; padding: 0.7rem 0; }
  .info-value { font-size: 0.9rem; }
  .info-label { font-size: 0.55rem; }

  /* Counter chips de tickets más pequeños */
  .zona-counter-chip { padding: 0.4rem 0.6rem; }
  .zona-counter-chip strong { font-size: 1.2rem; }
  .zona-counter-chip svg { width: 16px; height: 16px; }

  /* Ticket grid: mantiene 10 columnas más compactas */
  .ticket-grid { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; gap: 0.25rem !important; padding: 0.5rem !important; }
  .zona-pick-right .ticket-grid { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; }
  .ticket-num { font-size: 0.62rem !important; }

  /* Boletos consulta más pequeños */
  .boletos-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important; }

  /* Premiados grid 2 cols (ya existe pero asegurar) */
  .premiados-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* Packs grid 1 col (ya existe pero asegurar) */
  .packs-grid { grid-template-columns: 1fr !important; }

  /* Custom pack form */
  .custom-pack-form { grid-template-columns: 1fr; }
  .custom-pack-form .btn { grid-column: 1 / -1; }
}

/* ── Mobile pequeño (≤480px) ──────────────── */
@media (max-width: 480px) {
  /* Polla landing card: contenido más compacto */
  .polla-h-teams { gap: 0.5rem; }
  .polla-h-team { font-size: 0.75rem; }
  .polla-h-vs { font-size: 0.65rem; margin-bottom: 0.7rem; }

  /* Tickets grid en mobile pequeño: 10 columnas muy compactas */
  .ticket-grid,
  .zona-pick-right .ticket-grid { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; gap: 0.2rem !important; }
  .ticket-num { font-size: 0.55rem !important; }

  /* Hero h1 más pequeño */
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
}
