.info-section {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-section h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.info-section p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

#sesiones-container {
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

.unidad-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.unidad-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.unidad-header {
  background: #f8f9fa;
  color: #333;
  padding: 1rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
}

.unidad-content {
  padding: 1.5rem;
}

.info-unidad {
  background: #e8f4f8;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.info-unidad p {
  margin: 0.25rem 0;
  color: #0c5460;
}

.info-unidad strong {
  color: #0a4a54;
}

.sesiones-unidad {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sesion-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sesion-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sesion-header {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sesion-numero {
  background: #1976d2;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.sesion-content {
  padding: 1.5rem;
}

.sesion-content .form-row {
  margin-bottom: 1rem;
}

.sesion-content .form-row:last-child {
  margin-bottom: 0;
}

.sesion-content label {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 13px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sesion-content input,
.sesion-content textarea,
.sesion-content select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.sesion-content input:focus,
.sesion-content textarea:focus,
.sesion-content select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.sesion-content textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.sesion-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sesion-fields-full {
  grid-column: 1 / -1;
}

.duracion-input {
  max-width: 120px;
}

.metodologia-select {
  max-width: 200px;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #545b62;
  border-color: #545b62;
}

.mensaje {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 1rem 0;
  font-weight: 500;
  display: none;
}

.mensaje.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mensaje.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mensaje-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.mensaje-info h3 {
  margin: 0 0 1rem 0;
  color: #0c5460;
}

.mensaje-info p {
  margin: 0 0 1.5rem 0;
  color: #0c5460;
}

.mensaje-info .btn {
  margin: 0;
}

@media (max-width: 768px) {
  .sesion-fields-grid {
    grid-template-columns: 1fr;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .unidad-content {
    padding: 1rem;
  }
  
  .sesion-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 1rem;
  }
  
  .sesion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .sesion-numero {
    align-self: flex-start;
  }
}

.sesion-item {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
