/* css/globales.css */

:root {
    /* Paleta Corporativa SEGUIR */
    --primary-color: #1e3a8a;    /* Azul Oscuro */
    --accent-yellow: #fbbf24;    /* Amarillo Intenso */
    --accent-brown: #5d4a3e;     /* Café corporativo */
    --bg-gray: #f3f4f6;          /* Gris de fondo */
    --bg-light: #ffffff;         /* Blanco */
    --text-main: #1f2937;        /* Gris casi negro */
    --text-muted: #6b7280;       /* Gris para textos secundarios */
    --border-color: #e5e7eb;     /* Gris suave para bordes */
    --error-color: #ef4444;      /* Rojo alertas */
    --success-color: #10b981;    /* Verde éxito */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    background-color: var(--bg-gray);
}

/* --- ESTILOS DE FORMULARIO --- */

/* Etiquetas de campo */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Input Global Estilizado */
.global-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.global-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1); /* Efecto de halo azul */
}

.global-input::placeholder {
    color: #9ca3af;
}

/* Variación para Selects */
select.global-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* --- UTILIDADES --- */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* Mensajes de Alerta */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5;
    color: var(--success-color);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}