.checklist-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f6fa;
  border-radius: 0.7rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--azul);
  transition: background 0.2s;
}

.checklist-item:hover {
  background: #e6e6f7;
}

/* Header del progreso */
.progreso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-modo-edicion {
  background: var(--morado);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 161, 227, 0.3);
}

.btn-modo-edicion:hover {
  background: var(--azul);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 161, 227, 0.4);
}

.btn-modo-edicion.activo {
  background: var(--azul);
  box-shadow: 0 0 0 3px var(--morado);
}

/* Botones de edición */
.btn-editar {
  background: var(--azul);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.btn-editar:hover {
  background: var(--morado);
  transform: scale(1.05);
}

.btn-eliminar {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.btn-eliminar:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.btn-agregar {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.btn-agregar:hover {
  background: #059669;
  transform: scale(1.05);
}

/* Modal de edición */
.modal-edicion {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 28, 39, 0.85);
  align-items: center;
  justify-content: center;
}

.modal-edicion-content {
  background: #23263a;
  padding: 2.2rem 2rem 1.5rem 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px #0008;
  max-width: 98vw;
  width: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-edicion-content h3 {
  text-align: center;
  color: #b8a1e3;
  margin-bottom: 0.7rem;
}

.btn-cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #b8a1e3;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-cerrar-modal:hover {
  color: #ef4444;
}

/* Formularios de edición */
.form-edicion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-edicion label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
}

.form-edicion input,
.form-edicion textarea,
.form-edicion select {
  padding: 0.8rem;
  border: 2px solid #3c405c;
  border-radius: 0.5rem;
  background: #2d3147;
  color: #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-edicion input:focus,
.form-edicion textarea:focus,
.form-edicion select:focus {
  outline: none;
  border-color: var(--morado);
}

.form-edicion textarea {
  resize: vertical;
  min-height: 80px;
}

/* Lista de temas editables */
.lista-temas-editable {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #3c405c;
  border-radius: 0.5rem;
  padding: 1rem;
  background: #2d3147;
}

.tema-editable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #1f2937;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #3c405c;
}

.tema-editable:last-child {
  margin-bottom: 0;
}

.tema-editable .tema-info {
  flex: 1;
}

.tema-editable .tema-titulo {
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.2rem;
}

.tema-editable .tema-descripcion {
  font-size: 0.9rem;
  color: #9ca3af;
}

.tema-editable .tema-controls {
  display: flex;
  gap: 0.5rem;
}

/* Configuración de simulacros */
.config-simulacros {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #1f2937;
  border-radius: 0.5rem;
  border: 1px solid #3c405c;
}

.config-simulacros label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
}

.config-simulacros input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 2px solid #3c405c;
  border-radius: 0.5rem;
  background: #2d3147;
  color: #e0e0e0;
  text-align: center;
}

/* Botones de acción del modal */
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #3c405c;
}

.btn-guardar {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-guardar:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-cancelar {
  background: #6b7280;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancelar:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

/* Indicador de modo edición */
.modo-edicion-indicator {
  display: none;
  background: var(--azul);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Tooltip styles */
.checklist-item[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 125%;
  padding: 0.5rem 0.8rem;
  background-color: #333;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 1;
}
.checklist-item[title]:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 1;
}

/* Simulacro Tracker */
.simulacro-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}
.simulacro-titulo {
  font-weight: 500;
}
.simulacro-barra {
  display: flex;
  gap: 0.4rem;
}
.simulacro-punto {
  width: 20px;
  height: 20px;
  border: 2px solid var(--morado);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.simulacro-punto:hover {
    transform: scale(1.1);
}
.simulacro-punto.completado {
  background-color: var(--morado);
}

/* MODO OSCURO */
body.modo-oscuro .checklist-item {
  background: #2d3147 !important;
  color: #e0e0e0 !important;
}
body.modo-oscuro .simulacro-punto {
  border-color: #b8a1e3;
}
body.modo-oscuro .simulacro-punto.completado {
  background-color: #b8a1e3;
}
body.modo-oscuro .checklist-item[title]:hover::after {
  background-color: #e0e0e0;
  color: #181c27;
}
body.modo-oscuro .checklist-item[title]:hover::before {
    border-color: #e0e0e0 transparent transparent transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .progreso-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .btn-modo-edicion {
    align-self: center;
  }
  
  .modal-edicion-content {
    width: 95vw;
    margin: 1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* Información de progreso */
.progreso-info {
  text-align: center;
  margin: 1rem 0;
  padding: 0.5rem;
  background: rgba(184, 161, 227, 0.1);
  border-radius: 0.5rem;
}

.progreso-texto {
  font-size: 0.9rem;
  color: var(--morado);
  font-weight: 600;
}

/* MODO OSCURO */
body.modo-oscuro .progreso-info {
  background: rgba(184, 161, 227, 0.15);
}

body.modo-oscuro .progreso-texto {
  color: #b8a1e3;
}

/* Responsive para progreso-info */
@media (max-width: 768px) {
  .progreso-info {
    margin: 0.5rem 0;
    padding: 0.3rem;
  }
  
  .progreso-texto {
    font-size: 0.8rem;
  }
} 