/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f8f8f8 0%, #f4f6f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 0px 20px 20px 20px;
}

/* Contenedores de login y registro */
.login-container, .register-container {
    background: white;
    padding: 40px;
    border-radius: 5px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    backdrop-filter: blur(10px);
}

h1 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 400;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Formularios */
.login-form, .register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

.optional {
    color: #95a5a6;
    font-weight: normal;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.btn-return {
    background: rgb(85, 26, 139);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}
/* Enlaces */
.login-link, .register-link {
    text-align: center;
    margin-top: 20px;
}

.login-link p, .register-link p {
    color: #7f8c8d;
    font-size: 14px;
}

.login-link a, .register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 400;
}

.login-link a:hover, .register-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #e74c3c;
}

.alert-success {
    background-color: #efe;
    color: #363;
    border-left: 4px solid #27ae60;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

/* Dashboard y páginas internas */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 0px 20px;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 5px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100px;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.line-hr {
    border: none;                /* quitar borde por defecto */
    height: 1px;                 /* grosor de la línea */
    background-color: #e1e5e9;   /* color */
    margin-top: 20px;           /* espacio arriba */
    margin-bottom: 0; 
}

/* Tablas */
.table-container {
    background: white;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 400;
    color: #2c3e50;
}

tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.status-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.status-aprobado {
    background-color: #d4edda;
    color: #155724;
}

.status-rechazado {
    background-color: #f8d7da;
    color: #721c24;
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .login-container, .register-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.5rem;
        font-weight: 400;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Estilos para el banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #2D3E50;
    padding: 15px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
}

.cookie-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 400;
}

.cookie-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

