/* ==========================================================================
   Marca INFO-TEC CHILE — piezas compartidas por todas las páginas públicas
   - .itc-logo / .itc-brand : sello oficial + nombre (nunca traducido)
   - .itc-pill-btn          : botón píldora dorado « Ingresar »
   - .itc-login             : ventana de acceso (login, recuperación, 2FA)
   - .itc-footer-brand      : bloque de marca en pies de página
   Se carga DESPUÉS de las hojas propias de cada página. Solo añade clases
   nuevas (no reescribe las reglas existentes de styles.css).
   ========================================================================== */

:root {
    --itc-pill-from: #F2D879;
    --itc-pill-to: #DAB63E;
    --itc-pill-ink: #0C183F;
    --itc-brand-gold: var(--itc-gold-500, #DAB63E);
}

/* ── Sello ──────────────────────────────────────────────────────────────── */
.itc-logo {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.itc-logo--sm { width: 32px; height: 32px; }
.itc-logo--md { width: 48px; height: 48px; }
.itc-logo--lg { width: 64px; height: 64px; }

/* Sello con halo dorado (ventana de acceso, páginas de seguridad) */
.itc-logo-halo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 182, 62, 0.26) 0%, rgba(218, 182, 62, 0.08) 58%, rgba(218, 182, 62, 0) 72%);
}
.itc-logo-halo::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(218, 182, 62, 0.35);
    box-shadow: 0 0 28px rgba(218, 182, 62, 0.28);
}
.itc-logo-halo .itc-logo {
    position: relative;
    width: 84px;
    height: 84px;
}
.itc-logo-halo--sm { width: 80px; height: 80px; margin-bottom: 12px; }
.itc-logo-halo--sm .itc-logo { width: 64px; height: 64px; }

