/* css/global.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.app-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 70px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    z-index: 100;
}

.header-brand h1 {
    font-size: 1.4rem;
    font-weight: 800;
}

.module-name {
    color: var(--brand-primary);
    font-weight: 500;
    font-size: 1.2rem;
    margin-left: 4px;
}

.header-nav {
    display: flex;
    gap: 20px;
    height: 100%;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-primary);
    background-color: var(--bg-surface-hover);
}

.nav-link.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 165, 233, 0.3); /* Resalte sutil en hover */
}

.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Agrega esto al final de global.css */
.header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Reemplaza esto en global.css */
.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

.arcade-text {
    /* Si su logo es azul/celeste, usa estos colores. Si es otro, solo cambia los hexadecimales (#) */
    color: #f25ec1a7; /* Azul principal */
    font-weight: 900;
    font-style: italic;
    letter-spacing: 2px;
    text-shadow: 
        0 0 2px rgba(14, 165, 233, 0.4),
        0 0 8px rgba(14, 165, 233, 0.2); /* Efecto sutil de neón Arcade */
}

/* ==========================================================================
   MATA ANGUSTIAS (LOADING SPINNER GLOBAL)
   ========================================================================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1; /* Permite centrarlo perfectamente en el POS */
    text-align: center;
}

.spinner-loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(14, 165, 233, 0.15); /* Color de fondo sutil */
    border-left-color: var(--brand-primary); /* Color principal del giro */
    border-radius: 50%;
    animation: spinFast 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spinFast {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-content input,
.modal-content select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px; /* Para que no queden pegados uno con otro */
}