:root {
  --bs-bg-deep: #000328; /* fondo exterior */
  --bs-bg-mid:  #002d6fbf; /* panel central */
}

/* Estilos específicos para la página de inicio que usa la nueva estructura */
body.new-index-styles {
  background: var(--bs-bg-deep) !important; /* !important para anular base.css debido al orden de carga */
  padding-top: 104px !important; /* !important para asegurar que el padding del header se aplique correctamente */
}

/* Estilos para el contenedor central, aplicable donde se use la clase .mid-wrapper */
.mid-wrapper {
  background: var(--bs-bg-mid);
  max-width: 90rem; /* Ancho máximo del contenedor */
  margin: 0 auto; /* Centra el contenedor */
  padding: 0rem 3rem; /* Espacio interno */
  padding-top: 5rem;
  /* Las clases de Bootstrap como d-flex, flex-column, etc., se aplican directamente en el HTML */
}

/* ===== ESTILOS PARA TABLAS ===== */
.table-responsive {
  background: var(--acrylic-bg-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table {
  margin-bottom: 0;
  color: var(--card-text-color);
  background: transparent;
  table-layout: fixed;
  word-wrap: break-word;
  word-break: break-word;
}

.table thead th {
  background: rgba(0, 162, 232, 0.2);
  color: var(--card-text-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--highlight-color);
  border-top: none;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
  width: auto;
  white-space: normal;
  word-wrap: break-word;
}

.table thead th:last-child {
  border-right: none;
}

.table tbody td {
  background: transparent;
  color: var(--card-text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
  width: auto;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.table tbody td:last-child {
  border-right: none;
}

/* Estilos para badges y etiquetas dentro de tablas */
.table .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 0.375rem;
}

/* Estilos para enlaces dentro de tablas */
.table a {
  color: var(--link-hover-color);
  text-decoration: none;
}

.table a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== ESTILOS PARA LA SECCIÓN DE INTRODUCCIÓN ===== */
.intro-section {
}

.intro-content {
}

.intro-text {
  font-family: var(--font-family-paragraph);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--card-text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin: 0;
  text-align: left;
}

/* Responsive adjustments for 404 page */
@media (max-width: 768px) {
  .error-code {
    font-size: 4rem !important;
  }
  
  .error-title {
    font-size: 1.5rem !important;
  }
  
  .error-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .error-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .quick-links .list-group {
    flex-direction: column !important;
  }
  
  .quick-links .list-group-item {
    margin: 0.25rem 0;
  }
  
  .table-responsive {
    border-radius: 8px;
    margin: 0 0.5rem 1rem 0.5rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  
  .table thead th {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .error-section {
    min-height: 60vh;
    padding: 1rem 0;
  }

  .mid-wrapper {
    padding: 0rem 1rem;
    padding-top: 3rem;
  }

  .table-responsive {
    margin: 0 0.25rem 1rem 0.25rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.4rem 0.2rem;
    font-size: 0.75rem;
  }
  
  .table thead th {
    font-size: 0.7rem;
    letter-spacing: 0.3px;
  }
  
  /* Responsive adjustments para la introducción */
  .intro-content {
    padding: 1.5rem 1.5rem;
  }
  
  .intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}