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

:root {
    /* Colores corporativos actualizados */
    --blue-dark: #1e3a6b;      /* Azul oscuro principal */
    --blue-medium: #2d5aa0;    /* Azul medio */
    --blue-light: #4a7bc8;     /* Azul claro */
    --yellow: #f8c300;         /* Amarillo corporativo */
    --yellow-hover: #e6b800;   /* Amarillo hover */
    --gray-light: #f8f9fa;     /* Fondo claro */
    --gray-medium: #e9ecef;    /* Bordes */
    --gray-dark: #6c757d;      /* Texto secundario */
    --text-dark: #212529;      /* Texto principal */
    --white: #ffffff;

    /* Sombras y efectos */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

    /* Bordes */
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Tipografía */
body {
    /* Inter de Google Fonts */
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* comentada por si hay problemas con Google Fonts */
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */

    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--gray-light);
}

/* Contenedores base */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--blue-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

/* Enlaces */
a {
    color: var(--blue-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--blue-dark);
}

/* Botones base */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--blue-dark);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--blue-medium);
}

.btn-secondary {
    background: var(--yellow);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e6b800;
}

/* Formularios base */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue-medium);
}

/* Utilidades */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-1 { padding: 1rem; }
.hidden { display: none; }

/* Responsive base */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* ===== COMPONENTE LOGIN ===== */
.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-light);
}

.login-header {
    padding: 1rem;
    text-align: right;
}

.login-header select {
    width: auto;
    padding: 8px 12px;
}

.login-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--blue-dark);
}

.login-form input {
    margin-bottom: 1.5rem;
}

.login-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.login-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}