/* =========================================
   ESTILOS DEL PLAN DE LECTURA (plan_detalles)
   ========================================= */

.plan-header {
  padding-bottom: 50px;
}
.plan-header-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* Tarjeta de Progreso General */
.progress-card {
  background-color: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 0 24px 24px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-20px); /* Para solaparlo un poco con el header */
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-header h3 {
  font-size: 1.2rem;
  color: var(--color-text-main);
}
.progress-percentage {
  font-weight: 700;
  color: var(--color-blue);
  font-size: 1.2rem;
}
.progress-bar-bg {
  background-color: var(--color-border);
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  background-color: var(--color-blue);
  height: 100%;
  width: 31%; /* Porcentaje de ejemplo */
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.progress-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Tarjeta de Interruptor de Notificaciones */
.notification-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-surface);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  margin: 0 24px 24px;
  box-shadow: var(--shadow-sm);
}
.notification-info h4 {
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 4px;
}
.notification-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* El Interruptor (Toggle Switch) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--color-border);
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider {
  background-color: var(--color-blue);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

/* Lista de Lectura del Día */
.reading-section {
  padding: 0 24px;
}
.reading-section h2 {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 16px;
}
.reading-item {
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.reading-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 16px;
  accent-color: var(--color-blue);
  cursor: pointer;
}
.reading-item label {
  flex-grow: 1;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  transition: color 0.2s;
}
/* Efecto al marcar como leído */
.reading-item.completed {
  opacity: 0.6;
}
.reading-item.completed label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}