/* Ingreso360 · css/site-header.css — header compartido (alcance #siteHeader) */
:root {
    /* Marca — Naranja */
    --primary: #e4852d;
    --primary-dark: #cc6b4b;
    --primary-light: #EA580C;
    --primary-soft: #FFEDD5;
    --primary-bg: #FFF7ED;

    /* Marca — Azul */
    --secondary: #1D4ED8;
    --secondary-dark: #1E40AF;
    --secondary-light: #3B82F6;
    --secondary-soft: #DBEAFE;
    --secondary-bg: #EFF6FF;

    /* Estados */
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --warning: #EA580C;
    --warning-bg: #FFF7ED;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --info: #3B82F6;
    --info-bg: #EFF6FF;

    /* Superficies */
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --surface: #FFFFFF;
    --surface-alt: #F8FAFC;
    --border: #E2E8F0;
    --border-soft: #F1F5F9;

    /* Texto */
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16);

    /* Radios */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: all 0.15s ease;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tipografía */
    --font-heading: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --header-height: 72px;
}
[data-theme="dark"] #siteHeader {
    background: rgba(15, 23, 42, 0.85);
}
#siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
#siteHeader.scrolled { box-shadow: var(--shadow-sm); }
#siteHeader .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
}
#siteHeader .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
#siteHeader .brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}
#siteHeader .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
#siteHeader .brand-text strong {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.05em;
}
#siteHeader .brand-text span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.15em;
}
#siteHeader .nav{display:flex;align-items:center;gap:.25rem}
#siteHeader .nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
#siteHeader .nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}
#siteHeader .nav-drop { position: relative; }
#siteHeader .drop-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
#siteHeader .drop-caret { font-size: 0.65rem; transition: transform 0.25s; }
#siteHeader .nav-drop.open .drop-caret, #siteHeader .nav-drop:hover .drop-caret { transform: rotate(180deg); }
#siteHeader .drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    display: grid;
    gap: 0.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    z-index: 60;
}
#siteHeader .nav-drop:hover .drop-menu, #siteHeader .nav-drop:focus-within .drop-menu, #siteHeader .nav-drop.open .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#siteHeader .nav-drop.open .drop-toggle { color: var(--primary); background: var(--primary-bg); }
#siteHeader .drop-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
#siteHeader .drop-item:hover { background: var(--primary-bg); }
#siteHeader .drop-item > i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.95rem;
}
#siteHeader .drop-item span { display: flex; flex-direction: column; line-height: 1.25; }
#siteHeader .drop-item strong { font-size: 0.88rem; color: var(--text); }
#siteHeader .drop-item small { font-size: 0.75rem; color: var(--text-secondary); }
#siteHeader .drop-item.drop-cta { background: var(--primary); margin-top: 0.25rem; }
#siteHeader .drop-item.drop-cta:hover { background: var(--primary-dark); }
#siteHeader .drop-item.drop-cta > i { background: rgba(255,255,255,0.18); color: #fff; }
#siteHeader .drop-item.drop-cta strong, #siteHeader .drop-item.drop-cta small { color: #fff; }
#siteHeader .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
#siteHeader .theme-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}
#siteHeader .theme-toggle:hover {
    background: var(--primary-bg);
    color: var(--primary);
    transform: rotate(15deg);
}
#siteHeader .menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}
#siteHeader .menu-btn:hover { background: var(--primary-bg); color: var(--primary); }
#siteHeader .brand-mark i { font-size: 1.15rem; }
#siteHeader .brand-tag { font-size: 0.62rem !important; letter-spacing: 0.08em !important; }
#siteHeader .header-cta { box-shadow: 0 6px 16px rgba(194,65,12,0.35); white-space: nowrap; }
#siteHeader .header-cta:hover { transform: translateY(-1px); }
#siteHeader .nav-mega .drop-menu.mega-menu {
    left: 50%;
    min-width: min(620px, calc(100vw - 2rem));
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    padding: 1rem;
    transform: translate(-50%, 8px);
}
#siteHeader .nav-mega:hover .drop-menu.mega-menu, #siteHeader .nav-mega:focus-within .drop-menu.mega-menu, #siteHeader .nav-mega.open .drop-menu.mega-menu { transform: translate(-50%, 0); }
#siteHeader .mega-col { display: flex; flex-direction: column; gap: 0.15rem; }
#siteHeader .mega-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.3rem 0.75rem;
}
#siteHeader .mega-cta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    text-decoration: none;
    margin-top: 0.35rem;
    transition: filter 0.2s, transform 0.2s;
}
#siteHeader .mega-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
#siteHeader .mega-cta > i:first-child {
    width: 38px; height: 38px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
}
#siteHeader .mega-cta span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
#siteHeader .mega-cta strong { font-size: 0.92rem; }
#siteHeader .mega-cta small { font-size: 0.76rem; opacity: 0.85; }
#siteHeader .mega-cta-arrow { font-size: 0.85rem; opacity: 0.8; }
#siteHeader .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #FFFFFF;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
    transition: var(--transition);
}
#siteHeader .brand-logo:hover {
    transform: scale(1.05);
}
@media (max-width: 1100px) {#siteHeader .nav-mega .drop-menu.mega-menu { left: auto; right: -6rem; transform: translateY(8px); }
#siteHeader .nav-mega:hover .drop-menu.mega-menu, #siteHeader .nav-mega:focus-within .drop-menu.mega-menu, #siteHeader .nav-mega.open .drop-menu.mega-menu { transform: translateY(0); }
}
@media (max-width: 900px) {#siteHeader .nav-link {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        text-align: left;
        border-radius: var(--radius-sm);
    }
