/* Bloque contenedor */
.asescodb-raffle { 
  margin: 1rem 0; 
}

/* Botón base */
.btn-participar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 40px;
  padding: .6rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: #f28c28;      /* naranja ASESCODB */
  color: #0b2c5f;           /* azul oscuro ASESCODB */
  transition: transform .06s ease, opacity .2s ease, box-shadow .2s ease;
}

/* Hover y focus accesible */
.btn-participar:hover { 
  opacity: .92; 
  transform: translateY(-1px);
}
.btn-participar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242,140,40,.25), 0 0 0 6px rgba(11,44,95,.20);
}

/* Estado ya inscrito / deshabilitado */
.btn-participar.is-joined,
.btn-participar:disabled {
  background: #e7e7e7;
  color: #666;
  cursor: default;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* Estado de carga (cuando el JS añade la clase .is-loading) */
.btn-participar.is-loading {
  pointer-events: none;
  opacity: .8;
}
.btn-participar.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: asescodb-spin .8s linear infinite;
}

/* Mensaje de feedback junto al botón */
.raffle-feedback { 
  display: inline-block; 
  margin-left: .75rem; 
  font-size: .95rem; 
}
.raffle-feedback.ok    { color: #2e7d32; } /* verde éxito */
.raffle-feedback.error { color: #c62828; } /* rojo error */

/* Listado de sorteos dentro de Zona Socios */
.asescodb-raffle-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.asescodb-raffle-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.asescodb-raffle-title { 
  margin: .25rem 0 .5rem; 
  font-size: 1.05rem;
}
.asescodb-raffle-excerpt { 
  margin-bottom: .75rem; 
  font-size: .95rem; 
  line-height: 1.45; 
}

/* Animación del spinner */
@keyframes asescodb-spin {
  to { transform: rotate(360deg); }
}