/* ── Logo + nombre ──────────────────────────────────────────────────────── */
.itc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.itc-brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.15;
}
.itc-brand__name {
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--itc-brand-gold);
    white-space: nowrap;
}
.itc-brand__tag {
    margin-top: 2px;
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--itc-text-secondary, #AEB9D4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Variante centrada (tarjetas de acceso, páginas de seguridad) */
.itc-brand--center {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}
.itc-brand--center .itc-brand__text { align-items: center; }

/* ── Botón píldora dorado ───────────────────────────────────────────────── */
.itc-pill-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 6px 60px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--itc-pill-from) 0%, var(--itc-pill-to) 100%);
    color: var(--itc-pill-ink);
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 10px 26px rgba(218, 182, 62, 0.32),
        0 0 0 1px rgba(218, 182, 62, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.itc-pill-btn::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--itc-pill-ink);
    color: var(--itc-pill-from);
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(12, 24, 63, 0.35);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}
.itc-pill-btn:hover {
    filter: brightness(1.04) saturate(1.05);
    box-shadow:
        0 12px 32px rgba(218, 182, 62, 0.48),
        0 0 0 1px rgba(242, 216, 121, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.itc-pill-btn:hover::after { transform: translate(3px, -50%); }
.itc-pill-btn:active {
    transform: translateY(1px) scale(0.985);
    filter: brightness(0.97);
    box-shadow:
        0 4px 12px rgba(218, 182, 62, 0.3),
        inset 0 2px 5px rgba(12, 24, 63, 0.2);
}
.itc-pill-btn:focus-visible {
    outline: 3px solid var(--itc-gold-400, #FFE066);
    outline-offset: 3px;
}
.itc-pill-btn:disabled,
.itc-pill-btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.itc-pill-btn--block { display: flex; width: 100%; }

/* Variante compacta (cabecera) : flecha a la izquierda */
.itc-pill-btn--sm {
    white-space: nowrap;
    min-height: 42px;
    padding: 4px 18px 4px 46px;
    font-size: 0.92rem;
    box-shadow:
        0 6px 18px rgba(218, 182, 62, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.itc-pill-btn--sm::after {
    right: auto;
    left: 4px;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
}
.itc-pill-btn--sm:hover::after { transform: translate(2px, -50%); }

@media (prefers-reduced-motion: reduce) {
    .itc-pill-btn,
    .itc-pill-btn::after { transition: none; }
    .itc-pill-btn:hover::after { transform: translateY(-50%); }
    .itc-pill-btn--sm:hover::after { transform: translateY(-50%); }
}

/* ── Cabecera de la portada (index.html) ────────────────────────────────── */
#landing-view .landing-brand.itc-brand { gap: 10px; font-family: inherit; }
#landing-view .landing-brand .itc-logo { width: 46px; height: 46px; }
#landing-view .landing-brand .itc-brand__name {
    font-size: 0.98rem;
    line-height: 1.1;
    color: var(--itc-brand-gold);
}
#landing-view .landing-brand .itc-brand__name-part { display: inline; }
#landing-view .landing-brand .itc-brand__tag { font-size: 0.7rem; line-height: 1.2; }
#landing-view .landing-mnav-login { display: none; }

@media (max-width: 900px) {
    #landing-view .landing-brand .itc-logo { width: 42px; height: 42px; }
    #landing-view .landing-brand .itc-brand__name {
        display: flex;
        flex-direction: column;
        font-size: 0.86rem;
        letter-spacing: 0.16em;
        line-height: 1.12;
    }
    #landing-view .landing-brand .itc-brand__name-part { display: block; }
    #landing-view .landing-brand .itc-brand__name-part + .itc-brand__name-part { color: #fff; }
    #landing-view .landing-brand .itc-brand__tag { display: none; }
    #landing-view .landing-mnav-login {
        display: inline-flex;
        margin-left: auto;
        margin-right: 10px;
        flex-shrink: 0;
    }
}
@media (max-width: 400px) {
    #landing-view .landing-brand .itc-logo { width: 36px; height: 36px; }
    #landing-view .landing-brand .itc-brand__name { font-size: 0.78rem; letter-spacing: 0.12em; }
    #landing-view .landing-mnav-login { margin-right: 6px; padding: 4px 12px 4px 40px; font-size: 0.84rem; min-height: 38px; }
    #landing-view .landing-mnav-login::after { width: 30px; height: 30px; font-size: 0.75rem; }
}

/* Botón « Iniciar sesión » de la barra de escritorio : píldora dorada */
@media (min-width: 901px) {
    #landing-view #landing-nav-panel .btn-nav.btn-gold.btn-nav-login {
        position: relative;
        border-radius: 999px !important;
        padding: 8px 20px 8px 50px !important;
        background: linear-gradient(135deg, var(--itc-pill-from) 0%, var(--itc-pill-to) 100%) !important;
        color: var(--itc-pill-ink) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        text-transform: none !important;
        letter-spacing: 0.01em !important;
        font-size: 0.92rem !important;
        box-shadow: 0 6px 18px rgba(218, 182, 62, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-gold.btn-nav-login::after {
        content: "\f061";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--itc-pill-ink);
        color: var(--itc-pill-from);
        font-size: 0.8rem;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-gold.btn-nav-login:active {
        transform: translateY(1px) scale(0.985);
    }
}

/* Botones « Pack Ofimática » e « Inscribirse » de la barra de escritorio :
   mismo formato píldora que « Iniciar sesión », en minúsculas y con icono */
@media (min-width: 901px) {
    #landing-view #landing-nav-panel .btn-nav.btn-nav-pack,
    #landing-view #landing-nav-panel .btn-nav.btn-nav-register {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 42px;
        padding: 0 20px;
        border-radius: 999px;
        border-left-width: 1px;
        font-family: 'Inter', 'Montserrat', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.005em;
        text-transform: none;
        white-space: nowrap;
        box-shadow: none;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-pack::before,
    #landing-view #landing-nav-panel .btn-nav.btn-nav-register::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.85rem;
        line-height: 1;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-pack {
        color: #E6EAF5;
        background: transparent;
        border: 1px solid transparent;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-pack::before {
        content: "\f109";
        color: var(--itc-pill-from);
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-pack:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.07);
        transform: none;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-register {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.28);
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-register::before {
        content: "\f234";
        color: var(--itc-pill-from);
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-register:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--itc-pill-from);
        box-shadow: 0 0 0 3px rgba(218, 182, 62, 0.15);
        transform: none;
    }
    #landing-view #landing-nav-panel .btn-nav.btn-nav-pack:focus-visible,
    #landing-view #landing-nav-panel .btn-nav.btn-nav-register:focus-visible {
        outline: 2px solid var(--itc-pill-from);
        outline-offset: 2px;
    }
}

/* ── Portada : eyebrow, confianza y accesos rápidos ─────────────────────── */
.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(218, 182, 62, 0.45);
    background: rgba(12, 24, 63, 0.55);
    color: var(--itc-pill-from);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.landing-eyebrow i { font-size: 0.85rem; }
.hero-content .landing-eyebrow-wrap { margin: 0; }

.landing-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    color: #E6EAF5;
    font-size: 0.86rem;
    font-weight: 600;
}
.landing-trust li { display: inline-flex; align-items: center; gap: 7px; }
.landing-trust i { color: var(--itc-pill-from); }

.landing-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(760px, 100%);
    margin: 28px auto 0;
}
.landing-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(58, 102, 190, 0.55);
    background: linear-gradient(135deg, rgba(19, 37, 87, 0.92), rgba(13, 26, 65, 0.92));
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.landing-quick-card:hover { border-color: rgba(218, 182, 62, 0.65); }
.landing-quick-card:active { transform: scale(0.99); }
.landing-quick-card:focus-visible { outline: 3px solid var(--itc-gold-400, #FFE066); outline-offset: 2px; }
.landing-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--itc-pill-from);
    font-size: 1.15rem;
}
.landing-quick-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.landing-quick-title { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.landing-quick-sub { color: var(--itc-text-secondary, #AEB9D4); font-size: 0.8rem; margin-top: 2px; }
.landing-quick-chevron { color: #AEB9D4; font-size: 0.85rem; }

/* Botón « Espacio estudiante » con icono */
#landing-view .hero-actions .btn-main-dark::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    margin-right: 10px;
    color: var(--itc-pill-from);
}

@media (max-width: 900px) {
    .landing-quick { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
    .landing-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
        font-size: 0.76rem;
        line-height: 1.25;
    }
    .landing-trust li { flex-direction: column; gap: 5px; text-align: center; }
    .landing-trust i { font-size: 1rem; }
    #landing-view .hero-content .landing-eyebrow { font-size: 0.74rem; padding: 6px 12px; }
}

/* Barra inferior móvil : « Acceso estudiantes » destacado en dorado */
#public-bottom-nav .public-mnav-item--login i { color: var(--itc-pill-from); }

/* ── Ventana de acceso (login / recuperación / 2FA) ─────────────────────── */
.login-box.itc-login {
    position: relative;
    max-width: 420px;
    padding: 30px 26px 22px;
    border-radius: 24px;
    border: 1px solid rgba(58, 102, 190, 0.55);
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(58, 102, 190, 0.32) 0%, rgba(58, 102, 190, 0) 60%),
        linear-gradient(180deg, #132557 0%, #0D1A41 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    text-align: center;
    color: #fff;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.itc-login .landing-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #DCE3F5;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
}
.itc-login .landing-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.itc-login .landing-close:focus-visible { outline: 3px solid var(--itc-gold-400, #FFE066); outline-offset: 2px; }

.itc-login__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}
.itc-login__subtitle {
    margin: 0 0 22px;
    color: var(--itc-text-secondary, #AEB9D4);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Campo con icono y etiqueta */
.itc-field {
    position: relative;
    display: block;
    margin: 0 0 12px;
    padding: 9px 14px 7px 52px;
    border-radius: 16px;
    border: 1px solid rgba(58, 102, 190, 0.55);
    background: rgba(9, 18, 50, 0.72);
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.itc-field:focus-within {
    border-color: var(--itc-brand-gold);
    background: rgba(9, 18, 50, 0.92);
    box-shadow: 0 0 0 3px rgba(255, 224, 102, 0.28);
}
.itc-field__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--itc-pill-from);
    font-size: 1.05rem;
    pointer-events: none;
}
.itc-field__label {
    display: block;
    margin: 0 0 1px;
    color: #C9D2EA;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: text;
}
.itc-login .itc-field .login-input,
.itc-field .itc-field__input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 2px 0 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none;
}
.itc-login .itc-field .login-input::placeholder { color: #7F8BAA; font-weight: 400; }
.itc-login .itc-field .login-input:focus,
.itc-login .itc-field .login-input:focus-visible {
    outline: none;
    border: 0;
    box-shadow: none;
}
/* El botón ojo (password-toggle.js) se centra sobre todo el campo */
.itc-field .password-field { position: static; }
.itc-field .password-field__input { padding-right: 44px !important; }
.itc-login .itc-field .password-field__toggle {
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #AEB9D4;
}
.itc-login .itc-field .password-field__toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Campo simple (sin etiqueta flotante) : código 2FA, correo de recuperación */
.itc-login .login-input.itc-input {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(58, 102, 190, 0.55);
    background: rgba(9, 18, 50, 0.72);
    color: #fff;
    font-size: 1rem;
}
.itc-login .login-input.itc-input:focus,
.itc-login .login-input.itc-input:focus-visible {
    border-color: var(--itc-brand-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 224, 102, 0.28);
}

.itc-login .account-recovery-link.itc-login__forgot {
    display: block;
    width: auto;
    margin: 2px 0 18px auto;
    padding: 6px 2px;
    text-align: right;
    color: var(--itc-pill-from);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}
.itc-login .account-recovery-link.itc-login__forgot:hover,
.itc-login .account-recovery-link.itc-login__forgot:focus-visible {
    color: var(--itc-gold-400, #FFE066);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.itc-login .account-recovery-link.itc-login__forgot:focus-visible {
    outline: 2px solid var(--itc-gold-400, #FFE066);
    outline-offset: 2px;
    border-radius: 6px;
}

.itc-login__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    color: #AEB9D4;
    font-size: 0.8rem;
}
.itc-login__secure i { color: #34D399; }
.itc-login__footer {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(174, 185, 212, 0.18);
    color: #C9D2EA;
    font-size: 0.88rem;
}
.itc-login__link {
    display: inline;
    padding: 2px;
    border: 0;
    background: transparent;
    color: var(--itc-pill-from);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.itc-login__link:hover { color: var(--itc-gold-400, #FFE066); text-decoration: underline; text-underline-offset: 3px; }
.itc-login__link:focus-visible { outline: 2px solid var(--itc-gold-400, #FFE066); outline-offset: 2px; border-radius: 4px; }

/* Recuperación / 2FA dentro de la misma familia visual */
.itc-login.account-recovery-box .account-recovery-copy,
.itc-login .verify-code-info { color: #C9D2EA; }
.itc-login .account-recovery-back-link { color: #C9D2EA; }
.itc-login .account-recovery-back-link:hover,
.itc-login .account-recovery-back-link:focus-visible { color: var(--itc-pill-from); }
.itc-login .verify-code-resend { color: #C9D2EA; }

@media (max-width: 480px) {
    .login-box.itc-login { padding: 26px 18px 18px; border-radius: 22px; }
    .itc-login__title { font-size: 1.3rem; }
    .itc-logo-halo { width: 92px; height: 92px; }
    .itc-logo-halo .itc-logo { width: 74px; height: 74px; }
}

/* ── Páginas autónomas (restablecer, activar cuenta, seguridad admin) ──── */
.reset-password-page .itc-brand--center { margin: 0 auto 18px; }
.reset-password-page .itc-brand--center .itc-brand__name { font-size: 0.95rem; }
.reset-password-page .login-box { border-radius: 20px; }
.reset-password-page .itc-pill-btn { margin-top: 4px; }

/* ── Panel (barra lateral admin / estudiante) ───────────────────────────── */
#app-interface .sidebar .brand.itc-brand {
    display: flex;
    gap: 12px;
}
#app-interface .sidebar .brand .itc-logo { width: 46px; height: 46px; }
#app-interface .sidebar .brand .itc-brand__name {
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--itc-brand-gold);
}
#app-interface .sidebar .brand .itc-brand__tag { font-family: 'Montserrat', 'Inter', system-ui, sans-serif; font-size: 0.7rem; white-space: normal; overflow: visible; line-height: 1.3; }
#app-interface .sidebar .brand span.itc-brand__text,
#app-interface .sidebar .brand span.itc-brand__name,
#app-interface .sidebar .brand span.itc-brand__tag { font-family: 'Montserrat', 'Inter', system-ui, sans-serif; }

/* Logo en la barra superior cuando la barra lateral no está visible */
.top-bar .top-bar-logo { display: none; }
@media (min-width: 601px) and (max-width: 1024px) {
    #app-interface:not(.app-student-shell) .top-bar .top-bar-logo {
        display: block;
        width: 36px;
        height: 36px;
        margin-right: 4px;
    }
}
@media (max-width: 900px) {
    #app-interface.app-student-shell .top-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    #app-interface.app-student-shell .top-bar .top-bar-logo {
        display: block;
        grid-column: 1;
        width: 34px;
        height: 34px;
    }
    #app-interface.app-student-shell .top-bar #page-title { grid-column: 2; }
    #app-interface.app-student-shell .top-bar .top-bar-right-cluster { grid-column: 3; }
}

.student-more-user .itc-logo { width: 22px; height: 22px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.student-more-user .student-more-brand { display: inline-flex; align-items: center; }

/* ── Pies de página ─────────────────────────────────────────────────────── */
.itc-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.itc-footer-brand .itc-logo { width: 44px; height: 44px; }
.itc-footer-brand .itc-brand__name { font-size: 0.92rem; }
.reset-password-page .itc-login { text-align: center; }
.reset-password-page .itc-login form,
.reset-password-page .itc-login .reset-password-strength,
.reset-password-page .itc-login .account-recovery-feedback { text-align: left; }
.reset-password-page .itc-login .reset-password-strength { margin-top: 6px; color: #AEB9D4; }
.reset-password-page .itc-pill-btn--block { padding-left: 22px; padding-right: 58px; font-size: 0.98rem; }

/* Mi cuenta y seguridad (admin) */
.mca-brand.itc-brand { gap: 12px; font-family: 'Montserrat', 'Inter', system-ui, sans-serif; }
.mca-login-box .mca-brand.itc-brand { margin-bottom: 16px; }
.mca-brand.itc-brand .itc-brand__name { font-size: 0.9rem; }

/* Pies de página de las páginas « qs » (quien-somos, merci, erreur) */
.qs-landing .qs-footer .qs-footer-brand { margin-bottom: 10px; }
.qs-landing .qs-footer .qs-footer-brand strong { margin: 0; letter-spacing: 0.08em; }
.footer .footer-brand { margin: 0 auto 12px; }
.footer .footer-brand .itc-brand__name { font-size: 0.9rem; }

/* Verificación pública de certificados */
.verify-header .verify-brand { display: inline-flex; align-items: center; gap: 10px; }
.verify-header .verify-brand .itc-logo { width: 40px; height: 40px; }

/* Aplicación móvil (admin) */
.ama-brand-kicker { display: inline-flex; align-items: center; gap: 8px; }
.mca-login-box .itc-pill-btn { padding: 6px 56px 6px 22px; font-size: 0.95rem; letter-spacing: 0.02em; }
@media (max-width: 480px) {
    /* mon-compte-admin.css masque « .mca-brand span » pour la barre supérieure ;
       la carte de connexion garde le nom complet. */
    .mca-login-box .mca-brand .itc-brand__text { display: flex; }
    .mca-login-box .mca-brand .itc-brand__name,
    .mca-login-box .mca-brand .itc-brand__tag { display: block; }
}
.verify-card .verify-form input { min-width: 0; }

/* Presentiel : nom de marque d'un seul bloc (évite les espaces du flex) */
.nav-brand .nav-brand-text { color: #fff; white-space: nowrap; }
@media (max-width: 1024px) {
    #app-interface:not(.app-student-shell) .sidebar .brand.itc-brand { padding-right: 76px; }
}
@media (max-width: 374px) {
    #landing-view .landing-brand.itc-brand { gap: 7px; }
    #landing-view .landing-brand .itc-logo { width: 34px; height: 34px; }
    #landing-view .landing-brand .itc-brand__name { font-size: 0.74rem; letter-spacing: 0.1em; }
    #landing-view .landing-mnav-login { margin-right: 4px; }
}

/* Portada : si el contenido del héroe supera la altura disponible (teléfonos
   pequeños, portátiles bajos), se desplaza dentro del héroe en lugar de
   quedar recortado bajo la cabecera o la barra inferior. */
#landing-view .landing-hero {
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#landing-view .landing-hero > .hero-content { margin: auto; }