#siteHeader .nav-drop { width: 100%; }
#siteHeader .nav-drop .drop-toggle { width: 100%; justify-content: space-between; }
#siteHeader .nav-drop .drop-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border: 0;
        border-left: 3px solid var(--primary);
        border-radius: 0;
        padding: 0.25rem 0 0.25rem 0.5rem;
        margin-top: 0.25rem;
        display: none;
    }
#siteHeader .nav-drop.open .drop-menu { display: grid; opacity: 1; visibility: visible; transform: none; }
#siteHeader .nav-mega .drop-menu.mega-menu { grid-template-columns: 1fr; }
#siteHeader .mega-title { margin-top: 0.5rem; }
#siteHeader .menu-btn { display: grid; }
#siteHeader .header-actions .btn span { display: none; }
#siteHeader .header-actions .btn { padding: 0.6rem 0.85rem; }
#siteHeader .nav > .nav-link, #siteHeader .nav-drop .drop-toggle { font-size: 1.05rem; font-weight: 700; }
}
@media (max-width: 400px) {#siteHeader .brand-text { display: none; }
}
#siteHeader .brand-logo-full {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition);
}
#siteHeader .brand-logo-full:hover {
    transform: scale(1.04);
}
@media (max-width: 640px) {#siteHeader .brand-logo-full {
        height: 40px;
        max-width: 150px;
    }
}
@media (max-width: 400px) {#siteHeader .brand-logo-full {
        height: 36px;
        max-width: 130px;
    }
}
#siteHeader .nav-link.nav-flag {color:var(--primary);font-weight:800;display:inline-flex;align-items:center;gap:.4rem}
#siteHeader .nav-link.nav-flag i {font-size:.7rem;background:var(--primary);color:#fff;width:22px;height:22px;display:grid;place-items:center;border-radius:50%}
#siteHeader .nav-link.nav-flag:hover {background:var(--primary-soft)}
@media (max-width:1280px){#siteHeader .nav-link {padding:.5rem .6rem;font-size:.82rem}
#siteHeader .header-inner {gap:.75rem}
}

[data-theme="dark"] {
    --bg: #0F172A;
    --bg-alt: #1E293B;
    --surface: #1E293B;
    --surface-alt: #334155;
    --border: #334155;
    --border-soft: #1E293B;

    --text: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    --primary-soft: #7C2D12;
    --primary-bg: #431407;
    --secondary-soft: #1E3A8A;
    --secondary-bg: #16295c;

    --success-bg: #14532D;
    --warning-bg: #7C2D12;
    --danger-bg: #7F1D1D;
    --info-bg: #1E3A8A;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7);
}
