/* ═══════════════════════════════════════════════════════════════════════
   Lazzo Bienestar — Card "Próxima sesión" en Inicio Lazzo (C13)
   ───────────────────────────────────────────────────────────────────────
   Card en el dashboard del SPA principal con countdown a la próxima reserva
   confirmada. Estética híbrida: paleta dashboard Lazzo (--c1, --bg, etc.)
   con un acento violeta sutil que recuerda a Bienestar sin chocar con el
   resto de cards de Inicio.
   Triple candado de visibilidad: gestionado en JS, este CSS solo pinta.
   ═══════════════════════════════════════════════════════════════════════ */

#bienestar-prox-card[hidden] { display: none; }

.bpc-card {
  border-radius: var(--r, 16px);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #9b7fd4 5%, var(--card, #fff)) 0%,
    var(--card, #fff) 60%
  );
  /* Fallback browsers sin color-mix */
  background-color: var(--card, #fff);
  border: 1px solid var(--border, #ece6dc);
  padding: 14px 14px 14px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px -6px rgba(123, 95, 176, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.bpc-card:active { transform: scale(0.99); }

/* Cinta lateral izquierda — color por urgencia */
.bpc-card::before {
  content: '';
  position: absolute;
  top: 14px; bottom: 14px; left: 0;
  width: 3px;
  border-radius: 2px;
  background: #9b7fd4;
  transition: background-color 0.18s ease;
}
.bpc-card.urg-imminente::before { background: #4caf7d; }
.bpc-card.urg-en-curso::before { background: #f4956a; }

/* Variante "imminente" (<10min): destaque mayor */
.bpc-card.urg-imminente {
  background: linear-gradient(135deg, #4caf7d 0%, #2e7e58 100%);
  background-color: #4caf7d;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(76, 175, 125, 0.55);
}
.bpc-card.urg-imminente .bpc-titulo,
.bpc-card.urg-imminente .bpc-fecha,
.bpc-card.urg-imminente .bpc-pro-nombre { color: #fff; }
.bpc-card.urg-imminente .bpc-sub,
.bpc-card.urg-imminente .bpc-pro-rol { color: rgba(255, 255, 255, 0.85); }

/* Variante "en-curso" (sesión empezó ya): coral */
.bpc-card.urg-en-curso {
  background: linear-gradient(135deg, #f4956a 0%, #c97551 100%);
  background-color: #f4956a;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(244, 149, 106, 0.55);
}
.bpc-card.urg-en-curso .bpc-titulo,
.bpc-card.urg-en-curso .bpc-fecha,
.bpc-card.urg-en-curso .bpc-pro-nombre { color: #fff; }
.bpc-card.urg-en-curso .bpc-sub,
.bpc-card.urg-en-curso .bpc-pro-rol { color: rgba(255, 255, 255, 0.85); }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.bpc-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.bpc-icono {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(155, 127, 212, 0.14);
  color: #7a5fb0;
  flex-shrink: 0;
}
.bpc-icono i { width: 17px; height: 17px; stroke-width: 2.2; }
.bpc-card.urg-imminente .bpc-icono,
.bpc-card.urg-en-curso .bpc-icono {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.bpc-head-meta { flex: 1; min-width: 0; }
.bpc-titulo {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a5fb0;
  line-height: 1.2;
}
.bpc-sub {
  font-size: 0.72rem;
  color: var(--muted, #8a857d);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Cuerpo: fecha grande + meta ──────────────────────────────────────── */
.bpc-fecha-bloque {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.bpc-fecha {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--text, #2a2a2a);
  line-height: 1.1;
  margin: 0;
}
.bpc-hora {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7a5fb0;
  font-feature-settings: "tnum" 1;
}
.bpc-card.urg-imminente .bpc-hora,
.bpc-card.urg-en-curso .bpc-hora { color: #fff; }

/* ── Countdown ────────────────────────────────────────────────────────── */
.bpc-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(155, 127, 212, 0.10);
  color: #7a5fb0;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bpc-countdown i { width: 12px; height: 12px; stroke-width: 2.4; }
.bpc-card.urg-imminente .bpc-countdown,
.bpc-card.urg-en-curso .bpc-countdown {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── Pro chip ─────────────────────────────────────────────────────────── */
.bpc-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--border, #ece6dc);
}
.bpc-card.urg-imminente .bpc-pro,
.bpc-card.urg-en-curso .bpc-pro {
  border-top-color: rgba(255, 255, 255, 0.22);
}
.bpc-pro-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft, #f6f3ee);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
  color: #7a5fb0;
}
.bpc-pro-av img { width: 100%; height: 100%; object-fit: cover; }
.bpc-pro-meta { flex: 1; min-width: 0; }
.bpc-pro-nombre {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text, #2a2a2a);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bpc-pro-rol {
  font-size: 0.7rem;
  color: var(--muted, #8a857d);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CTA ───────────────────────────────────────────────────────────────── */
.bpc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 12px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #9b7fd4 0%, #7a5fb0 100%);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(155, 127, 212, 0.45);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.bpc-cta:active { transform: scale(0.97); }
.bpc-cta i { width: 14px; height: 14px; }

/* CTA dentro de variantes destacadas: invertir colores */
.bpc-card.urg-imminente .bpc-cta,
.bpc-card.urg-en-curso .bpc-cta {
  background: #fff;
  color: #2a2a2a;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.18);
}

/* Pulso suave en cta cuando inminente (<10min) */
@keyframes bpc-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.bpc-card.urg-imminente .bpc-cta {
  animation: bpc-pulse 1.6s ease-in-out infinite;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .bpc-card { padding: 12px 12px 12px 14px; }
  .bpc-fecha { font-size: 1.15rem; }
  .bpc-hora { font-size: 0.84rem; }
  .bpc-cta { padding: 8px 12px; font-size: 0.76rem; }
  .bpc-titulo { font-size: 0.66rem; }
}
