/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Estilos base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url(../img/fondo4.jpg) no-repeat center center fixed;
    width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}
/* 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;
}
/* 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 */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Panel con efecto vidrio mejorado */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    padding: 30px;
    margin: 20px auto;
    max-width: 90%;
}

/* Títulos mejorados */
h1 {
    color: var(--primary-color);
    text-align: center;
    margin: 1.5rem 0;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    color: rgb(201, 199, 199);
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Formularios mejorados */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Campos de entrada mejorados */
input[type="text"], 
input[type="password"], 
input[type="email"] {
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Botón mejorado */
input[type="submit"] {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="submit"]:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Tabla mejorada */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Enlaces mejorados */
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin: 5px;
    border-radius: var(--border-radius);
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.btn-glass:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
/* Enlaces dentro de tablas */
table a {
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px;
    text-decoration: none;
    border-radius: 6px;
    background-color: #85ebd5;
    color: #333;
    display: inline-block;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

table a:hover {
    background-color: #156804;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
}


table a img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* Mensajes de estado mejorados */
.mensaje {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mensaje-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mensaje-exito {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .glass-panel {
        padding: 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    input[type="submit"] {
        width: 100%;
    }
}
