/* =============================================================
   PROYECTO: Sistema de Cotizaciones (lrn sys)
   UBICACIÓN: /public_html/css/master.css
   FECHA/HORA: 2026-03-27 10:00:00
   DESCRIPCIÓN: Estructura maestra unificada del sistema
   REVISIÓN: 2.0 - Header responsive, navegación y audio global
   ============================================================= */

:root {
    --color-durazno: #fcd5b5;
    --color-verde-body: #e8f5e9;
    --color-primary: #1b5e20;
    --color-text: #000000;
    --color-link-blue: #0000ff;
    --transition: 0.2s ease-in-out;
}

/* --- RESET & LAYOUT --- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body,
.q-body-layout {
    background-color: var(--color-verde-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    color: var(--color-text);
}

/* --- CONTENEDOR UNIVERSAL --- */
.q-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- WRAPPER GENERAL --- */
.q-main-content-wrapper {
    flex: 1;
}

/* --- HEADER --- */
.q-header {
    background-color: var(--color-durazno);
    border-bottom: 2px solid #000;
    padding: 15px 0;
}

.q-header-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.q-header-logo {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.q-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.q-header-logo-brand {
    display: flex;
    flex-direction: column;
}

.q-header-tagline {
    font-weight: 900;
    font-size: 2rem;
    color: var(--color-link-blue);
    text-decoration: none !important;
    line-height: 1;
}

/* --- NAV --- */
.q-header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.q-header-nav a {
    color: var(--color-link-blue);
    text-decoration: underline;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color var(--transition), transform var(--transition);
}

.q-header-nav a:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.q-nav-highlight-green {
    color: #2e7d32 !important;
    font-weight: 900 !important;
}

.q-nav-highlight-blue {
    color: #1565c0 !important;
    font-weight: 900 !important;
}

.q-btn-admin-header {
    background: #000;
    color: #ffd700 !important;
    border: 3px solid #ffd700;
    padding: 6px 14px;
    font-weight: 900;
    text-decoration: none !important;
    border-radius: 4px;
}

.q-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 12px;
    border: 3px solid #000;
    border-radius: 4px;
    font-weight: 900;
    text-decoration: none !important;
    color: #000 !important;
    box-shadow: 3px 3px 0px #000;
}

.q-header-userbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.q-logout-link {
    text-decoration: none !important;
    font-size: 1.2rem;
}

/* --- AUDIO --- */
.q-audio-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none !important;
    color: #000 !important;
    font-weight: bold;
    font-size: 1.3rem;
    user-select: none;
}

.audio-playing {
    animation: pulse-bocina 1.2s infinite;
    color: #ff0000 !important;
}

@keyframes pulse-bocina {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- TIPOGRAFÍA GENERAL --- */
h1 {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #000;
    margin: 40px 0 20px 0;
    line-height: 1.1;
}

a {
    transition: color var(--transition), transform var(--transition);
}

/* --- UTILIDADES --- */
.q-text-center {
    text-align: center;
}

.q-text-muted {
    color: #666;
}

.q-fade-in {
    animation: qFadeIn 0.8s ease-out forwards;
}

@keyframes qFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .q-header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .q-header-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .q-header-tagline {
        font-size: 1.5rem;
    }

    .q-logo-img {
        height: 50px;
    }

    .q-header-nav {
        gap: 14px;
    }

    .q-header-nav a {
        font-size: 0.95rem;
    }

    .q-user-pill {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}