body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* Fondo oscuro similar al menú, ajusta la ruta de la imagen si es diferente */
  color: #fff;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
}

/* Creamos el pseudo-elemento que contendrá el fondo desenfocado */
body::before {
  content: "";
  position: fixed; /* Ocupa toda la pantalla, independientemente del scroll */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("../img/fondo.jpg") no-repeat center center;
  background-size: cover;
  filter: blur(8px); /* Nivel de desenfoque */
  -webkit-filter: blur(8px); /* Compatibilidad con Safari */
  z-index: -1; /* Lo posicionamos detrás de todo el contenido */
  transform: scale(1.1); /* Escala ligeramente para evitar bordes borrosos */
}
/* Capa adicional para mejorar contraste */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
}

/* Estilos tipo Glass (Dark - similar al menú) */
.glass-card {
  background: rgba(10, 9, 24, 0.7);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

h1,
h2 {
  color: #15a9ce;
  border-bottom: 2px solid #15a9ce;
  padding-bottom: 10px;
}

/* Formulario */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #e0e0e0;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #15a9ce;
  border-radius: 4px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

input::placeholder,
textarea::placeholder {
  color: #ccc;
}

button.btn-guardar {
  background-color: #15a9ce;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

button.btn-guardar:hover {
  background-color: #00fff7;
  color: #000;
  box-shadow: 0 0 10px #00fff7;
}

/* Tabla */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  overflow: hidden;
  color: white;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background-color: rgba(21, 169, 206, 0.5);
  color: white;
}

tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mensajes */
.mensaje {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.exito {
  background-color: rgba(76, 175, 80, 0.3);
  color: #a5d6a7;
  border: 1px solid #4caf50;
}

.error {
  background-color: rgba(244, 67, 54, 0.3);
  color: #ef9a9a;
  border: 1px solid #f44336;
}

/* Paginación */
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #15a9ce;
  color: white;
  margin: 0 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
}

.pagination a:hover {
  background-color: #15a9ce;
  color: black;
}

.pagination .active {
  background-color: #15a9ce;
  color: white;
  border: 1px solid #15a9ce;
}

.pagination .disabled {
  color: #777;
  border-color: #555;
  pointer-events: none;
}

/* Botones de Acción en Tabla */
.btn-editar,
.btn-eliminar {
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 5px;
  display: inline-block;
  color: white;
  transition: opacity 0.3s;
}
.btn-editar {
  background-color: #ff9800;
}
.btn-eliminar {
  background-color: #f44336;
}
.btn-editar:hover,
.btn-eliminar:hover {
  opacity: 0.8;
  color: white;
}
