/* ==========================================================================
   Topbar y header (sticky con vidrio esmerilado)
   ========================================================================== */

.df-topbar {
    position: relative;
    z-index: 1;
    background: var(--navy-4);
    color: var(--on-dark-2);
    font-size: .82rem;
}
.df-topbar-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 42px;
}
.df-topbar-datos, .df-topbar-extra { display: flex; align-items: center; gap: 24px; }
.df-topbar-item { display: inline-flex; align-items: center; gap: .5em; transition: color .15s; }
a.df-topbar-item:hover { color: #fff; }
.df-topbar .df-icono { width: 14px; height: 14px; color: var(--c3); }
.df-topbar-acceso {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: 5px 12px;
    border: 1px solid rgba(167, 224, 219, .28);
    border-radius: 999px;
    color: var(--c2);
    font-weight: 700;
    transition: background-color .2s, color .2s, border-color .2s;
}
.df-topbar-acceso .df-icono { color: currentColor; }
.df-topbar-acceso:hover { background: var(--c2); border-color: var(--c2); color: var(--navy); }

/* El vidrio va en un pseudo-elemento: backdrop-filter en el header crearía un
   bloque contenedor y rompería el menú móvil (position: fixed) que vive dentro. */
.df-header {
    position: sticky;
    top: 0;
    z-index: 950;
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.df-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    transition: background-color .25s;
}
.df-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 12px 30px -24px rgba(18, 21, 58, .4);
}
.df-header.is-scrolled::before { background: rgba(255, 255, 255, .93); }
.df-header-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

/* Logo: isotipo + nombre con la línea del logo original */
.df-logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.df-logo .df-marca { width: auto; height: 46px; transition: transform .35s var(--ease-out); }
.df-logo:hover .df-marca { transform: rotate(-4deg) scale(1.04); }
.df-logo-texto { display: flex; flex-direction: column; line-height: 1; }
.df-logo-nombre {
    color: var(--navy);
    font-family: var(--font-sans);
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.df-logo-desc {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1.5px solid var(--c3);
    color: var(--c4);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .27em;
    text-transform: uppercase;
}

.df-nav { display: flex; align-items: center; }
.df-nav-lista { display: flex; align-items: center; gap: 2px; }
.df-nav-lista a {
    position: relative;
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 600;
    transition: color .15s, background-color .15s;
}
.df-nav-lista a:hover { background: var(--paper); color: var(--navy); }
.df-nav-lista a.is-active { color: var(--navy); }
.df-nav-lista a.is-active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--c3), var(--c2));
}
.df-nav-movil { display: none; }

.df-header-acciones { display: flex; align-items: center; gap: 12px; }

.df-burger {
    display: none;
    position: relative;
    z-index: 980;
    width: 46px; height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.df-burger span {
    position: absolute;
    left: 13px;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease), width .3s var(--ease);
}
.df-burger span:nth-child(1) { top: 16px; }
.df-burger span:nth-child(2) { top: 22px; width: 13px; }
.df-burger span:nth-child(3) { top: 28px; }
.df-burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.df-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.df-burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.df-scrim { display: none; }

@media (max-width: 1180px) {
    .df-header-fila { gap: 16px; }
    .df-nav-lista a { padding-inline: 10px; }
    .df-nav-lista a.is-active::after { left: 10px; right: 10px; }
    .df-header-cta-extra { display: none; }
}
