/* ===============================
   PASO 2 (CINTA + GRID)
   =============================== */

.paso2-container {
  width: 100%;
  min-height: calc(100vh - 90px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.paso2-wrapper {
  width: 100%;
  max-width: 1200px;
}

.paso2-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #d6dde6;
  border-radius: 14px;
  padding: 14px 18px;
  background: #fff;
  margin-bottom: 30px;
}

.paso2-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b8b8b;
  font-weight: 650;
  font-size: 16px;
}

.paso2-step.active,
.paso2-step.completed {
  color: #1b75bb;
  font-weight: 600;
}

.paso2-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d6dde6;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: #3b3b3b;
  font-size: 14px;
}

.paso2-step.active .paso2-circle,
.paso2-step.completed .paso2-circle {
  background: #1b75bb;
  color: #fff;
}

/* Ribbon / Calendario */
.cal-container {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #d6dde6;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  overflow: hidden;
}

.cal-ribbon { flex: 1; overflow-x: auto; }

.calendario-dias {
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
}

.dia-card {
  width: 98px;
  border: 1px solid #d6dde6;
  border-radius: 12px;
  padding: 11px 9px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dia-card .mes {
  font-size: 13px;
  color: #8b8b8b;
  text-transform: capitalize;
  font-weight: 400;
}

.dia-card .numero {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 4px;
  color: #2f2f2f;
}

.dia-card .dia {
  font-size: 13px;
  text-transform: capitalize;
  color: #8b8b8b;
  font-weight: 400;
}

.dia-card.active { background: #1b75bb; border-color: #1b75bb; }
.dia-card.active .mes,
.dia-card.active .numero,
.dia-card.active .dia { color: #fff; }

.dia-card.is-disabled { opacity: 0.35; cursor: default; }

/* Grid paneles */
.paso2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
}

.paso2-card {
  border: 1px solid #d6dde6;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  min-height: 300px;
  min-width: 0;
}

.prof-info { min-height: 150px; }

.card-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
  color: #2f2f2f;
  letter-spacing: 0.15px;
}

/* Contexto (solo fecha) */
.horas-context{
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.ctx-fecha{
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
}

/* Footer */
.paso2-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-reservar {
  width: 340px;
  height: 58px;
  border-radius: 14px;
  border: 2px solid #111;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.btn-reservar.is-disabled,
.btn-reservar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Flechas */
.cal-nav {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d6dde6;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cal-nav img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.cal-nav:hover { border-color: var(--primary-color); background: #f0f6fc; }
.cal-nav:hover img { opacity: 1; transform: scale(1.1); }
.cal-nav:active { transform: scale(0.95); }

/* ===============================
   HORAS DISPONIBLES (sin hachurado)
   =============================== */

.horas-grid{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  align-content: flex-start;
  padding:18px 10px;
  min-height:140px;
}

.paso2-card #horasGrid.horas-grid{ display:flex; }

.hora-btn{
  border:2px solid #1b75bb;
  background:#fff;            /* ? siempre blanco */
  color:#333;
  border-radius:10px;
  padding:12px 16px;
  min-width:86px;
  cursor:pointer;
  font-weight:500;
  font-size:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  position: relative;
}

/* Disponible */
.hora-btn.is-available{ border-color:#1b75bb; }
.hora-btn.is-available:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18,95,158,0.14);
}

/* No disponible: blanco, apagado, no accionable + candado CSS */
.hora-btn.is-unavailable{
  border-color:#bdbdbd;
  color:#9aa0a6;              /* gris suave */
  cursor:not-allowed;
  background:#fff;            /* ? blanco sin hachurado */
}
.hora-btn.is-unavailable:disabled{
  opacity: 0.65;              /* más evidente pero limpio */
}

/* cuerpo del candado */
.hora-btn.is-unavailable::before{
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 10px;
  height: 8px;
  border: 1.6px solid rgba(140,140,140,0.70);
  border-radius: 2px;
  background: rgba(255,255,255,0.0);
  box-sizing: border-box;
}

/* arco del candado */
.hora-btn.is-unavailable::after{
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 8px;
  height: 6px;
  border: 1.6px solid rgba(140,140,140,0.70);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
}

/* Seleccionada */
.hora-btn.is-selected{
  border-color:#79c000;
  background: rgba(121,192,0,0.10); /* suave */
  box-shadow: 0 0 0 3px rgba(121,192,0,0.12);
  font-weight:600;
}

/* Leyenda */
.horas-legend{
  display:flex;
  gap:18px;
  justify-content:center;
  padding:12px 0 0 0;
  color:#6b7178;
  font-size:15px;
  font-weight: 400;
}

.legend-item{ display:flex; align-items:center; gap:8px; }
.legend-dot{ width:14px; height:14px; border-radius:50%; display:inline-block; }
.dot-selected{ background:#79c000; }
.dot-available{ background:#1b75bb; }
.dot-unavailable{ background:#bdbdbd; }

.horas-loading, .horas-empty, .horas-error{
  width:100%;
  text-align:center;
  color:#6b7178;
  padding:12px 0;
  font-size:15px;
  font-weight: 400;
}

.horas-error{ color:#b00020; }

@media (max-width: 900px){
  .paso2-grid{ grid-template-columns: 1fr; }
  .btn-reservar{ width: 100%; max-width: 420px; }
}