/* ==========================================================================
   declar.ar — Header compartido (includes/site-header.php)
   Autocontenido: no depende de landing.css ni de body.lp-page, así se ve igual
   en la portada, /nosotros, blog, legales y formularios.
   ========================================================================== */
.lp-top, .lp-mobile {
    --nav-ink: #12161f;
    --nav-link: #3a404b;
    --nav-line: #dadee6;
    --nav-line-2: #dadee6;
    --nav-blue: #242c4f;
    --nav-accent: #242C4F;
    --nav-pad-x: 32px;
    --nav-announce-h: 38px;
    font-family: var(--dc-sans, 'Manrope', system-ui, sans-serif);
    line-height: 1.6;
    color: var(--nav-ink);
    -webkit-font-smoothing: antialiased;
}
.lp-top a, .lp-mobile a { color: inherit; text-decoration: none; }

/* Portada y /nosotros: la barra scrollea y el header queda sticky.
   display: contents deja que el sticky del header use el body como contenedor. */
.lp-top { display: contents; }
/* Páginas viejas: barra + header fijos; el spacer cubre el alto de la barra y el
   padding-top que ya tienen esas páginas cubre el header. */
.lp-top--fixed { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.lp-top--fixed .lp-nav { position: relative; }
.lp-top-spacer { height: var(--nav-announce-h, 38px); }

/* ---- Barra de anuncio ---- */
.lp-announce {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-announce-h);
    padding: 0 var(--nav-pad-x);
    background: var(--nav-blue);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
}
/* Por encima de las líneas del marco (.dc-frame-lines, z-index 6) */
.lp-top .lp-announce { position: relative; z-index: 7; color: #fff; }
.lp-announce-text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-announce-tag {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 3px;
    background: #fff;
    color: var(--nav-blue);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lp-announce-title { font-weight: 600; }
.lp-announce-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.lp-announce-desc { color: rgba(255, 255, 255, 0.72); overflow: hidden; text-overflow: ellipsis; }
.lp-announce-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    margin-left: 4px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    font-size: 12.5px;
    font-weight: 600;
    transition: background .16s ease, border-color .16s ease;
}
.lp-announce-cta svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}
.lp-announce:hover .lp-announce-cta { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.lp-announce:hover .lp-announce-cta svg { transform: translateX(2px); }

/* ---- Header ---- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 252, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-line);
}
.lp-nav-inner {
    max-width: var(--dc-frame, 1400px);
    height: 64px;
    margin: 0 auto;
    padding: 0 var(--nav-pad-x);
    display: flex;
    align-items: center;
    gap: 32px;
    border-left: 1px solid var(--nav-line);
    border-right: 1px solid var(--nav-line);
    box-sizing: border-box;
}
.lp-nav .lp-nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--nav-ink); flex: none; }
.lp-nav-brand img { height: 30px; width: auto; display: block; }
.lp-nav-tld { color: var(--nav-blue); font-weight: 500; }

.lp-nav-links { flex: 1; display: flex; justify-content: center; gap: 32px; align-items: center; }
.lp-nav .lp-nav-links a { position: relative; color: var(--nav-link); font-size: 14.5px; font-weight: 500; transition: color .16s ease; }
.lp-nav .lp-nav-links a:hover,
.lp-nav .lp-nav-links a[aria-current="page"] { color: var(--nav-ink); }
.lp-nav .lp-nav-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--nav-blue);
}

/* Bloque de acciones: celdas unidas con bordes */
.lp-nav-actions {
    flex: none;
    display: flex;
    align-items: stretch;
    height: 38px;
    border: 1px solid var(--nav-line-2);
    background: #fff;
}
.lp-nav .lp-nav-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-link);
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}
.lp-nav .lp-nav-cell:hover { background: #eef2fa; color: var(--nav-ink); }
.lp-nav .lp-nav-cell + .lp-nav-cell { border-left: 1px solid var(--nav-line-2); }
.lp-nav .lp-nav-cell--primary { background: var(--nav-blue); color: #fff; margin: -1px -1px -1px 0; border-left: 0 !important; }
.lp-nav .lp-nav-cell--primary:hover { background: #1a2039; color: #fff; }
.lp-nav-cell svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Botones del menú móvil */
.lp-mobile .lp-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    padding: 14px 18px;
    border-radius: 3px;
    text-align: center;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.lp-mobile .lp-btn-primary { background: var(--nav-blue); color: #fff; }
.lp-mobile .lp-btn-primary:hover { background: #1a2039; color: #fff; }
.lp-mobile .lp-btn-secondary { border: 1px solid var(--nav-line-2); color: var(--nav-ink); }
.lp-mobile .lp-btn-secondary:hover { border-color: var(--nav-ink); }

/* Burger + menú móvil */
.lp-nav-burger {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--nav-line-2);
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.lp-nav-burger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--nav-ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.lp-nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-nav-burger.is-open span:nth-child(2) { opacity: 0; }
.lp-nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.lp-mobile {
    display: none;
    position: fixed;
    inset: 64px 0 0; /* site-nav.js lo ajusta al borde inferior real del header */
    z-index: 999;
    background: #fff;
    padding: 24px var(--nav-pad-x);
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.lp-mobile.is-open { display: flex; }
.lp-mobile .lp-mobile-link {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 14px 0;
    border-bottom: 1px solid var(--nav-line);
}
.lp-mobile-actions { display: grid; gap: 10px; margin-top: 22px; }

@media (max-width: 900px) {
    .lp-nav-links, .lp-nav-actions { display: none; }
    .lp-nav-burger { display: flex; }
    .lp-announce-sep, .lp-announce-desc { display: none; }
}
@media (max-width: 560px) {
    .lp-top, .lp-mobile { --nav-pad-x: 20px; }
    .lp-nav-inner { border-left: 0; border-right: 0; }
    .lp-announce-text { gap: 10px; }
    .lp-announce-cta { font-size: 0; gap: 0; padding: 0 7px; }
}
