/* Fondo general */
body {
    font-family: 'Segoe UI', sans-serif;
    background: url('fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
    width: 100%;
    color: #222;
}
/* 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;
}
/* Estilo del menú */
#menuHorizontal {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: #333;
    padding: 0;
    margin: 20px 0;
    border-radius: 6px;
}

/* Contenedor tipo vidrio */
.contenedor-vidrio {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #222;
}
h1  {
    text-align: center;
    color: aliceblue;
}

/* Tabla moderna */
.tabla-vidrio {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: aliceblue;
}

.tabla-vidrio th, .tabla-vidrio td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.tabla-vidrio tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.2);
}

.tabla-vidrio th {
    background-color: rgba(0, 123, 255, 0.5);
    color: white;
}

/* Botones */
.btn-consulta,
.btn-editar {
    background-color: #007BFF;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.btn-consulta:hover,
.btn-editar:hover {
    background-color: #0056b3;
}

.icono {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Mensaje si no hay registros */
.mensaje {
    color: #c00;
    font-weight: bold;
    margin-top: 20px;
}
