:root {
  --brand: #a82525;
  --brand-dark: #880404;
  /* fondo suave */
  --video-accent: #a82525;
  /* acento (puedes ajustarlo) */
  --video-border: rgba(2, 117, 120, 0.18);
  /* borde sutil */
  --video-text-sub: #880404;
  /* texto secundario */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: grid;
  grid-template-areas:
    "sidebar navbar"
    "sidebar main";
  grid-template-columns: 280px 1fr;
  grid-template-rows: 70px 1fr;
  height: 100vh;
  background-color: #faf5f5;
  color: #333;
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: linear-gradient(135deg, #880404, #a82525);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 10px;
}

.sidebar-header h3 {
  font-size: 1.3rem;
  margin-top: 10px;
  color: white;
}

.sidebar-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  overflow-y: auto;
}

.main-menu {
  list-style: none;
  flex: 1;
}

.menu-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left-color: white;
}

.menu-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-menu h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.course-list {
  list-style: none;
}

.course-item {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.course-item.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.course-item i {
  width: 20px;
  text-align: center;
}

.no-items {
  color: black;
  font-style: italic;
  padding: 10px 15px;
}

.btn-secondary {
  margin-top: 10px;
}

.btn-export {
  margin-top: 10px;
}

/* Navbar */
.navbar {
  grid-area: navbar;
  background-color: white;
  display: flex;
  align-items: center;
  padding: 0 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 30px;
}

.logo i {
  font-size: 1.5rem;
  color: #a82525;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #880404;
}

/* Main Content */
.main-content {
  grid-area: main;
  padding: 25px;
  overflow-y: auto;
  background-color: #faf5f5;
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #faf0f0;
  margin-bottom: 25px;
}

section {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f4b3b3;
}

section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  margin-bottom: 20px;
  color: #880404;
  border-bottom: 2px solid #ca6c6c;
  padding-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
  background: #fdf5f5;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #f4b3b3;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row label {
  min-width: 120px;
  font-weight: 500;
  color: #880404;
}

input,
textarea,
select {
  padding: 12px;
  border: 1px solid #f4b3b3;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s;
  width: 100%;
  background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #a82525;
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 37, 37, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  padding: 12px 24px;
  background-color: #a82525;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  font-weight: 500;
  letter-spacing: 0.5px;
}

button:hover {
  background-color: #880404;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #a82525;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid #f4b3b3;
}

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #880404;
}

.item h3 {
  margin-bottom: 10px;
  color: #880404;
  font-size: 1.2rem;
  font-weight: 600;
}

.item p {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.5;
}

.item-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.item-actions button {
  padding: 8px 16px;
  font-size: 14px;
}

.edit-btn {
  background-color: #af8787;
}

.edit-btn:hover {
  background-color: #ca6c6c;
}

.delete-btn {
  background-color: #d53c3c;
}

.delete-btn:hover {
  background-color: #a82525;
}

.back-btn {
  background-color: #ca6c6c;
  margin-bottom: 15px;
}

.back-btn:hover {
  background-color: #a82525;
}

/* Vista detalle de curso */
.curso-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f4b3b3;
}

.curso-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid #f4b3b3;
  padding-bottom: 10px;
}

.curso-nav button {
  background-color: transparent;
  color: #a82525;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s;
}

.curso-nav button:hover {
  background-color: rgba(168, 37, 37, 0.1);
  color: #880404;
}

.curso-nav button.active {
  border-bottom-color: #a82525;
  font-weight: 600;
  color: #880404;
}

.curso-seccion {
  display: none;
}

.curso-seccion.active {
  display: block;
}

.completada {
  opacity: 0.8;
  background-color: #fff4f0;
  border-left-color: #ca6c6c;
}

/* File upload */
.file-upload {
  margin: 15px 0;
}

.file-upload label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #880404;
}

.files-preview {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-preview {
  background: #ece9e9;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-preview i {
  color: #d53c3c;
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  color: white;
}

.badge-publico {
  background-color: #ca6c6c;
  color: white;
}

.badge-privado {
  background-color: #d53c3c;
  color: white;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s;
  border: 1px solid #f4b3b3;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  color: #af8787;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #880404;
}

/* Markdown preview */
.markdown-preview {
  padding: 15px;
  margin-top: 10px;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stats-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #a82525;
  transition: all 0.3s;
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-card h3 {
  color: #880404;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.stats-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: #a82525;
  margin-bottom: 5px;
}

.stats-card .label {
  color: #666;
  font-size: 0.9rem;
}

.recent-activity {
  grid-column: span 2;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.recent-activity h3 {
  color: #880404;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f4b3b3;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #faf0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fbecec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #a82525;
  font-size: 1.2rem;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 3px;
}

.activity-date {
  color: #777;
  font-size: 0.85rem;
}

.course-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid #f4b3b3;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reemplaza el estilo .honeycomb-pattern y .course-header con esto: */
.course-header {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.course-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 60px 60px;
  opacity: 0.3;
}

.course-header .header-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.course-card:hover .course-header::before {
  background-size: 70px 70px;
  animation: honeycombMove 2s linear infinite;
}

/* Estilos para iconos de archivos */
.file-icon {
  margin-right: 5px;
  font-size: 1.2em;
  color: #a82525;
}

.enlace-item {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.enlace-preview {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.enlace-preview a {
  display: flex;
  align-items: center;
}

@keyframes honeycombMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 30px;
  }
}

.course-body {
  padding: 15px;
}

.course-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #880404;
  margin-bottom: 5px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.course-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.course-actions button {
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    grid-template-areas:
      "navbar"
      "main";
    grid-template-columns: 1fr;
    grid-template-rows: 70px 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 15px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row label {
    margin-bottom: 5px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px 15px;
  }

  .recent-activity {
    grid-column: span 1;
  }
}

/* Sidebar */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
}

.sidebar-header .logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

/* Navbar */
.logo-navbar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

/* Auth Modal Styles */
.auth-modal {
  padding: 20px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #f4b3b3;
}

.auth-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  position: relative;
}

.auth-tab.active {
  color: #880404;
  font-weight: 500;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #a82525;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #880404;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #f4b3b3;
  border-radius: 4px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background-color: #a82525;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.auth-submit:hover {
  background-color: #880404;
}

/* User info styles */
.auth-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: white;
  font-weight: 500;
  text-align: center;
  text-transform: capitalize;
}

