.dynamic-schedule {
  background-color: transparent;
  padding: 100px 0 60px; 
  color: #d91c68;
}

.calendar-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* =========================================
   EFECTO LUZ DE NEÓN EN MOVIMIENTO
   ========================================= */
.neon-calendar-wrapper {
  position: relative;
  width: 100%;
  
  max-width: 400px;
  border-radius: 24px;
  overflow: hidden;
  /* Relieve base */
  box-shadow: 10px 10px 20px var(--relief-dark), -10px -10px 20px var(--relief-light);
}

/* La luz giratoria */
.neon-calendar-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent, transparent, transparent, var(--neon-glow));
  animation: rotateNeon 4s linear infinite;
  z-index: 0;
}

/* La "tapa" del calendario para ocultar el centro del gradiente */
.calendar-inner {
  position: relative;
  background: #181818;
  margin: 3px; /* Grosor de la línea de neón */
  border-radius: 22px;
  padding: 25px;
  z-index: 1;
}

@keyframes rotateNeon {
  100% { transform: rotate(360deg); }
}

/* =========================================
   ESTILOS INTERNOS DEL CALENDARIO
   ========================================= */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--metallic-pink); }
.nav-btn { background: none; border: none; color: var(--metallic-pink); font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.nav-btn:hover { color: var(--neon-glow); text-shadow: 0 0 10px var(--neon-glow); }

.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: #777; font-size: 0.85rem; margin-bottom: 10px; }
.calendar-dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }

/* Botones de los días con relieve (Neumorfismo) */
.date-cell {
  position: relative; /* fusionado: regla duplicada más abajo solo agregaba esto */
  aspect-ratio: 1;
  display: flex; justify-content: center; align-items: center;
  border-radius: 50%; cursor: pointer;
  background: linear-gradient(145deg, #1f1f1f, #151515);
  box-shadow: 3px 3px 6px var(--relief-dark), -2px -2px 5px rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  color: #ccc;
  font-weight: 500;
}

.date-cell:hover, .date-cell.active {
  background: var(--metallic-pink);
  color: #121212; /* Texto oscuro para que resalte elegante */
  font-weight: bold;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3), 0 0 15px var(--neon-glow);
}

.date-cell.disabled { opacity: 0.2; pointer-events: none; }

/* =========================================
   PANEL DE CLASES DINÁMICAS
   ========================================= */
.classes-panel {
  width: 100%;
  max-width: 400px;
}

.panel-relief {
  background: #181818;
 
  border-radius: 20px;
  padding: 25px;
  border-left: 2px solid var(--metallic-pink);
  box-shadow: 6px 6px 15px var(--relief-dark), -6px -6px 15px var(--relief-light);
}

.panel-relief h4 { color: var(--metallic-pink); margin-bottom: 20px; border-bottom: 1px solid rgba(212, 165, 178, 0.2); padding-bottom: 10px;}

.class-slot {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px; margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
}

.class-slot:hover {
  border-color: var(--metallic-pink);
  background: rgba(212, 165, 178, 0.05); /* Fondo apenas rosado al pasar el mouse */
  transform: translateX(5px);
}

.class-info strong { display: block; color: #fff; font-size: 1.1rem; }
.class-info span { color: #aaa; font-size: 0.85rem; }

.book-btn {
  background: transparent;
  color: var(--metallic-pink);
  border: 1px solid var(--metallic-pink);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: 0.3s;
  font-weight: bold; font-size: 0.8rem; text-transform: uppercase;
}

.book-btn:hover { background: var(--metallic-pink); color: #000; box-shadow: 0 0 15px var(--metallic-pink); }

.feriado-badge {
    display: block;
    width: 6px;
    height: 6px;
    background: #EF9F27;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}



.feriado-tooltip {
    visibility: hidden;
    opacity: 0;
    background: #2a2a2a;
    color: #fff;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.feriado-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2a2a2a;
}

.date-cell:hover .feriado-tooltip,
.date-cell:focus .feriado-tooltip {
    visibility: visible;
    opacity: 1;
}


/* Modal de confirmación centrado */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    animation: fadeIn 0.25s ease;
}
.confirm-modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 28px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
    animation: scaleUp 0.3s ease;
}
.confirm-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}
.confirm-modal-close:hover { color: #333; }
.confirm-modal-icon {
    font-size: 52px;
    margin-bottom: 16px;
}
.confirm-modal-box p {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }