/* Vista pública del registro de apuestas. Mobile-first. */

.pagina-apuestas {
  background: #f7f8fa;
  min-height: 100vh;
}

.apuestas-barra {
  background: #1f2933;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}

.apuestas-barra h1 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.apuestas-barra p {
  font-size: 0.875rem;
  color: #cbd2d9;
}

.apuestas-contenido {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.apuestas-cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.apuesta-cifra {
  background: #fff;
  border-radius: 10px;
  padding: 0.875rem 0.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.apuesta-cifra b {
  display: block;
  font-size: 1.5rem;
  color: #2563eb;
  overflow-wrap: anywhere;
}

.apuesta-cifra span {
  font-size: 0.75rem;
  color: #616e7c;
}

/* Filtros */
.filtros-publicos {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.filtros-publicos::-webkit-scrollbar {
  display: none;
}

.filtro-publico {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.375rem 0.875rem;
  background: #fff;
  border: 1px solid #cbd2d9;
  border-radius: 999px;
  color: #1f2933;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.filtro-publico.activo {
  background: #1f2933;
  border-color: #1f2933;
  color: #fff;
  font-weight: 600;
}

.filtro-publico .filtro-cuenta {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.3125rem;
  background: #e4e7eb;
  border-radius: 999px;
  color: #616e7c;
  font-size: 0.75rem;
  font-weight: 600;
}

.filtro-publico.activo .filtro-cuenta {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Listado */
.apuestas-lista {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.apuesta-publica {
  background: #fff;
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  border-left: 3px solid #f59e0b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.apuesta-publica.apuesta-pagado {
  border-left-color: #16a34a;
}

.apuesta-publica-cabecera {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.apuesta-publica-cabecera strong {
  flex: 1;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.marca {
  flex: 0 0 auto;
  padding: 0.0625rem 0.4375rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.marca-pendiente {
  background: #fef3c7;
  color: #92400e;
}

.marca-pagada {
  background: #dcfce7;
  color: #166534;
}

.apuesta-publica-texto {
  font-size: 0.875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.apuesta-publica-meta {
  margin-top: 0.3125rem;
  font-size: 0.75rem;
  color: #616e7c;
}

.apuestas-vacio {
  text-align: center;
  color: #616e7c;
  padding: 2.5rem 1rem;
}

.apuestas-pie {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #616e7c;
}

@media (min-width: 768px) {
  .apuestas-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Imagen adjunta a la apuesta */
.apuesta-imagen {
  margin-top: 0.5rem;
}

.apuesta-imagen img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef1f5;
}

/* Etiqueta de la fila de ordenamiento */
.filtro-titulo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #616e7c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* --- Cumpleaños: listado (mantenedor y vista pública) --- */
.lista-cumples {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding-bottom: 5rem;
}

.cumple-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* El de hoy se distingue sin depender solo del color. */
.cumple-item.cumple-hoy {
  outline: 2px solid #16a34a;
  outline-offset: -2px;
}

.cumple-fecha {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  padding: 0.25rem 0;
  background: #eef2ff;
  border-radius: 8px;
  line-height: 1.1;
}

.cumple-item.cumple-hoy .cumple-fecha {
  background: #dcfce7;
}

.cumple-fecha b {
  font-size: 1.25rem;
  color: #2563eb;
}

.cumple-item.cumple-hoy .cumple-fecha b {
  color: #166534;
}

.cumple-fecha span {
  font-size: 0.6875rem;
  color: #616e7c;
  text-transform: uppercase;
}

.cumple-datos {
  flex: 1;
  min-width: 0;
}

.cumple-datos strong {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cumple-datos span {
  font-size: 0.8125rem;
  color: #616e7c;
}

.cumple-editar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #616e7c;
}

.cumple-editar:hover {
  background: #eef2ff;
  color: #2563eb;
}