.user-info::before {
  content: "\f007";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  /* Necesario para los íconos sólidos */
  color: white;
  margin-right: 5px;
}

.auth-btn {
  width: 80%;
  margin-left: 25px;
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Estilos para roles */
.role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
}

.role-student {
  background-color: #db3434;
  color: white;
}

.role-teacher {
  background-color: #cc2e2e;
  color: white;
}

.role-admin {
  background-color: #5e3434;
  color: white;
}

#admin-panel {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #faf0f0;
  margin-bottom: 25px;
}

/* Estilos para el selector de roles */
#admin-user-role {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #f4b3b3;
  flex: 1;
}

/* Estilos para los items de archivo */
.archivo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fcf8f8;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid #f0e2e2;
}

.archivo-info {
  flex: 1;
  min-width: 0;
}

.archivo-nombre {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #2d3748;
}

.archivo-tamaño {
  font-size: 0.8rem;
  color: #718096;
}

.download-btn {
  background-color: #a82525;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.download-btn:hover {
  background-color: #880404;
  transform: translateY(-1px);
}

.download-btn i {
  font-size: 0.9rem;
}

/* En style.css */
.welcome-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Cambiado de center a flex-start */
  padding: 40px 20px;
  background-color: #faf5f5;
  width: 100%;
  min-height: auto;
  /* Eliminamos la altura mínima fija */
}

.welcome-content {
  max-width: 1200px;
  /* Aumentamos el ancho máximo */
  width: 100%;
  /* Ocupa todo el ancho disponible hasta el máximo */
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  /* Margen solo arriba y abajo */
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Tarjetas más anchas */
  gap: 30px;
  margin: 40px 0;
}

/* Opcional: Ajustar el contenido para pantallas muy grandes */
@media (min-width: 1400px) {
  .welcome-content {
    padding: 60px;
  }

  .feature {
    padding: 30px;
  }
}

.welcome-content h1 {
  color: #a82525;
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.welcome-content p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature {
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2.5rem;
  color: #a82525;
  margin-bottom: 15px;
}

.feature h3 {
  color: #880404;
  margin-bottom: 10px;
}

.feature p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.welcome-btn {
  background: #a82525;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.welcome-btn:hover {
  background: #8a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-note {
  margin-top: 20px;
  color: #666;
}

.welcome-note a {
  color: #a82525;
  text-decoration: none;
  font-weight: 500;
}

.welcome-note a:hover {
  text-decoration: underline;
}

/* Ocultar contenido principal cuando se muestra la bienvenida */
body:not(.logged-in) .container {
  display: none;
}

body.logged-in #welcome-section {
  display: none;
}

/* Estilos para el calendario */
#calendar {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para videochat */
.videochat-container {
  padding: 20px;
  text-align: center;
}

.reunion-item {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reunion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-primary {
  margin-bottom: 10px;
}

/* Estilos para calificaciones */
.grades-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

/* Estilos para la sección de participantes */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.participant-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0e2e2;
  transition: all 0.3s;
}

.participant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.participant-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.participant-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a82525;
  font-size: 1.8rem;
}

.participant-header h4 {
  color: #880404;
  margin: 0;
}

.participant-info {
  margin-bottom: 15px;
}

.participant-info p {
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-actions {
  display: flex;
  justify-content: flex-end;
}

.participant-actions button {
  padding: 8px 16px;
  background-color: #a82525;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.participant-actions button:hover {
  background-color: #880404;
}

/* Estilos para archivos */
.archivos-container {
  margin: 15px 0;
}

.archivos-list,
.archivos-existente {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.archivo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.9rem;
}

.archivo-item a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a82525;
  text-decoration: none;
}

.archivo-item a:hover {
  text-decoration: underline;
}

.archivo-item .remove-file {
  color: #c73c3c;
  cursor: pointer;
  margin-left: 8px;
}

.files-preview {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #faf0f0;
  border-radius: 4px;
  font-size: 0.9rem;
}

.file-preview .remove-file {
  color: #c73c3c;
  cursor: pointer;
  margin-left: auto;
}

