/* Piloto reversible del area de autenticacion. */
body.ei-auth-template {
    --auth-navy: #17384f;
    --auth-deep: #102a3d;
    --auth-teal: #17a2b8;
    --auth-teal-dark: #087f92;
    --auth-green: #28a745;
    --auth-canvas: #edf4f7;
    --auth-line: #d4e2ea;
    --auth-muted: #60798d;
    --auth-shadow: 0 24px 70px rgba(15, 39, 64, .15);
    background: radial-gradient(circle at 8% 12%, rgba(23,162,184,.12), transparent 30rem), linear-gradient(145deg,#f7fafc 0%,var(--auth-canvas) 52%,#e6f0f4 100%);
}
body.ei-auth-template::before {
    position: fixed; z-index: -1; inset: 0; pointer-events: none; content: "";
    background-image: linear-gradient(rgba(23,56,79,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(23,56,79,.025) 1px,transparent 1px);
    background-size: 32px 32px;
}
body.ei-auth-template .public-nav {
    width: min(1180px,calc(100% - 2rem)) !important;
    margin: 1rem auto 0 !important;
    border: 1px solid rgba(212,226,234,.88) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 12px 36px rgba(15,39,64,.12) !important;
    backdrop-filter: blur(18px) saturate(135%);
}
body.ei-auth-template .public-nav-links > a:not(.public-nav-login) {
    color: #17384f !important;
    font-weight: 750 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
body.ei-auth-template .public-nav-links > a:not(.public-nav-login):hover,
body.ei-auth-template .public-nav-links > a.is-active {
    background: #e7f7f9 !important;
    color: #066b7b !important;
}
body.ei-auth-template .public-nav-login {
    background: linear-gradient(135deg,var(--auth-teal-dark),var(--auth-teal)) !important;
    color: #fff !important;
}
body.ei-auth-template .public-lang-switcher {
    border-color: #bfd4df !important;
    background: #f4f8fa !important;
}
body.ei-auth-template .public-lang-switcher button { color: #38566a !important; opacity: 1 !important; }
body.ei-auth-template .public-lang-switcher button.is-active { background: var(--auth-deep) !important; color: #fff !important; }

/* Contrato visual comun para todas las paginas del menu publico. */
body.ei-auth-template .marketing-main,
body.ei-auth-template .pricing-main,
body.ei-auth-template .news-main {
    width: min(1180px,calc(100% - 2rem)) !important;
    margin-inline: auto !important;
}
body.ei-auth-template .marketing-hero {
    margin-top: 1.25rem !important;
    border: 1px solid rgba(191,212,223,.9) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg,#fff 0%,#edf7f9 100%) !important;
    box-shadow: 0 28px 70px rgba(15,39,64,.14) !important;
    overflow: hidden !important;
}
body.ei-auth-template :where(.marketing-heading,.pricing-heading) h2,
body.ei-auth-template :where(.marketing-heading,.pricing-heading) h1 {
    color: var(--auth-deep) !important;
}
body.ei-auth-template :where(.marketing-card,.marketing-panel,.marketing-value,.audience-path,.pricing-card,.accountant-plan,.pricing-picker,.pricing-featured,.pricing-steps article,.contact-primary,.contact-mini,.news-video-card,.news-editorial-card) {
    border: 1px solid rgba(212,226,234,.96) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 34px rgba(15,39,64,.09) !important;
}
body.ei-auth-template :where(.marketing-card,.marketing-panel,.marketing-value,.audience-path,.pricing-card,.pricing-picker,.pricing-featured,.pricing-steps article,.contact-primary,.contact-mini,.news-video-card) {
    background: rgba(255,255,255,.97) !important;
    color: var(--auth-deep) !important;
}
body.ei-auth-template :where(.marketing-card,.marketing-panel,.marketing-value,.audience-path,.pricing-card,.contact-primary,.contact-mini,.news-video-card):hover {
    transform: translateY(-3px);
    border-color: rgba(23,162,184,.48) !important;
    box-shadow: 0 20px 44px rgba(15,39,64,.14) !important;
}
body.ei-auth-template :where(.marketing-btn,.pricing-action) {
    min-height: 44px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}
body.ei-auth-template :where(.marketing-story-section,.marketing-split,.pricing-section,.news-intro,.news-community,.marketing-location-visual) {
    margin-top: 1.5rem !important;
    border-radius: 18px !important;
}
body.ei-auth-template .marketing-faq details {
    margin-bottom: .7rem !important;
    border: 1px solid var(--auth-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(15,39,64,.06) !important;
}
body.ei-auth-template .public-trust-strip {
    border-block: 1px solid var(--auth-line) !important;
    background: #f4fafb !important;
}
body.ei-auth-template .public-footer {
    margin-top: 2rem !important;
    border-top: 4px solid var(--auth-teal) !important;
}
body.ei-auth-template .public-whatsapp-float {
    border: 2px solid #fff !important;
    box-shadow: 0 14px 30px rgba(15,39,64,.2) !important;
}
@media (max-width: 991.98px) {
    body.ei-auth-template .public-nav { width: calc(100% - 1rem) !important; margin-top: .5rem !important; }
    body.ei-auth-template .public-nav-links { background: #fff !important; border: 1px solid var(--auth-line) !important; }
    body.ei-auth-template .public-nav-links > a { color: #17384f !important; }
    body.ei-auth-template .marketing-main,
    body.ei-auth-template .pricing-main,
    body.ei-auth-template .news-main { width: min(100% - 1rem,1180px) !important; }
    body.ei-auth-template .marketing-hero { border-radius: 16px !important; }
}

/* Flujos auxiliares: estructura compartida, no una tarjeta Bootstrap aislada. */
body.ei-auth-template .auth-flow-page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 1rem;
    background:
        radial-gradient(circle at 12% 18%,rgba(32,188,190,.18),transparent 27rem),
        linear-gradient(145deg,#e8f1f4,#f9fbfc 55%,#e5f0f2);
}
body.ei-auth-template .auth-flow-topbar,
body.ei-auth-template .auth-flow-footer {
    width: min(1120px,100%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.ei-auth-template .auth-flow-topbar { min-height: 64px; }
body.ei-auth-template .auth-flow-brand {
    display: inline-flex;
    padding: .45rem .7rem;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,39,64,.09);
}
body.ei-auth-template .auth-flow-brand img { width: auto; height: 38px; object-fit: contain; }
body.ei-auth-template .auth-flow-home {
    display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem;
    border-radius: 10px; color: var(--auth-deep); font-weight: 800; text-decoration: none;
}
body.ei-auth-template .auth-flow-home:hover { background: #fff; color: var(--auth-teal-dark); }
body.ei-auth-template .auth-flow-shell {
    width: min(1120px,100%); min-height: 560px; margin: 1rem auto;
    display: grid; grid-template-columns: minmax(280px,.9fr) minmax(360px,1.1fr);
    overflow: hidden; border: 1px solid rgba(191,212,223,.9); border-radius: 24px;
    background: #fff; box-shadow: 0 32px 80px rgba(15,39,64,.18);
}
body.ei-auth-template .auth-flow-context {
    display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,5vw,4.5rem);
    background:
        radial-gradient(circle at 75% 20%,rgba(71,224,210,.22),transparent 19rem),
        linear-gradient(145deg,#102a3d,#174d61 65%,#0b6572);
    color: #fff;
}
body.ei-auth-template .auth-flow-eyebrow {
    width: max-content; padding: .38rem .68rem; border: 1px solid rgba(117,238,230,.35);
    border-radius: 999px; color: #75eee6; font-size: .72rem; font-weight: 900;
    letter-spacing: .12em; text-transform: uppercase;
}
body.ei-auth-template .auth-flow-context h2 {
    margin: 1.25rem 0 .85rem; color: #fff; font-size: clamp(2rem,4vw,3.2rem);
    font-weight: 850; line-height: 1.03; letter-spacing: -.05em;
}
body.ei-auth-template .auth-flow-context p { color: #cce3e9; line-height: 1.7; }
body.ei-auth-template .auth-flow-signal { display: grid; gap: .65rem; margin-top: 1.5rem; }
body.ei-auth-template .auth-flow-signal span { display: flex; align-items: center; gap: .7rem; color: #e8f8f9; font-weight: 700; }
body.ei-auth-template .auth-flow-signal i { width: 22px; color: #75eee6; text-align: center; }
body.ei-auth-template .auth-flow-card {
    display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem,5vw,4rem);
}
body.ei-auth-template .auth-flow-card > h1,
body.ei-auth-template .auth-flow-card header h1 {
    margin: 0 0 .65rem; color: var(--auth-deep); font-size: clamp(1.7rem,3vw,2.4rem);
    font-weight: 850; letter-spacing: -.035em;
}
body.ei-auth-template .auth-flow-card > hr { display: none; }
body.ei-auth-template .auth-flow-card > p,
body.ei-auth-template .auth-flow-card header p { color: var(--auth-muted); line-height: 1.65; }
body.ei-auth-template .auth-flow-card .row { --bs-gutter-x: 0; margin-top: 1.25rem; }
body.ei-auth-template .auth-flow-card .row > [class*="col-"] { width: 100%; max-width: 100%; }
body.ei-auth-template .auth-flow-card .form-control { min-height: 54px; border-color: var(--auth-line); border-radius: 11px; }
body.ei-auth-template .auth-flow-card .btn { min-height: 50px; border-radius: 10px; font-weight: 850; }
body.ei-auth-template .auth-flow-footer { min-height: 48px; color: var(--auth-muted); font-size: .84rem; }
body.ei-auth-template .auth-flow-footer a { color: var(--auth-teal-dark); font-weight: 750; }

body.ei-auth-template .auth-task-header { margin-bottom: 1.5rem; }
body.ei-auth-template .auth-task-icon { display: grid; width: 52px; height: 52px; margin-bottom: 1rem; place-items: center; border-radius: 14px; background: #e5f6f7; color: var(--auth-teal-dark); font-size: 1.15rem; }
body.ei-auth-template .auth-task-kicker { display: block; margin-bottom: .45rem; color: var(--auth-teal-dark); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body.ei-auth-template .auth-task-header h1 { margin: 0 0 .65rem; color: var(--auth-deep); font-weight: 850; letter-spacing: -.035em; }
body.ei-auth-template .auth-task-header p { max-width: 52ch; margin: 0; color: var(--auth-muted); line-height: 1.65; }
body.ei-auth-template .auth-task-form { display: grid; gap: 1rem; }
body.ei-auth-template .auth-task-field { display: grid; gap: .45rem; }
body.ei-auth-template .auth-task-field label { color: #315064; font-size: .78rem; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
body.ei-auth-template .auth-task-field label i { margin-right: .35rem; color: var(--auth-teal-dark); }
body.ei-auth-template .auth-task-submit { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; background: linear-gradient(135deg,var(--auth-teal-dark),var(--auth-teal)); color: #fff; }
body.ei-auth-template .auth-task-submit:hover { color: #fff; filter: brightness(.96); }
body.ei-auth-template .auth-task-back { justify-self: center; color: var(--auth-teal-dark); font-weight: 800; text-decoration: none; }
body.ei-auth-template .auth-task-assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--auth-line); }
body.ei-auth-template .auth-task-assurance span { padding: .38rem .6rem; border-radius: 999px; background: #f1f7f8; color: #647b89; font-size: .7rem; font-weight: 800; }
body.ei-auth-template .auth-task-check { display: flex; align-items: center; gap: .55rem; color: #536d7c; font-weight: 700; }
body.ei-auth-template .auth-task-notes { display: grid; gap: .65rem; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--auth-line); border-radius: 12px; background: #f5f9fa; }
body.ei-auth-template .auth-task-notes span { display: flex; align-items: center; gap: .6rem; color: #536d7c; }
body.ei-auth-template .auth-task-notes i { width: 20px; color: var(--auth-teal-dark); text-align: center; }
body.ei-auth-template .auth-task-header--danger .auth-task-icon { background: #fff0f0; color: #bd3b45; }
body.ei-auth-template .auth-task-header--success .auth-task-icon { background: #e8f7ef; color: #16824b; }

/* Administración de cuenta: navegación lateral y área de trabajo del mismo producto. */
body.ei-auth-template .account-template { width: min(1120px,100%); margin: 1.5rem auto 3rem; }
body.ei-auth-template .account-template__header {
    padding: clamp(1.6rem,4vw,2.8rem); border-radius: 20px 20px 0 0;
    background: linear-gradient(120deg,#102a3d,#174d61 65%,#0b6572); color: #fff;
}
body.ei-auth-template .account-template__eyebrow { color: #75eee6; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body.ei-auth-template .account-template__header h1 { margin: .55rem 0 .45rem; color: #fff; font-weight: 850; letter-spacing: -.04em; }
body.ei-auth-template .account-template__header p { max-width: 70ch; margin: 0; color: #cce3e9; }
body.ei-auth-template .account-template__grid {
    display: grid; grid-template-columns: 280px 1fr; min-height: 520px;
    border: 1px solid var(--auth-line); border-top: 0; border-radius: 0 0 20px 20px;
    background: #fff; box-shadow: var(--auth-shadow); overflow: hidden;
}
body.ei-auth-template .account-template__nav { padding: 1.25rem; background: #f3f8fa; border-right: 1px solid var(--auth-line); }
body.ei-auth-template .account-template__menu { gap: .45rem; }
body.ei-auth-template .account-template__menu .nav-link {
    display: flex; align-items: center; gap: .8rem; padding: .82rem .9rem;
    border-radius: 10px; color: #38566a; font-weight: 750;
}
body.ei-auth-template .account-template__menu .nav-link i { width: 20px; color: var(--auth-teal-dark); text-align: center; }
body.ei-auth-template .account-template__menu .nav-link:hover { background: #e4f4f6; color: var(--auth-deep); }
body.ei-auth-template .account-template__menu .nav-link.active { background: linear-gradient(135deg,var(--auth-teal-dark),var(--auth-teal)); color: #fff; box-shadow: 0 10px 22px rgba(23,162,184,.22); }
body.ei-auth-template .account-template__menu .nav-link.active i { color: #fff; }
body.ei-auth-template .account-template__content { padding: clamp(1.5rem,4vw,3rem); }
body.ei-auth-template .account-template__content > h3 { color: var(--auth-deep); font-weight: 850; letter-spacing: -.025em; }
body.ei-auth-template .account-template__content .form-control { min-height: 50px; border-color: var(--auth-line); border-radius: 10px; }
body.ei-auth-template .account-template__content .btn { border-radius: 10px; font-weight: 800; }

@media (max-width: 767.98px) {
    body.ei-auth-template .auth-flow-page { padding: .55rem; }
    body.ei-auth-template .auth-flow-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
    body.ei-auth-template .auth-flow-context { padding: 1.5rem; }
    body.ei-auth-template .auth-flow-context h2 { font-size: 1.8rem; }
    body.ei-auth-template .auth-flow-signal { display: none; }
    body.ei-auth-template .auth-flow-card { padding: 1.5rem; }
    body.ei-auth-template .account-template { margin-top: .75rem; }
    body.ei-auth-template .account-template__grid { grid-template-columns: 1fr; }
    body.ei-auth-template .account-template__nav { border-right: 0; border-bottom: 1px solid var(--auth-line); }
    body.ei-auth-template .account-template__menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.ei-auth-template .account-template__menu .nav-link { height: 100%; font-size: .82rem; }
}

/* ==========================================================
   QA DE LEGIBILIDAD Y ESPACIADO
   Reglas finales deliberadamente específicas para evitar que
   estilos históricos de cada página reduzcan el contraste.
   ========================================================== */
body.ei-auth-template .home-refresh-shell {
    padding-top: 0 !important;
}
body.ei-auth-template .home-refresh-shell .home-refresh-hero {
    padding-top: 7.75rem !important;
}
body.ei-auth-template .home-refresh-shell .home-refresh-intro {
    margin-top: 0 !important;
}

/* Navegación: contraste consistente en todas las páginas. */
body.ei-auth-template .marketing-page .public-nav-links > a:not(.public-nav-login),
body.ei-auth-template .home-refresh-shell .public-nav-links > a:not(.public-nav-login) {
    color: #eefcfd !important;
    opacity: 1 !important;
}
body.ei-auth-template .marketing-page .public-nav-links > .public-nav-login,
body.ei-auth-template .home-refresh-shell .public-nav-links > .public-nav-login {
    border-color: #ffffff !important;
    background: #ffffff !important;
    color: #07596a !important;
    opacity: 1 !important;
}
body.ei-auth-template .marketing-page .public-nav-links > .public-nav-login :where(i,span),
body.ei-auth-template .home-refresh-shell .public-nav-links > .public-nav-login :where(i,span) {
    color: inherit !important;
}

/* Hero de Inicio: ningún texto informativo queda apagado. */
body.ei-auth-template .home-refresh-shell .home-refresh-intro :where(.pos-login-guidance,.pos-login-guidance i,.home-refresh-assurance,.home-refresh-assurance i) {
    color: #e6faf8 !important;
    opacity: 1 !important;
}
body.ei-auth-template .home-refresh-shell .home-refresh-intro .pos-brand-features,
body.ei-auth-template .home-refresh-shell .home-refresh-intro .pos-brand-features :where(span,strong,i) {
    color: #204b5d !important;
    opacity: 1 !important;
}

/* CTA oscuros: títulos, descripciones y botones con contraste AA. */
body.ei-auth-template .marketing-page .marketing-cta,
body.ei-auth-template .marketing-page .pricing-cta,
body.ei-auth-template .marketing-page .news-cta {
    border: 1px solid rgba(255,255,255,.12) !important;
    background: linear-gradient(135deg,#102f43 0%,#0b6572 100%) !important;
}
body.ei-auth-template .marketing-page :where(.marketing-cta,.pricing-cta,.news-cta) :where(h1,h2,h3,strong) {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.ei-auth-template .marketing-page :where(.marketing-cta,.pricing-cta,.news-cta) p {
    color: #d7ecef !important;
    opacity: 1 !important;
}
body.ei-auth-template .marketing-page :where(.marketing-cta,.pricing-cta,.news-cta) .marketing-btn,
body.ei-auth-template .marketing-page :where(.marketing-cta,.pricing-cta,.news-cta) .pricing-action {
    border-color: #55e2ad !important;
    background: #35d88f !important;
    color: #092f2c !important;
    opacity: 1 !important;
}
body.ei-auth-template .marketing-page :where(.marketing-cta,.pricing-cta,.news-cta) .marketing-btn :where(i,span),
body.ei-auth-template .marketing-page :where(.marketing-cta,.pricing-cta,.news-cta) .pricing-action :where(i,span) {
    color: inherit !important;
}

/* Pie y superficies oscuras reutilizadas. */
body.ei-auth-template .marketing-page .public-footer,
body.ei-auth-template .home-refresh-shell .public-footer {
    color: #c8e0e6 !important;
}
body.ei-auth-template :where(.marketing-page,.home-refresh-shell) .public-footer :where(strong,a) {
    color: #f4fcfd !important;
    opacity: 1 !important;
}
body.ei-auth-template :where(.marketing-page,.home-refresh-shell) .public-footer-brand span,
body.ei-auth-template :where(.marketing-page,.home-refresh-shell) .public-footer > span {
    color: #c8e0e6 !important;
    opacity: 1 !important;
}

@media (max-width: 1080px) {
    body.ei-auth-template .home-refresh-shell .home-refresh-hero {
        padding-top: 7.25rem !important;
    }
    body.ei-auth-template .marketing-page .public-nav-links > a:not(.public-nav-login),
    body.ei-auth-template .home-refresh-shell .public-nav-links > a:not(.public-nav-login) {
        color: #f4fcfd !important;
    }
}

@media (max-width: 620px) {
    body.ei-auth-template .home-refresh-shell .home-refresh-hero {
        padding-top: 6.75rem !important;
    }
    body.ei-auth-template .home-refresh-shell .home-refresh-intro {
        padding: 1.6rem 1.25rem !important;
    }
}
body.ei-auth-template .home-refresh-shell,
body.ei-auth-template .pos-auth-left {
    background:
        radial-gradient(circle at 78% 18%,rgba(23,162,184,.18),transparent 25rem),
        linear-gradient(145deg,#f8fbfc 0%,#eaf3f6 100%) !important;
}
body.ei-auth-template .home-refresh-hero {
    width: min(1180px,calc(100% - 2rem)) !important;
    margin-inline: auto !important;
}
body.ei-auth-template .home-refresh-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(1.75rem,4vw,3.25rem) !important;
    border: 1px solid rgba(191,212,223,.92) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 28px 70px rgba(15,39,64,.14) !important;
    backdrop-filter: blur(14px);
}
body.ei-auth-template .home-refresh-intro::before {
    position: absolute; top: 0; right: 0; left: 0; height: 6px; content: "";
    background: linear-gradient(90deg,var(--auth-teal-dark),var(--auth-teal) 62%,var(--auth-green));
}
body.ei-auth-template .home-refresh-pill,
body.ei-auth-template .pos-panel-kicker {
    border: 1px solid rgba(23,162,184,.26) !important;
    border-radius: 999px !important;
    background: #eaf9fb !important;
    color: #086f80 !important;
}
body.ei-auth-template .pos-hero-login,
body.ei-auth-template .marketing-btn--primary {
    border-radius: 11px !important;
    background: linear-gradient(135deg,var(--auth-teal-dark),var(--auth-teal)) !important;
    box-shadow: 0 14px 30px rgba(23,162,184,.25) !important;
}
body.ei-auth-template .pos-login-guidance,
body.ei-auth-template .pos-login-guidance i {
    color: #dff7f5 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
body.ei-auth-template :where(.home-module-card,.public-home-option-grid > a,.home-news-tile,.home-pricing-preview) {
    border: 1px solid rgba(212,226,234,.92) !important;
    border-radius: 16px !important;
    background-color: rgba(255,255,255,.94) !important;
    box-shadow: 0 14px 36px rgba(15,39,64,.09) !important;
}
body.ei-auth-template :where(.pos-login-panel,.pos-contact-panel-inner,.company-picker) {
    border: 1px solid rgba(212,226,234,.92) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: var(--auth-shadow) !important;
}
body.ei-auth-template :where(.pos-login-panel,.company-picker)::before {
    display: block; height: 4px; content: "";
    background: linear-gradient(90deg,var(--auth-teal),#42c8c0 55%,var(--auth-green));
}
body.ei-auth-template :where(.pos-input,.form-control,.form-select) {
    transition: border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
body.ei-auth-template :where(.pos-input,.form-control,.form-select):focus {
    border-color: var(--auth-teal) !important;
    box-shadow: 0 0 0 .22rem rgba(23,162,184,.14) !important;
}
body.ei-auth-template :where(.pos-btn-login,.btn-primary) {
    border-color: var(--auth-teal-dark) !important;
    background: linear-gradient(135deg,var(--auth-teal-dark),var(--auth-teal)) !important;
    box-shadow: 0 12px 26px rgba(23,162,184,.22);
}
body.ei-auth-template :where(.pos-btn-login,.btn-primary):hover {
    border-color: #066b7b !important;
    background: linear-gradient(135deg,#066b7b,var(--auth-teal-dark)) !important;
    transform: translateY(-1px);
}
/* 2FA, recuperacion, confirmaciones y acceso denegado. */
body.ei-auth-template .ei-main:not(.auth-main):not(:has(.pos-topbar)) {
    position: relative; width: min(100%,680px); min-height: 430px;
    margin: clamp(2rem,8vh,5.5rem) auto; padding: clamp(1.5rem,4vw,3rem) !important;
    overflow: hidden; border: 1px solid rgba(212,226,234,.94); border-radius: 18px;
    background: rgba(255,255,255,.96); box-shadow: var(--auth-shadow);
}
body.ei-auth-template .ei-main:not(.auth-main):not(:has(.pos-topbar))::after {
    position: absolute; top: 0; right: 0; left: 0; height: 5px; content: "";
    background: linear-gradient(90deg,var(--auth-teal-dark),var(--auth-teal) 62%,var(--auth-green));
}
body.ei-auth-template .ei-main:not(.auth-main) > h1 {
    margin-bottom: .75rem; color: var(--auth-deep); font-family: "Sora","IBM Plex Sans",sans-serif;
    font-size: clamp(1.55rem,3vw,2.15rem); font-weight: 800; letter-spacing: -.035em;
}
body.ei-auth-template .ei-main:not(.auth-main) > h1::before {
    display: grid; width: 46px; height: 46px; margin-bottom: 1rem; place-items: center;
    border-radius: 13px; content: "EI"; background: linear-gradient(145deg,var(--auth-navy),var(--auth-teal-dark));
    color: #fff; font-family: "IBM Plex Mono",monospace; font-size: .78rem; letter-spacing: .06em;
    box-shadow: 0 10px 22px rgba(15,39,64,.2);
}
body.ei-auth-template .ei-main:not(.auth-main) > p { max-width: 55ch; color: var(--auth-muted); line-height: 1.65; }
body.ei-auth-template .ei-main:not(.auth-main) > .row { --bs-gutter-x: 0; margin-top: 1.5rem; }
body.ei-auth-template .ei-main:not(.auth-main) > .row > [class*="col-"] { width: 100%; max-width: 100%; }
body.ei-auth-template .ei-main:not(.auth-main) > .row .form-control {
    min-height: 52px; border-color: var(--auth-line); border-radius: 10px; background-color: #fbfdfe;
}
body.ei-auth-template .ei-main:not(.auth-main) > .row .btn {
    min-height: 50px; margin-top: .5rem; border-radius: 10px; font-weight: 800;
}
@media (max-width: 767.98px) {
    body.ei-auth-template .ei-main:not(.auth-main):not(:has(.pos-topbar)) {
        min-height: 0; margin: 1rem auto 2rem; padding: 1.35rem !important; border-radius: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.ei-auth-template *,body.ei-auth-template *::before,body.ei-auth-template *::after {
        transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   PROPUESTA DE TEMPLATE V2
   Una dirección visual deliberadamente visible para evaluar
   la renovación completa antes de extenderla al panel interno.
   ========================================================== */
body.ei-auth-template {
    background: #edf3f6 !important;
}
body.ei-auth-template .marketing-page,
body.ei-auth-template .pricing-page,
body.ei-auth-template .news-page,
body.ei-auth-template .pos-auth-wrap {
    background: linear-gradient(180deg,#edf3f6 0,#f8fafb 38rem,#edf3f6 100%) !important;
}

/* Barra de producto: oscura, contrastada y estable en todo el sitio. */
body.ei-auth-template .public-nav {
    min-height: 68px !important;
    padding: .55rem .75rem !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 18px !important;
    background: linear-gradient(105deg,#102a3d 0%,#173f54 58%,#0b6572 100%) !important;
    box-shadow: 0 18px 42px rgba(8,31,45,.25) !important;
}
body.ei-auth-template .public-brand {
    padding: .35rem .65rem !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.18) !important;
}
body.ei-auth-template .public-brand img { max-height: 40px !important; }
body.ei-auth-template .public-nav-links > a:not(.public-nav-login) {
    padding: .72rem .78rem !important;
    border-radius: 9px !important;
    color: #eaf8fa !important;
    font-size: .82rem !important;
    font-weight: 750 !important;
}
body.ei-auth-template .public-nav-links > a:not(.public-nav-login):hover,
body.ei-auth-template .public-nav-links > a.is-active {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}
body.ei-auth-template .public-nav-links > a.is-active {
    box-shadow: inset 0 -3px 0 #43d3d0 !important;
}
body.ei-auth-template .public-lang-switcher {
    border-color: rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.08) !important;
}
body.ei-auth-template .public-lang-switcher button { color: #dff5f6 !important; }
body.ei-auth-template .public-lang-switcher button.is-active { background: #fff !important; color: #17384f !important; }
body.ei-auth-template .public-nav-login {
    border: 1px solid rgba(255,255,255,.6) !important;
    background: #fff !important;
    color: #0b6572 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
}

/* Un único encabezado de producto para las seis páginas interiores. */
body.ei-auth-template .marketing-hero {
    position: relative !important;
    min-height: 410px !important;
    padding: clamp(2rem,5vw,4.6rem) !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 82% 18%,rgba(54,211,196,.24),transparent 24rem),
        linear-gradient(135deg,#102a3d 0%,#173f54 62%,#0b6572 100%) !important;
    color: #fff !important;
    box-shadow: 0 30px 70px rgba(8,31,45,.24) !important;
}
body.ei-auth-template .marketing-hero::after {
    position: absolute; inset: 0; pointer-events: none; content: "";
    background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size: 36px 36px;
}
body.ei-auth-template .marketing-hero-inner { position: relative !important; z-index: 1 !important; }
body.ei-auth-template .marketing-hero :where(h1,h2,.marketing-heading,p) { color: #fff !important; }
body.ei-auth-template .marketing-hero p { color: #cce3e9 !important; }
body.ei-auth-template .marketing-kicker {
    display: inline-flex !important; padding: .45rem .75rem !important;
    border: 1px solid rgba(92,227,218,.35) !important; border-radius: 999px !important;
    background: rgba(20,151,158,.16) !important; color: #75eee6 !important;
}
body.ei-auth-template .hero-visual-card,
body.ei-auth-template .news-hero-visual {
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.1) !important;
    box-shadow: 0 24px 55px rgba(0,0,0,.22) !important;
    backdrop-filter: blur(12px) !important;
}

/* Inicio pasa a leerse como dashboard comercial, no como HTML continuo. */
body.ei-auth-template .home-refresh-shell { padding-top: 1rem !important; }
body.ei-auth-template .home-refresh-intro {
    min-height: 430px !important;
    display: grid !important;
    align-content: center !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 82% 15%,rgba(54,211,196,.25),transparent 24rem),
        linear-gradient(135deg,#102a3d 0%,#173f54 62%,#0b6572 100%) !important;
    color: #fff !important;
}
body.ei-auth-template .home-refresh-title { color: #fff !important; max-width: 16ch !important; }
body.ei-auth-template .home-refresh-subtitle { color: #cce3e9 !important; max-width: 64ch !important; }
body.ei-auth-template .home-refresh-pill { background: rgba(20,151,158,.16) !important; color: #75eee6 !important; }
body.ei-auth-template .pos-brand-features,
body.ei-auth-template .public-trust-strip {
    border: 1px solid var(--auth-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(15,39,64,.08) !important;
}

/* Ritmo de página y superficies repetibles. */
body.ei-auth-template :where(.marketing-main,.pricing-main,.news-main) > :where(section,div.marketing-story-section,div.marketing-split) {
    margin-block: 1.25rem !important;
}
body.ei-auth-template :where(.marketing-card-grid,.marketing-values-grid,.audience-path-grid,.pricing-grid,.pricing-accountant-grid,.pricing-steps__grid,.news-video-grid,.contact-choice-grid,.workflow-grid) {
    gap: 1rem !important;
}
body.ei-auth-template :where(.marketing-card,.marketing-panel,.marketing-value,.audience-path,.pricing-card,.accountant-plan,.pricing-picker,.pricing-featured,.pricing-steps article,.contact-primary,.contact-mini,.news-video-card,.workflow-step) {
    padding: 1.35rem !important;
    border-top: 4px solid transparent !important;
}
body.ei-auth-template :where(.marketing-card,.marketing-panel,.marketing-value,.audience-path,.pricing-card,.contact-primary,.contact-mini,.news-video-card,.workflow-step):hover {
    border-top-color: var(--auth-teal) !important;
}
body.ei-auth-template .pricing-card--recommended {
    border: 2px solid var(--auth-teal) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 55px rgba(23,162,184,.2) !important;
}
body.ei-auth-template .pricing-card__badge {
    border-radius: 999px !important;
    background: var(--auth-teal) !important;
    color: #fff !important;
}
body.ei-auth-template .marketing-cta,
body.ei-auth-template .pricing-cta,
body.ei-auth-template .news-cta {
    padding: clamp(1.5rem,4vw,3rem) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg,#102a3d,#0b6572) !important;
    color: #fff !important;
    box-shadow: 0 22px 50px rgba(8,31,45,.2) !important;
}
body.ei-auth-template :where(.marketing-cta,.pricing-cta,.news-cta) :where(h2,h3,p) { color: #fff !important; }

/* Panel de acceso convertido en componente del mismo template. */
body.ei-auth-template .pos-login-backdrop { backdrop-filter: blur(7px) !important; background: rgba(8,31,45,.58) !important; }
body.ei-auth-template .pos-auth-right { padding: 1rem !important; background: transparent !important; }
body.ei-auth-template .pos-login-panel {
    overflow: hidden !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg,#fff,#f4fafb) !important;
}
body.ei-auth-template .pos-login-panel-header {
    margin: -1px -1px 1rem !important;
    padding: 1.25rem !important;
    background: linear-gradient(135deg,#102a3d,#0b6572) !important;
    color: #fff !important;
}
body.ei-auth-template .pos-login-title,
body.ei-auth-template .pos-login-brand-name { color: #fff !important; }

@media (max-width: 991.98px) {
    body.ei-auth-template .public-nav-links {
        margin-top: .65rem !important; padding: .65rem !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        background: #102a3d !important;
        box-shadow: 0 18px 35px rgba(0,0,0,.22) !important;
    }
    body.ei-auth-template .public-nav-toggle { color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
    body.ei-auth-template .marketing-hero { min-height: 0 !important; padding: 1.5rem !important; }
    body.ei-auth-template .home-refresh-intro { min-height: 0 !important; }
    body.ei-auth-template .pricing-card--recommended { transform: none !important; }
}
