/* Estilos generales */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url("../img/fondo.jpg") no-repeat center center fixed;
  background-size: cover;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 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;
}
/* 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 */
}
p {
  color: turquoise;
}
/* Tabla */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  animation: fadeIn 0.5s ease;
}

th,
td {
  padding: 15px;
  text-align: left;
}

th {
  background-color: #4a90e2;
  color: white;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

th:hover {
  background-color: #357abd;
}

td {
  border-bottom: 1px solid #ddd;
  padding: 12px 15px;
}

tr:hover {
  background-color: #f8f9fa;
  transform: scale(1.01);
  transition: transform 0.2s ease;
}

/* Enlaces dentro de celdas */
/* Estilo para los enlaces de movimientos sin rotación */
td a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fbfdff;
  background: #338df5;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

td a:hover {
  background-color: #0471ee;
  color: white;
  transform: translateY(-2px);
}

/* Sin animación de rotación */
td a img {
  margin-left: 8px;
  width: 12px;
  height: 12px;
}

/* Estilo del botón pequeño con ícono pequeño */
td a.btn-movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4a90e2;
  color: white;
  padding: 4px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(74, 144, 226, 0.2);
  width: 20px;
  height: 20px;
  margin-left: 3px;
  overflow: hidden;
}

td a.btn-movement img {
  width: 10px; /* Ícono más pequeño */
  height: 10px;
  margin: 0; /* Quitar margen lateral */
}

/* Botón efecto vidrio */
.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  color: #4a90e2;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 10px 0;
}

.btn-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
  background: #4a90e2;
  color: white;
}

/* Buscador */
.search-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

input[type="text"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 5px 0;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
  outline: none;
}

/* Radio buttons */
input[type="radio"] {
  margin-right: 5px;
}

label {
  margin-right: 15px;
  cursor: pointer;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes buttonPop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Paginación */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 10px;
}

.pagination-btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
  background: #357abd;
}

.pagination-btn:active {
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-info {
  font-size: 16px;
  color: #666;
  background: white;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Efecto Ripple */
.btn-movement .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
  }

  td,
  th {
    min-width: 120px;
  }

  .search-container {
    padding: 15px;
  }
}