.archivo-nombre {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archivo-tamaño {
  color: #666;
  font-size: 0.8rem;
}

/* En style.css */
.curso-presentacion {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.curso-presentacion:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.curso-portada {
  padding: 40px 20px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, var(--curso-color), var(--curso-color-oscuro));
  position: relative;
  overflow: hidden;
}

.curso-portada h2 {
  padding: 0;
  font-size: 2rem;
  margin-bottom: 15px;
  color: white;
  border-bottom: none;
}

.curso-portada p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.curso-detalles {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  background: #faf5f5;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--curso-color);
}

.curso-objetivos,
.curso-requisitos {
  background: #faf5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.curso-objetivos h3,
.curso-requisitos h3 {
  color: var(--curso-color);
  border-bottom: 2px solid var(--curso-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .curso-detalles {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Añadir al final del archivo CSS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--curso-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.btn-edit-small {
  padding: 3px 7px;
  background-color: #ca6c6c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.btn-edit-small:hover {
  background-color: #a82525;
}

.edit-form-container {
  margin-top: 15px;
}

.edit-form-container textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  border: 1px solid #f4b3b3;
  border-radius: 6px;
  margin-bottom: 10px;
}

.edit-form-actions {
  display: flex;
  gap: 10px;
}

.edit-form-actions button {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Estilos para la edición de objetivos/requisitos */
.edit-form-container {
  margin-top: 15px;
}

.edit-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #f4b3b3;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 15px;
  resize: vertical;
}

.edit-form-actions {
  display: flex;
  gap: 10px;
}

/* Estilos para las notificaciones */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 6px;
  color: white;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.toast.success {
  background-color: #c72e2e;
}

.toast.error {
  background-color: #c73c3c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para enlaces */
.enlaces-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.enlaces-input-container input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #f4b3b3;
  border-radius: 4px;
}

.add-enlace-btn {
  background-color: #a82525;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.add-enlace-btn:hover {
  background-color: #880404;
}

.enlaces-preview {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enlace-preview {
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enlace-preview a {
  color: #a82525;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.enlace-preview a:hover {
  text-decoration: underline;
}

.remove-enlace {
  color: #c73c3c;
  cursor: pointer;
  margin-left: 10px;
}

.enlaces-container {
  margin: 15px 0;
}

.enlaces-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.enlace-item {
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.enlace-item a {
  color: #a82525;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.enlace-item a:hover {
  text-decoration: underline;
}

.entrega-detalle-modal,
.editar-entrega-modal,
.entregas-tarea-modal,
.calificacion-form-modal {
  max-width: 800px;
  background: white;
  border-radius: 10px;
  padding: 25px;
}

.entrega-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #db3434;
}

.entrega-item.calificada {
  border-left-color: #cc2e2e;
}

.entrega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.entrega-estudiante {
  font-weight: 600;
}

.entrega-fecha {
  color: #666;
  font-size: 0.9rem;
}

.enlace-trabajo {
  word-break: break-all;
  color: #a82525;
  text-decoration: none;
}

.enlace-trabajo:hover {
  text-decoration: underline;
}

.comentario-estudiante,
.comentario-calificador {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.calificacion-info {
  background: #faf8f8;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #f38c12;
}

.entrega-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-ver-entrega {
  background: #db3434;
  color: white;
}

.btn-editar-entrega {
  background: #f38c12;
  color: white;
}

.btn-calificar {
  background: #cc2e2e;
  color: white;
}

.btn-detalle {
  background: #b65959;
  color: white;
}

.no-calificacion {
  color: #666;
  font-style: italic;
}

.lista-entregas {
  max-height: 60vh;
  overflow-y: auto;
  margin: 20px 0;
}

.role-assistant {
  background-color: #f38c12;
  /* Color naranja para asistentes */
}

/* Estilos para los controles de búsqueda y filtro */
.participants-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.search-box {
  flex: 2;
  position: relative;
  max-width: 800px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.search-box input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.search-box input:focus {
  outline: none;
  border-color: #a82525;
}

#participant-role-filter {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background-color: white;
  min-width: 100px;
  flex: 1;
}

#participant-role-filter:focus {
  outline: none;
  border-color: #a82525;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 250px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tipos de mensaje */
.toast.success {
  background-color: #a72828;
  /* Verde */
  border-left: 4px solid #882121;
}

.toast.error {
  background-color: #c73535;
  /* Rojo */
  border-left: 4px solid #a82323;
}

.toast.warning {
  background-color: #ffb107;
  /* Amarillo/naranja */
  color: #212529;
  border-left: 4px solid #e0a000;
}

.toast.info {
  background-color: #a82b17;
  /* Azul */
  border-left: 4px solid #961713;
}

/* Estilos para el módulo de asistencia */
.asistencia-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.asistencia-controls .filtros {
  display: flex;
  gap: 10px;
}

.asistencia-controls select,
.asistencia-controls input {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Colores para los iconos de asistencia */
.text-success {
  color: #28a728;
}

.text-danger {
  color: #dc3535;
}

.text-warning {
  color: #ffb107;
}

.text-info {
  color: #a82b17;
}

/* Tamaño y alineación de los iconos */
.asistencia-table td i {
  font-size: 1.2em;
  vertical-align: middle;
}

/* Efecto hover para los iconos */
.asistencia-table td i:hover {
  transform: scale(1.2);
  transition: transform 0.2s;
}

.clases-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.clase-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--curso-color, #a82525);
}

.clase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.clase-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.badge.curso-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: white;
}

.clase-meta {
  margin-bottom: 15px;
}

.clase-meta p {
  margin: 5px 0;
  color: #555;
}

.clase-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.wide-modal {
  max-width: 800px;
}

.asistencia-table-container {
  max-height: 500px;
  overflow-y: auto;
  margin: 20px 0;
}

.asistencia-table {
  width: 100%;
  border-collapse: collapse;
}

.asistencia-table th,
.asistencia-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.asistencia-table th {
  background-color: #880404;
  font-weight: 600;
}

.asistencia-table tr:hover {
  background-color: #f9f9f9;
}

.estado-asistencia {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  min-width: 120px;
}

.observaciones-asistencia {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  width: 100%;
}

.estadisticas-asistencia {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.stat-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--curso-color, #a82525);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Agrega esto a tu sección de estilos */
.participant-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.participant-card:hover {
  transform: translateY(-3px);
}

.participant-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #666;
}

.participant-info {
  margin-bottom: 10px;
}

.participant-actions {
  display: flex;
  gap: 8px;
}

.participant-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.cursos-inscritos {
  margin-top: 10px;
  font-size: 0.9rem;
}

.cursos-inscritos ul {
  margin: 5px 0 0 0;
  padding-left: 20px;
}

.cursos-inscritos li {
  position: relative;
  margin-bottom: 3px;
}

.remove-inscripcion {
  color: #c73c3c;
  cursor: pointer;
  margin-left: 5px;
  font-size: 0.8rem;
}

.remove-inscripcion:hover {
  opacity: 0.8;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.participants-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-box input {
  width: 100%;
  padding: 8px 10px 8px 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.wide-modal {
  max-width: 800px;
}

.asistencia-table-container {
  max-height: 500px;
  overflow-y: auto;
  margin: 15px 0;
}

.asistencia-table {
  width: 100%;
  border-collapse: collapse;
}

.asistencia-table th,
.asistencia-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.asistencia-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.asistencia-table tr:hover {
  background-color: #f9f9f9;
}

.estado-asistencia {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.observaciones-asistencia {
  width: 100%;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Estilos generales para modales y formularios */
.auth-modal {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  color: white;
}

.auth-tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.auth-tab:hover {
  color: white;
  background: #a82525 !important;
}

.auth-tab.active {
  background: #a82525;
  color: white;
}

.auth-form {
  padding: 25px;
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #a82525;
  outline: none;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: #a82525;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-submit:hover {
  background: #8a1a1a;
}

/* Estilos para tarjetas de cursos */
.course-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.course-header {
  height: 120px;
  position: relative;
  background: linear-gradient(135deg, #a82525, #8a1a1a);
}

.course-body {
  padding: 20px;
}

.course-title {
  margin: 0 0 10px;
  color: #333;
  font-size: 1.4rem;
}

.course-description {
  color: #666;
  margin: 0 0 15px;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.course-stats {
  margin-left: auto;
}

.course-actions {
  display: flex;
  gap: 10px;
}

.btn-entrar,
.btn-edit,
.btn-delete {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-entrar {
  background: #a82525;
  color: white;
}

/* Estilos para items de guías, tareas y cápsulas */
.item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #a82525;
}

.item.completada {
  opacity: 0.8;
  border-left-color: #cc2e2e;
}

.item h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 1.2rem;
}

.meta-info {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 15px;
}

.markdown-preview {
  line-height: 1.6;
  margin-bottom: 15px;
}

.item-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.edit-btn,
.delete-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-left: 8px;
}

.badge-publico {
  background: #cc2e2e;
}

.badge-privado {
  background: #c73c3c;
}

.badge-owner {
  background: #e5be01;
  color: black;
}

.badge-inactivo {
  background: #a69595;
}

.badge-puntos {
  background: #a82525;
}

/* Enlaces */
.enlaces-container {
  margin: 15px 0;
}

.enlaces-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.enlace-item {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.enlace-item a {
  color: #a82525;
  text-decoration: none;
}

.enlace-item a:hover {
  text-decoration: underline;
}

/* Formularios de edición */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row label {
  min-width: 100px;
}

/* Enlaces temporales */
.enlace-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.enlace-input-group input {
  flex: 1;
  padding: 8px 12px;
}

.add-enlace-btn {
  background: #a82525;
  color: white;
  border: none;
  border-radius: 4px;
  width: 40px;
  cursor: pointer;
}

.enlaces-preview {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enlace-preview {
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enlace-preview a {
  color: #a82525;
  text-decoration: none;
}

.remove-enlace {
  color: #c73c3c;
  cursor: pointer;
}

/* Mensajes cuando no hay contenido */
.no-items {
  text-align: center;
  padding: 30px;
  color: black;
  font-style: italic;
}

/* Estilos para el modal de avisos */
.avisos-modal {
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#avisosBtn {
  position: relative;
}

.avisos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.avisos-header h2 {
  margin: 0;
  color: #a82525;
}

.avisos-container {
  margin-top: 20px;
}

.aviso-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #a82525;
}

.aviso-header {
  margin-bottom: 10px;
}

.aviso-header h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.aviso-fecha {
  color: #666;
  font-size: 0.85em;
}

.aviso-contenido {
  line-height: 1.6;
  margin-bottom: 10px;
}

.aviso-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Estilos para el navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #a82525;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a i {
  margin-right: 5px;
}

.badge-notificacion {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #c73c3c;
  color: white;
  border-radius: 50%;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: bold;
}

/* Estilo para avisos no leídos */
.aviso-item.no-leido {
  border-left: 4px solid #db3434;
  background-color: #faf8f8;
}

.badge-nuevo {
  background-color: #db3434;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 10px;
}

/* Estilos responsivos adicionales */
@media (max-width: 1024px) {

  /* Ajustes para tablets */
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .participants-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .curso-detalles {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content {
    width: 85%;
    margin: 10% auto;
  }
}

@media (max-width: 768px) {

  /* Ajustes para tablets pequeñas y móviles grandes */
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row label {
    margin-bottom: 8px;
    min-width: auto;
  }

  .item-actions,
  .course-actions,
  .participant-actions {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .curso-nav {
    flex-wrap: wrap;
  }

  .curso-nav button {
    flex: 1 0 120px;
    text-align: center;
  }

  .enlaces-input-container {
    flex-direction: column;
  }

  .add-enlace-btn {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 576px) {

  /* Ajustes para móviles */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .participants-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .curso-header {
    height: 100px;
  }

  .curso-portada h2 {
    font-size: 1.5rem;
  }

  .curso-portada p {
    font-size: 1rem;
  }

  .participants-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box,
  #participant-role-filter {
    width: 100%;
  }

  .navbar {
    padding: 10px 15px;
  }

  .nav-links {
    gap: 10px;
  }

  .welcome-features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 15px;
  }

  .aviso-item {
    padding: 12px;
  }

  .aviso-actions {
    flex-direction: column;
    gap: 8px;
  }

  .aviso-actions button {
    width: 100%;
  }
}

@media (max-width: 400px) {

  /* Ajustes para móviles muy pequeños */
  .sidebar {
    width: 100%;
    position: fixed;
    z-index: 1000;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
  }

  .sidebar.active {
    display: flex;
  }

  .menu-item,
  .course-item {
    padding: 10px 15px;
  }

  .main-content {
    padding: 15px 10px;
  }

  .container,
  section {
    padding: 15px;
  }

  h2 {
    font-size: 1.3rem;
  }

  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .auth-modal {
    padding: 15px;
  }

  .auth-tab {
    padding: 10px;
    font-size: 14px;
  }

  .form-group input {
    padding: 10px 12px;
  }
}

/* Estilos para el menú hamburguesa en móviles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #880404;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    color: #333;
  }
}

/* Ajustes para elementos específicos en pantallas pequeñas */
@media (max-width: 480px) {
  .curso-seccion {
    padding: 15px 10px;
  }

  .item {
    padding: 15px;
  }

  .markdown-preview {
    padding: 10px;
  }

  .file-upload label {
    font-size: 14px;
  }

  .file-preview {
    font-size: 13px;
    padding: 5px 8px;
  }

  .toast {
    max-width: 90%;
    left: 5%;
    right: 5%;
    bottom: 10px;
  }
}

/* Ajustes para orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    max-height: 70vh;
  }

  .main-content {
    padding: 10px;
  }

  .modal-content {
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Estilos para las nuevas secciones */
.content-section {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f4b3b3;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.section-header i {
  padding: 5px;
}

/* Estilos para el Centro de Ayuda */
.faq-container {
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #f4b3b3;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.faq-question {
  width: 100%;
  padding: 15px;
  text-align: left;
  background-color: #faf5f5;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #880404;
  transition: all 0.3s;
}

.faq-question:hover {
  background-color: #fbeeee;
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  line-height: 1.6;
  color: #555;
}

.faq-answer.show {
  padding: 15px;
  max-height: 500px;
}

.soporte-container ul {
  list-style-type: none;
  padding: 0;
}

.soporte-container li {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.3s;
}

.soporte-container li:hover {
  background-color: #faf5f5;
}

.soporte-container i {
  width: 30px;
  margin-right: 15px;
  color: #a82525;
  font-size: 1.2rem;
  text-align: center;
}

/* Estilos para Noticias */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.noticia-card {
  border: 1px solid #f4b3b3;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  background-color: #fff;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #880404;
}

.noticia-header {
  margin-bottom: 15px;
}

.noticia-header h3 {
  color: #880404;
  margin-bottom: 5px;
}

.noticia-fecha {
  font-size: 0.85rem;
  color: #666;
}

.noticia-enlace {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #a82525;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.noticia-enlace:hover {
  background-color: #880404;
  text-decoration: none;
}

/* Estilos para Recursos */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.recurso-card {
  border: 1px solid #f4b3b3;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recurso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recurso-icon {
  font-size: 2.5rem;
  color: #a82525;
  margin-bottom: 20px;
}

.recurso-card h3 {
  color: #880404;
  margin: 15px 0;
  font-size: 1.2rem;
}

.recurso-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-descargar,
.btn-enlace {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-descargar {
  background-color: #a82525;
  color: white;
}

.btn-descargar:hover {
  background-color: #880404;
  transform: translateY(-2px);
}

.btn-enlace {
  background-color: #faf5f5;
  color: #880404;
  border: 1px solid #f4b3b3;
}

.btn-enlace:hover {
  background-color: #fbeeee;
  color: #880404;
}

/* Estilos para Acerca de */
.acerca-container {
  max-width: 1000px;
  margin: 0 auto;
}

.acerca-mision,
.acerca-vision,
.acerca-equipo,
.acerca-contacto {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #f4b3b3;
}

.acerca-mision h3,
.acerca-vision h3,
.acerca-equipo h3,
.acerca-contacto h3 {
  color: #880404;
  border-bottom: 2px solid #ca6c6c;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.miembro-equipo {
  text-align: center;
  padding: 20px;
  border: 1px solid #f4b3b3;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.3s;
}

.miembro-equipo:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.miembro-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background-color: #faf5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #a82525;
  border: 3px solid #f6e2e2;
}

.miembro-equipo h4 {
  color: #880404;
  margin: 15px 0 5px;
}

.miembro-equipo p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.acerca-contacto ul {
  list-style-type: none;
  padding: 0;
}

.acerca-contacto li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.acerca-contacto i {
  width: 30px;
  margin-right: 15px;
  color: #a82525;
  font-size: 1.2rem;
  text-align: center;
}

/* Estilos para el modal de enlaces */
.enlaces-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.enlace-item {
  padding: 15px;
  border: 1px solid #f4b3b3;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  background-color: #faf5f5;
}

.enlace-item:hover {
  background-color: #fbeeee;
  border-left: 4px solid #a82525;
}

.enlace-item i {
  margin-right: 15px;
  color: #a82525;
  font-size: 1.5rem;
}

.btn-cerrar {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #a82525;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-cerrar:hover {
  background-color: #880404;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {

  .noticias-grid,
  .recursos-grid,
  .equipo-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 15px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header i {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .miembro-avatar {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 15px 10px;
  }

  .faq-question,
  .soporte-container li {
    padding: 12px;
  }

  .recurso-card,
  .miembro-equipo {
    padding: 15px;
  }
}

/* Estilos del Chatbot */
.chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #a82525;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-height: 80vh;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  overflow: hidden;
}

.chatbot-header {
  background-color: #a82525;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  max-height: 400px;
  background-color: #f9f9f9;
}

.chatbot-message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
}

.chatbot-message.user {
  background-color: #fde3e3;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
  background-color: #f1f1f1;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

.chatbot-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background-color: #fff;
}

.chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.chatbot-send {
  background-color: #a82525;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chatbot-send:hover {
  background-color: #8a1a1a;
}

.tabla-asistencia-estudiantes {
  margin-top: 2rem;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.asistencia-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.asistencia-table th,
.asistencia-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.asistencia-table th {
  background-color: #880404;
  font-weight: 600;
  color: white;
}

.progress-container {
  width: 100%;
  background-color: #a3a1a1;
  /* Gris claro de fondo */
  border-radius: 4px;
  height: 24px;
  position: relative;
  overflow: hidden;
  /* Asegura que el borde redondeado se aplique correctamente */
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  background-color: #8a1a1a;
  /* Rojo moderno y vibrante */
  transition: width 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  /* Sutil profundidad */
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  /* Mejor legibilidad */
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
  border: 1px solid #f4b3b3;
  /* Borde sutil a juego con el tema */
  border-radius: 8px;
  /* Bordes redondeados consistentes */
  -webkit-overflow-scrolling: touch;
}

/* Estructura principal de la tabla */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  /* Eliminado el margen para encajar en el contenedor responsive */
  font-size: 0.9em;
  min-width: 600px;
  /* Ancho mínimo para forzar el scroll en lugar de comprimir */
  background-color: #fff;
}

/* Encabezado de la tabla, usando el color principal de tu sidebar */
.content-table thead tr {
  background-color: #880404;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  /* Coincide con tus encabezados */
}

.content-table th,
.content-table td {
  padding: 14px 18px;
  /* Un poco más de espaciado para la legibilidad */
  vertical-align: middle;
}

/* Cuerpo de la tabla */
.content-table tbody tr {
  border-bottom: 1px solid #fbf7f7;
  /* Un borde muy sutil entre filas */
  transition: background-color 0.2s ease-in-out;
}

/* Filas alternas con el color de fondo de tus formularios */
.content-table tbody tr:nth-of-type(even) {
  background-color: #fdf5f5;
}

.content-table tbody tr:last-of-type {
  border-bottom: none;
  /* Sin borde en la última fila */
}

/* Efecto hover consistente con tus otros elementos */
.content-table tbody tr:hover {
  background-color: #fbf7f7;
  color: #880404;
}

/* ==========================================================================
   COMPONENTES DENTRO DE LA TABLA
   ========================================================================== */

/* Badges de estado, usando tu paleta de colores */
.badge-puntos {
  background-color: #a82525;
}

.estado-completada {
  background-color: #cc2e2e;
}

.estado-vencida {
  background-color: #c73c3c;
}

.estado-proxima {
  background-color: #f38c12;
}

.estado-pendiente {
  background-color: #af8787;
}

/* Información de metadatos (fechas) */
.content-table .meta-info div {
  color: #555;
  font-size: 0.9em;
  white-space: nowrap;
}

.content-table .meta-info .fas,
.content-table .meta-info .far {
  margin-right: 6px;
  color: #a82525;
  /* Iconos con el color de acento */
}

/* Listas de archivos y enlaces */
.content-table .archivos-list a,
.content-table .enlaces-list a {
  color: #a82525;
  text-decoration: none;
  transition: color 0.2s;
}

.content-table .archivos-list a:hover,
.content-table .enlaces-list a:hover {
  color: #880404;
  text-decoration: underline;
}

/* Botones de acción (versión de tabla, solo icono) */
.item-actions-table {
  display: flex;
  gap: 8px;
  align-items: center;
}

.item-actions-table button {
  padding: 8px;
  font-size: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Usando tus clases de botones existentes para consistencia */
.item-actions-table .edit-btn {
  background-color: #a82525;
}

.item-actions-table .edit-btn:hover {
  background-color: #880404;
}

.item-actions-table .delete-btn {
  background-color: #a82525;
  /* Usamos un rojo estándar para eliminar */
}

.item-actions-table .delete-btn:hover {
  background-color: #880404;
}

/* Sección de Entregas (para Tareas) */
.entregas-section .btn-entregar {
  background-color: #a82525;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.entregas-section .btn-entregar:hover {
  background-color: #880404;
}

.no-items-small {
  font-size: 0.85em;
  color: #777;
  font-style: italic;
}


/* ==========================================================================
   DISEÑO RESPONSIVO (Móviles)
   ========================================================================== */

@media screen and (max-width: 768px) {
  .table-responsive {
    border: none;
    /* Quitar borde del contenedor en móvil */
  }

  .content-table {
    border: none;
    box-shadow: none;
  }

  /* Ocultar encabezado de tabla */
  .content-table thead {
    display: none;
  }

  .content-table,
  .content-table tbody,
  .content-table tr,
  .content-table td {
    display: block;
    width: 100%;
  }

  /* Cada fila se convierte en una tarjeta, imitando tu clase .item */
  .content-table tr {
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f4b3b3;
    border-left: 4px solid #a82525;
    background-color: #fff !important;
    /* Forzar fondo blanco para todas las filas */
  }

  .content-table tr:last-of-type {
    margin-bottom: 0;
  }

  /* Cada celda se convierte en un bloque */
  .content-table td {
    text-align: right;
    padding-left: 45%;
    position: relative;
    border: none;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .content-table td:last-child {
    padding-bottom: 0;
  }

  /* La etiqueta de la columna se genera con el atributo data-label */
  .content-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    /* Alineado con el padding de la tarjeta */
    width: calc(45% - 20px);
    text-align: left;
    font-weight: 600;
    /* Consistente con tus labels */
    color: #880404;
  }

  .content-table .markdown-preview {
    max-width: 100%;
    text-align: left;
    /* Alinear texto a la izquierda en móvil */
  }

  .item-actions-table {
    justify-content: flex-end;
    /* Alinear botones a la derecha */
  }
}

#lista-participantes {
  display: block;
  /* Anula cualquier 'display: grid' o 'display: flex' */
  padding: 0;
  /* Opcional: elimina el padding si el grid lo tenía */
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA LA TABLA DE ASISTENCIA
   ========================================================================== */

/* La tabla de clases hereda de .content-table, aquí solo añadimos personalizaciones */
.clases-table .descripcion-tabla {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
  margin-bottom: 0;
  line-height: 1.4;
}

.clases-table .asistencia-badge {
  color: #666;
  font-weight: 600;
  padding: 5px 10px;
}

/* Ajustes para los botones de acción para que tengan texto e icono */
.clases-table .item-actions-table .btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.clases-table .item-actions-table .btn-delete {
  padding: 8px;
  width: 36px;
  height: 36px;
}

/* Estilo para la tabla de resumen de asistencia por estudiante */
.asistencia-table td,
.asistencia-table th {
  text-align: center;
  /* Centrar contenido de la tabla de resumen */
}

.asistencia-table th:first-child,
.asistencia-table td:first-child {
  text-align: left;
  /* Alinear el nombre del estudiante a la izquierda */
}

.asistencia-table .asistencia-icon i {
  font-size: 1.2rem;
}

/* En móvil, las tarjetas de clase (que ya no existen) se reemplazan por la vista de tabla responsiva */
@media (max-width: 768px) {
  .clases-table .item-actions-table {
    justify-content: flex-end;
    /* Alinear botones a la derecha en móvil */
  }
}

/* Estilos para el panel de administración */
.config-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

/* Estilos para el formulario de configuración */
#config-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Estilos para la sección de perfil */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.profile-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: #880404;
  color: white;
}

@media (min-width: 768px) {
  .profile-header {
    flex-direction: row;
    padding: 30px;
  }
}

.profile-avatar {
  position: relative;
  margin-right: 0;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .profile-avatar {
    margin-right: 30px;
    margin-bottom: 0;
  }
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.avatar-actions {
  text-align: center;
  margin-top: 15px;
}

.btn-edit-avatar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
}

.btn-edit-avatar:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-edit-avatar i {
  margin-right: 5px;
}

.profile-info {
  text-align: center;
}

@media (min-width: 768px) {
  .profile-info {
    text-align: left;
  }
}

.profile-info h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.profile-role {
  margin-top: 5px;
}

.profile-details {
  padding: 25px;
}

.detail-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-item label {
  font-weight: 600;
  color: #555;
  width: 120px;
  display: flex;
  align-items: center;
}

.detail-item label i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.detail-item p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  padding: 8px 0;
}

/* Formulario de avatar */
.form-hint {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

.form-hint a {
  color: #a82525;
  text-decoration: none;
}

.form-hint a:hover {
  text-decoration: underline;
}

.miembro-avatar-link {
  display: inline-block;
  text-decoration: none;
}

.miembro-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.miembro-avatar-img:hover {
  transform: scale(1.05);
}

.miembro-avatar {
  position: relative;
  width: 80px;
  height: 80px;
}

.avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 50%;
  color: #555;
  font-size: 2rem;
}

/* Sección Acerca de - Mejorada */
.acerca-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.acerca-seccion {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.acerca-seccion h2 {
  color: #880404;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ca6c6c;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.miembro-equipo {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.miembro-equipo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.miembro-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f6e2e2;
}

.miembro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ mejorado */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #faf8f8;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #880404;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: white;
}

.faq-answer.show {
  padding: 1.5rem;
  max-height: 500px;
}

/* Contacto mejorado */
.contacto-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #faf8f8;
  border-radius: 8px;
}

.contacto-item i {
  font-size: 1.5rem;
  color: #a82525;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6e2e2;
  border-radius: 50%;
}

/* Estilos para el modal de entregas */
.entregas-modal {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.entregas-stats {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.stat-card {
  flex: 1;
  background: #faf8f8;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--curso-color);
}

.stat-label {
  font-size: 14px;
  color: #6c757d;
}

.entregas-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.entregas-table th {
  background-color: var(--curso-color);
  color: white;
  padding: 12px;
  text-align: left;
}

.entregas-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.enlace-entrega {
  color: var(--curso-color);
  text-decoration: none;
}

.enlace-entrega:hover {
  text-decoration: underline;
}

.btn-calificar {
  background-color: #a72828;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-calificar:hover {
  background-color: #882121;
}

.btn-editar {
  background-color: #a82b17;
}

.btn-editar:hover {
  background-color: #961713;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-exportar {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-exportar:hover {
  background-color: #5a6268;
}

/* Estilos para el modal de calificación */
.calificacion-modal {
  max-width: 600px;
  width: 90%;
}

.entrega-info {
  background: #faf8f8;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.entrega-info p {
  margin: 8px 0;
}

/* Estilos para el botón "Ver entrega" */
.btn-ver-entrega {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background-color: #faf8f8;
  color: #db3434;
  border: 1px solid #db3434;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ver-entrega:hover {
  background-color: #db3434;
  color: white;
  text-decoration: none;
}

.btn-ver-entrega i {
  margin-right: 4px;
  font-size: 10px;
}

/* Añadir esto a tu archivo CSS */
.modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

/* Estilos específicos para el modal de entregas */
.entregas-modal {
  max-width: 800px;
  width: 90%;
}

.entrega-detalle {
  padding: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.entrega-contenido {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  margin: 10px 0;
}

/* Contenedor principal */
#video-section.curso-seccion {
  background: var(--video-bg);
  border: 1px solid var(--video-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Título */
#video-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 14px 0;
}

#video-section h2 i {
  font-size: 1.1em;
  color: var(--video-accent);
}

/* Barra de acciones (crear/unirse) */
#video-acciones {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 8px 0 14px 0;
}

#video-acciones .create-btn {
  border: 1px dashed var(--video-accent);
  background: #fff;
  color: var(--video-accent);
  font-weight: 600;
  transition: all .2s ease;
}

#video-acciones .create-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 117, 120, .12);
}

#video-acciones .btn,
#video-acciones .btn.btn-secondary {
  border-radius: 10px;
  padding: 10px 14px;
}

#video-acciones a#unirseReunionCurso {
  background: linear-gradient(180deg, var(--video-accent), #025160);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
}

#video-acciones a#unirseReunionCurso:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 117, 120, .25);
}

/* Tarjeta del enlace */
.enlace-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--video-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.enlace-preview .file-icon {
  color: var(--video-accent);
  font-size: 1.1rem;
}

#video-url-curso {
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
  color: #1f2937;
}

#video-url-curso:hover {
  text-decoration: underline;
}

/* Chip de estado opcional (si lo usas) */
.video-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(2, 117, 120, .08);
  color: var(--video-accent);
  border: 1px solid var(--video-border);
}

/* Texto auxiliar */
#video-section p {
  margin: 10px 2px 0;
  color: var(--video-text-sub);
  font-size: .92rem;
}

/* Botón copiar enlace (si lo agregas) */
.copy-link-btn {
  border: 1px solid var(--video-border);
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #334155;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.copy-link-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

/* Accesibilidad foco */
#video-section a:focus,
#video-section button:focus {
  outline: 3px solid rgba(2, 117, 120, .35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 720px) {
  #video-acciones {
    grid-template-columns: 1fr;
    /* acciones en columna */
  }

  .enlace-preview {
    grid-template-columns: auto 1fr;
    /* oculta chip a la fila siguiente si lo usas */
    row-gap: 8px;
  }
}

/* Botón Videoconferencia: rojo sólido */
#video-acciones a#unirseReunionCurso{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand) !important;      /* rojo sólido */
  color: #fff !important;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, #000) !important;
  text-decoration: none !important;         /* quita subrayado */
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transform: translateY(0);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

#video-acciones a#unirseReunionCurso:hover{
  background: var(--brand-dark) !important; /* rojo más oscuro al hover */
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
}

#video-acciones a#unirseReunionCurso:active{
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.curso-header{
  display: flex;
  align-items: center;
  justify-content: space-between; /* título izq, botón der */
  gap: 1rem;
  margin-bottom: 1rem;            /* opcional */
}

.curso-header h2{
  margin: 0;                      /* quita salto extra */
}

.curso-header .acciones-usuarios .btn-primary{
  white-space: nowrap;            /* evita que se corte el texto del botón */
}

/* Responsive: en pantallas chicas, que se apilen y el botón quede a la derecha */
@media (max-width: 640px){
  .curso-header{
    flex-wrap: wrap;
  }
  .curso-header .acciones-usuarios{
    margin-left: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}
