/* carga.css - Estilo Moderno con Glassmorphism */

/* Estilos Base */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
    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 */
}
/* Panel de Vidrio */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 25px;
    margin: 20px auto;
    max-width: 900px;
}

/* Encabezados */
h1, h3 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h3 {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* Formulario Moderno */
form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    align-items: center;
}

label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Botones Modernos con Movimiento */
.btn-primario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 5px;
}

.btn-primario:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.btn-primario:active {
    transform: translateY(1px);
}

.btn-primario img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Mensajes de Usuario */
.mensaje-usuario {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

.mensaje-usuario.exito {
    background: rgba(40, 167, 69, 0.2);
    color: #d4edda;
    border-left: 4px solid #28a745;
}

.mensaje-usuario.error {
    background: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Estilos para el botón de eliminar */
[style*="background-color: #cc0000"] {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
}

[style*="background-color: #cc6600"] {
    background: linear-gradient(135deg, #ff7b25 0%, #ff6e40 100%) !important;
}
.mensaje-usuario {
    padding: 10px;
    border-radius: 5px;
    margin: 10px auto;
    width: 90%;
    font-weight: bold;
    text-align: center;
}

.mensaje-usuario.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-usuario.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Responsive Design */
@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr;
    }
    
    .glass-panel {
        padding: 15px;
    }
    
    .menu-horizontal {
        flex-direction: column;
    }
    
    .menu-horizontal a {
        padding: 12px;
        text-align: center;
    }
}