/* =====================================================
   layout.css — Estructura Maestra Progen
   ===================================================== */

:root {
    --nav-h: 80px;
}

.nav.scrolled {
    background: var(--ch) !important;
    height: var(--nav-h) !important; 
    padding: 12px 60px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ── LOGO ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 180px;
}

.nav-logo-box {
    background: var(--red);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 18px;
}

.nav-brand-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    letter-spacing: .02em;
    line-height: 1.1;
}

.nav-brand-sub {
    display: block;
    font-size: 8px;
    letter-spacing: .25em;
    color: var(--lgray);
    text-transform: uppercase;
    margin-top: -2px;
}

/* ── LINKS DE NAVEGACIÓN ── */
.nav-links {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nl {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    padding: 15px 18px;
    border-radius: var(--r-sm);
    text-decoration: none;
    justify-content: center;
    transition: 0.2s;
}

.nl:hover,
.nl.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

/* ── ACCIONES (CTAS) Y AVATAR ── */
.nav-ctas {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px;
    justify-content: flex-end;
    position: relative;
    z-index: 10001;
}

.nav-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ── DROPDOWN MENÚ (Z-INDEX FIX) ── */
.progen-dropdown {
    background: var(--ch) !important;
    min-width: 220px;
    border-radius: 15px !important;
    padding: 12px 0 !important;
    margin-top: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 100000 !important; /* Valor extremo para saltar el Hero del Inicio */
}

.progen-dropdown .dropdown-header {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 8px 20px;
}

.progen-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.progen-dropdown .dropdown-item svg {
    opacity: 0.7;
    transition: 0.2s;
}

.progen-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.progen-dropdown .dropdown-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.progen-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* ── BOTONES DE ACCIÓN ── */
.btn-progen-nav {
    background: var(--red);
    color: white !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
}

.btn-progen-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 37, 36, 0.3);
    color: white !important;
}

/* ── FOOTER ── */
.footer {
    background: var(--ch);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, .04);
    color: var(--white);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-name {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
}

.footer-logo-sub {
    font-size: 9px;
    color: var(--lgray);
    text-transform: uppercase;
    display: block;
    letter-spacing: 2px;
}

.footer-brand-p {
    font-size: 13px;
    color: rgba(182, 186, 188, 0.7);
    margin-top: 20px;
    line-height: 1.8;
    max-width: 280px;
}

.footer-col-ttl {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-lnk {
    display: block;
    font-size: 13px;
    color: var(--lgray);
    margin-bottom: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-lnk:hover {
    color: var(--red);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(182, 186, 188, 0.5);
}

.footer-loc {
    display: flex;
    align-items: center;
    gap: 6px;
}