/*
 * Configuración de correo y notificaciones — Plataforma / Configuración.
 * Concepto: el aviso llega a quien debe atenderlo. El hero es el alta de un usuario: facultades, primer acceso
 * con token o contraseña y los módulos de los que recibe notificaciones, con interruptores reales y un contador
 * CSS de módulos activos (sin JS). El problema muestra el mismo aviso con configuraciones aisladas (no llega,
 * se duplica, nadie lo atiende); la definición reúne lo que se configura alrededor de cada usuario, incluido el
 * servidor de correo del módulo Sistema. Funciones relacionadas en "Cómo se integra con el ERP".
 * Verde = aviso activo (el interruptor también cambia de posición); rojo / ámbar solo en el problema, con ícono y texto.
 * Display Plus Jakarta Sans; cuerpo Inter.
 * Momento animado único: al cargar se encienden uno a uno los interruptores del usuario y aparece el conteo.
 */
[data-function-layout="notificaciones"] {
    --nt-ink: #041f49;
    --nt-gold: #fac63f;
    --nt-gold-tint: #fff1c7;
    --nt-on: #1f7a4a;
    --nt-on-tint: #e1f1e8;
    --nt-issue: #b42b26;
    --nt-issue-tint: #fbe7e5;
    --nt-warn: #8a5a00;
    --nt-warn-tint: #fdf0d2;
    --nt-paper: #f2f4f8;
    --nt-line: #c3ccd7;
    --nt-rule: #dde3ea;
    --nt-muted: #46505e;
    --nt-text: #1f2a3d;
    --nt-display: "Plus Jakarta Sans", "Hanken Grotesk", ui-sans-serif, sans-serif;
    --nt-ease: cubic-bezier(.2, .7, .2, 1);
}

[data-function-layout="notificaciones"] .cv-hero-title,
[data-function-layout="notificaciones"] .cv-section-title,
[data-function-layout="notificaciones"] .cv-form-title { font-family: var(--nt-display); font-weight: 800; letter-spacing: -.025em; }
[data-function-layout="notificaciones"] .cv-section-title { font-size: clamp(1.75rem, 2.7vw, 2.5rem); line-height: 1.12; }
[data-function-layout="notificaciones"] .nt-narrow { max-width: 50rem; }
[data-function-layout="notificaciones"] .nt-subtitle { margin: 1.75rem 0 0; font-family: var(--nt-display); font-size: 1.25rem; font-weight: 800; }

/* ---------- Superficies ---------- */
[data-function-layout="notificaciones"] .nt-paper { background: var(--nt-paper); }
[data-function-layout="notificaciones"] .nt-navy { background: var(--nt-ink); color: #fff; }
[data-function-layout="notificaciones"] .nt-navy .cv-section-title,
[data-function-layout="notificaciones"] .nt-navy .nt-subtitle { color: #fff; }
[data-function-layout="notificaciones"] .nt-split { display: grid; gap: 2.5rem 4rem; align-items: center; }
[data-function-layout="notificaciones"] .nt-lead { max-width: 42rem; margin-top: 1.25rem; color: var(--nt-text); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.75; }
[data-function-layout="notificaciones"] .nt-subtitle + .nt-lead { margin-top: .6rem; }
[data-function-layout="notificaciones"] .nt-lead--light { color: rgb(255 255 255 / .88); }

/* ---------- Hero ---------- */
[data-function-layout="notificaciones"] #inicio { background: linear-gradient(155deg, #041f49 0%, #0a2c5c 70%, #0f3870 100%); color: #fff; }
[data-function-layout="notificaciones"] #inicio .function-hero__media img { object-position: 65% 50%; }
[data-function-layout="notificaciones"] #inicio .function-hero__overlay {
    background:
        linear-gradient(180deg, transparent 65%, rgb(4 31 73 / .7) 100%),
        linear-gradient(90deg, rgb(4 31 73 / .97) 0%, rgb(4 31 73 / .9) 42%, rgb(10 44 92 / .72) 70%, rgb(15 56 112 / .55) 100%);
}
[data-function-layout="notificaciones"] .rh-hero-layout { position: relative; z-index: 1; align-items: center; }
[data-function-layout="notificaciones"] #inicio .cv-hero-title { max-width: 12ch; color: #fff; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; }
[data-function-layout="notificaciones"] #inicio .cv-hero-description { max-width: 34rem; margin-top: 1.5rem; color: rgb(255 255 255 / .86); }
[data-function-layout="notificaciones"] .nt-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
[data-function-layout="notificaciones"] #inicio .cv-primary-button { border-color: var(--nt-gold); background: var(--nt-gold); color: var(--nt-ink); box-shadow: 0 14px 30px rgb(0 0 0 / .3); }
[data-function-layout="notificaciones"] #inicio .cv-primary-button:hover,
[data-function-layout="notificaciones"] #inicio .cv-primary-button:focus-visible { background: #ffd666; }
[data-function-layout="notificaciones"] #inicio .cv-secondary-button { border-color: rgb(255 255 255 / .7); background: transparent; color: #fff; }
[data-function-layout="notificaciones"] #inicio .cv-secondary-button:hover,
[data-function-layout="notificaciones"] #inicio .cv-secondary-button:focus-visible { background: #fff; color: var(--nt-ink); }
[data-function-layout="notificaciones"] #inicio .cv-primary-button:focus-visible,
[data-function-layout="notificaciones"] #inicio .cv-secondary-button:focus-visible { outline: 3px solid var(--nt-gold); outline-offset: 3px; }

/* Título largo ("notificaciones"): más ancho que el de la base compartida. */
[data-function-layout="notificaciones"] #inicio .cv-hero-title { max-width: 15ch; font-size: clamp(2.3rem, 4.4vw, 3.9rem); }

/* Alta del usuario: el estilo base es el estado final. */
[data-function-layout="notificaciones"] .nt-user { justify-self: center; width: 100%; max-width: 32rem; margin: 0; padding: 1.15rem; border-radius: .6rem; background: #fff; box-shadow: 0 24px 50px rgb(0 0 0 / .35); color: var(--nt-text); }
[data-function-layout="notificaciones"] .nt-user .cv-icon { width: 16px; height: 16px; flex-basis: 16px; }
[data-function-layout="notificaciones"] .nt-user__head { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--nt-rule); }
[data-function-layout="notificaciones"] .nt-user__avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--nt-ink); color: #fff; }
[data-function-layout="notificaciones"] .nt-user__avatar .cv-icon { width: 20px; height: 20px; flex-basis: 20px; }
[data-function-layout="notificaciones"] .nt-user__name { margin: 0; color: var(--nt-ink); font-family: var(--nt-display); font-size: 1.05rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-user__mail { display: flex; align-items: center; gap: .35rem; margin: .1rem 0 0; color: var(--nt-muted); font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
[data-function-layout="notificaciones"] .nt-user__mail .cv-icon { width: 14px; height: 14px; flex-basis: 14px; }
[data-function-layout="notificaciones"] .nt-user__new { padding: .25rem .6rem; border-radius: 1rem; background: var(--nt-gold-tint); color: #6b4a00; font-size: .72rem; font-weight: 700; white-space: nowrap; }
[data-function-layout="notificaciones"] .nt-user__meta { display: grid; gap: .6rem; margin: .9rem 0 0; }
[data-function-layout="notificaciones"] .nt-user__meta > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; align-items: center; }
[data-function-layout="notificaciones"] .nt-user__meta dt { color: var(--nt-muted); font-size: .76rem; font-weight: 700; }
[data-function-layout="notificaciones"] .nt-user__meta dd { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
[data-function-layout="notificaciones"] .nt-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: .3rem; background: var(--nt-paper); color: var(--nt-ink); font-size: .78rem; font-weight: 700; }
[data-function-layout="notificaciones"] .nt-chip .cv-icon { width: 13px; height: 13px; flex-basis: 13px; color: var(--nt-muted); }
/* Primer acceso: opción elegida rellena, la otra solo con contorno. */
[data-function-layout="notificaciones"] .nt-access { padding: .25rem .65rem; border-radius: .3rem; box-shadow: inset 0 0 0 1.5px var(--nt-line); color: var(--nt-muted); font-size: .78rem; font-weight: 700; }
[data-function-layout="notificaciones"] .nt-access.is-on { background: var(--nt-ink); box-shadow: none; color: #fff; }

[data-function-layout="notificaciones"] .nt-notify { counter-reset: nt-on; min-width: 0; margin: 1rem 0 0; padding: .85rem .9rem .9rem; border: 0; border-radius: .5rem; background: var(--nt-paper); }
[data-function-layout="notificaciones"] .nt-notify legend { float: left; display: flex; align-items: center; gap: .4rem; width: 100%; margin: 0 0 .55rem; padding: 0; color: var(--nt-ink); font-family: var(--nt-display); font-size: .95rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-notify ul { clear: both; display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
[data-function-layout="notificaciones"] .nt-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .6rem; border-radius: .35rem; background: #fff; cursor: pointer; }
[data-function-layout="notificaciones"] .nt-switch__text { color: var(--nt-ink); font-size: .86rem; font-weight: 700; }
/* El checkbox sigue en el árbol (lo cuenta el contador y lo alcanza el teclado); el riel es su cara visible. */
[data-function-layout="notificaciones"] .nt-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; counter-increment: none; }
[data-function-layout="notificaciones"] .nt-switch input:checked { counter-increment: nt-on; }
[data-function-layout="notificaciones"] .nt-switch__track { position: relative; flex: 0 0 2.6rem; width: 2.6rem; height: 1.5rem; border-radius: 1rem; background: #9aa8b8; transition: background-color .2s; }
[data-function-layout="notificaciones"] .nt-switch__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s var(--nt-ease); }
[data-function-layout="notificaciones"] .nt-switch input:checked + .nt-switch__track { background: var(--nt-on); }
[data-function-layout="notificaciones"] .nt-switch input:checked + .nt-switch__track::after { transform: translateX(1.1rem); }
[data-function-layout="notificaciones"] .nt-switch input:focus-visible + .nt-switch__track { outline: 3px solid var(--nt-ink); outline-offset: 2px; }
/* Encendido al cargar (por clase del servidor, no por :checked, para que no se repita al alternar). */
[data-function-layout="notificaciones"] .nt-notify li.is-on .nt-switch__track { animation: nt-track .3s var(--nt-ease) calc(.5s + var(--i) * .3s) both; }
[data-function-layout="notificaciones"] .nt-notify li.is-on .nt-switch__track::after { animation: nt-knob .3s var(--nt-ease) calc(.5s + var(--i) * .3s) both; }
[data-function-layout="notificaciones"] .nt-notify__count { display: flex; align-items: baseline; gap: .4rem; margin: .7rem 0 0; color: var(--nt-muted); font-size: .82rem; font-weight: 700; animation: nt-in .35s var(--nt-ease) 1.5s both; }
[data-function-layout="notificaciones"] .nt-notify__count::before { content: counter(nt-on); color: var(--nt-on); font-family: var(--nt-display); font-size: 1.35rem; font-weight: 800; line-height: 1; }
[data-function-layout="notificaciones"] .nt-user figcaption { margin-top: .6rem; color: var(--nt-muted); font-size: .72rem; }

/* ---------- Problema: un aviso con configuraciones aisladas ---------- */
[data-function-layout="notificaciones"] .nt-broken { margin: 0; padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: .6rem; background: var(--nt-paper); }
[data-function-layout="notificaciones"] .nt-broken .cv-icon { width: 17px; height: 17px; flex-basis: 17px; }
[data-function-layout="notificaciones"] .nt-broken__event { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .6rem .9rem; border-radius: .45rem; background: var(--nt-ink); color: #fff; font-family: var(--nt-display); font-size: 1rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-broken__event .cv-icon { color: var(--nt-gold); }
/* El aviso se reparte en ramas; la que no llega va punteada. */
[data-function-layout="notificaciones"] .nt-broken ul { display: grid; gap: .6rem; margin: 0 0 0 1.4rem; padding: 1rem 0 0; list-style: none; border-left: 2px solid var(--nt-line); }
[data-function-layout="notificaciones"] .nt-broken li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; align-items: center; margin-left: 1.4rem; padding: .7rem .85rem; border-radius: .45rem; background: #fff; }
[data-function-layout="notificaciones"] .nt-broken li::before { content: ""; position: absolute; top: 50%; right: 100%; width: 1.4rem; border-top: 2px solid var(--nt-line); }
[data-function-layout="notificaciones"] .nt-broken li.is-miss::before { border-top-style: dashed; border-top-color: var(--nt-issue); }
[data-function-layout="notificaciones"] .nt-broken__who { display: inline-flex; align-items: center; gap: .45rem; color: var(--nt-ink); font-size: .95rem; font-weight: 700; }
[data-function-layout="notificaciones"] .nt-broken__what { justify-self: start; padding: .3rem .6rem; border-radius: .3rem; font-size: .86rem; font-weight: 700; }
[data-function-layout="notificaciones"] .is-miss .nt-broken__who .cv-icon,
[data-function-layout="notificaciones"] .is-miss .nt-broken__what { color: var(--nt-issue); }
[data-function-layout="notificaciones"] .is-miss .nt-broken__what { background: var(--nt-issue-tint); }
[data-function-layout="notificaciones"] .is-dup .nt-broken__who .cv-icon,
[data-function-layout="notificaciones"] .is-dup .nt-broken__what { color: var(--nt-warn); }
[data-function-layout="notificaciones"] .is-dup .nt-broken__what { background: var(--nt-warn-tint); }
[data-function-layout="notificaciones"] .is-lost .nt-broken__who .cv-icon { color: var(--nt-muted); }
[data-function-layout="notificaciones"] .is-lost .nt-broken__what { background: #e3e8ef; color: var(--nt-muted); }

/* ---------- Qué es: lo que se configura alrededor de cada usuario ---------- */
[data-function-layout="notificaciones"] .nt-hub { margin: 0; }
[data-function-layout="notificaciones"] .nt-hub .cv-icon { width: 20px; height: 20px; flex-basis: 20px; }
[data-function-layout="notificaciones"] .nt-hub__center { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; width: max-content; margin: 0 auto; padding: .65rem 1.2rem; border-radius: 2rem; background: var(--nt-ink); color: #fff; font-family: var(--nt-display); font-size: 1.05rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-hub__center::after { content: ""; position: absolute; top: 100%; left: 50%; height: 1rem; border-left: 2px solid var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-hub ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 0; padding: .9rem 0 0; list-style: none; border-top: 2px solid var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-hub li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .7rem; align-items: center; padding: .75rem .85rem; border-radius: .45rem; background: #fff; box-shadow: inset 0 0 0 1px var(--nt-rule); }
[data-function-layout="notificaciones"] .nt-hub li:last-child { grid-column: 1 / -1; }
[data-function-layout="notificaciones"] .nt-hub li > .cv-icon { box-sizing: content-box; width: 20px; height: 20px; padding: .55rem; border-radius: .4rem; background: var(--nt-on-tint); color: var(--nt-on); }
[data-function-layout="notificaciones"] .nt-hub b { display: block; color: var(--nt-ink); font-family: var(--nt-display); font-size: .98rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-hub small { display: block; margin-top: .1rem; color: var(--nt-muted); font-size: .85rem; font-weight: 500; line-height: 1.4; }

/* ---------- Ejemplo: secuencia ---------- */
[data-function-layout="notificaciones"] .nt-steps { position: relative; display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
[data-function-layout="notificaciones"] .nt-steps::before { content: ""; position: absolute; top: 1.2rem; bottom: 1.2rem; left: 1.15rem; width: 2px; background: rgb(255 255 255 / .25); }
[data-function-layout="notificaciones"] .nt-steps li { position: relative; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .7rem 0; }
[data-function-layout="notificaciones"] .nt-steps__num { position: relative; z-index: 1; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--nt-gold); color: var(--nt-ink); font-family: var(--nt-display); font-weight: 800; }
[data-function-layout="notificaciones"] .nt-steps p { margin: 0; color: rgb(255 255 255 / .92); font-size: 1rem; font-weight: 600; line-height: 1.45; }
[data-function-layout="notificaciones"] .nt-steps li.is-last p { padding: .55rem .8rem; border-radius: .45rem; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(250 198 63 / .6); color: #fff; }

/* ---------- Cómo se integra: área conectada / valor operativo y funciones relacionadas ---------- */
[data-function-layout="notificaciones"] .nt-split--top { align-items: start; }
[data-function-layout="notificaciones"] .nt-areas { width: 100%; margin-top: 1.5rem; border-collapse: collapse; table-layout: fixed; }
[data-function-layout="notificaciones"] .nt-areas th { padding: .6rem .9rem .6rem 0; border-bottom: 3px solid var(--nt-ink); color: var(--nt-muted); font-family: var(--nt-display); font-size: 1rem; font-weight: 800; text-align: left; }
[data-function-layout="notificaciones"] .nt-areas td { padding: 1rem .9rem 1rem 0; color: var(--nt-ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.55; vertical-align: top; }
[data-function-layout="notificaciones"] .nt-areas__chips { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
[data-function-layout="notificaciones"] .nt-chip--area { padding: .4rem .7rem; font-size: .9rem; }
[data-function-layout="notificaciones"] .nt-chip--area .cv-icon { width: 16px; height: 16px; flex-basis: 16px; }
/* Las funciones relacionadas viven aquí sobre fondo blanco. */
/* Más específico que la regla compartida (pensada para fondo azul), que va después en el archivo. */
[data-function-layout="notificaciones"] .nt-related .nt-related__title { color: var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-related .nt-related__link { box-shadow: inset 0 0 0 1.5px var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-related .nt-related__link:hover { box-shadow: inset 0 0 0 2.5px var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-related .nt-related__link:focus-visible { outline-color: var(--nt-ink); }

/* ---------- Capacidades ---------- */
[data-function-layout="notificaciones"] .nt-capabilities { display: grid; gap: .75rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
[data-function-layout="notificaciones"] .nt-capabilities li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: .5rem; background: #fff; box-shadow: inset 0 0 0 1px var(--nt-rule); }
[data-function-layout="notificaciones"] .nt-capabilities__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .45rem; background: var(--nt-on-tint); color: var(--nt-on); }
[data-function-layout="notificaciones"] .nt-capabilities__icon .cv-icon { width: 21px; height: 21px; flex-basis: 21px; }
[data-function-layout="notificaciones"] .nt-capabilities p { margin: 0; color: var(--nt-ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }

/* ---------- Problemas: problema / respuesta ---------- */
[data-function-layout="notificaciones"] .nt-fixes { width: 100%; margin-top: 2.5rem; border-collapse: collapse; table-layout: fixed; }
[data-function-layout="notificaciones"] .nt-fixes thead th { padding: 1rem 1.25rem; border-bottom: 3px solid var(--nt-rule); color: var(--nt-muted); font-family: var(--nt-display); font-size: 1.15rem; font-weight: 800; text-align: left; }
[data-function-layout="notificaciones"] .nt-fixes thead th:last-child { border-bottom-color: var(--nt-ink); color: var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-fixes tbody th,
[data-function-layout="notificaciones"] .nt-fixes td { padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--nt-rule); font-size: 1.0625rem; line-height: 1.6; text-align: left; vertical-align: middle; }
[data-function-layout="notificaciones"] .nt-fixes tbody th { color: var(--nt-text); font-weight: 700; }
[data-function-layout="notificaciones"] .nt-fixes td { background: var(--nt-paper); color: var(--nt-ink); font-weight: 600; }
[data-function-layout="notificaciones"] .nt-fixes__icon { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .75rem; border-radius: .4rem; background: #e3e8ef; color: var(--nt-muted); vertical-align: middle; }
[data-function-layout="notificaciones"] .nt-fixes__icon .cv-icon { width: 18px; height: 18px; flex-basis: 18px; }
[data-function-layout="notificaciones"] .nt-fixes__check { display: inline-grid; margin-right: .6rem; vertical-align: -.3em; color: var(--nt-on); }
[data-function-layout="notificaciones"] .nt-fixes__check .cv-icon { width: 20px; height: 20px; flex-basis: 20px; stroke-width: 2.4; }

/* ---------- Beneficios ---------- */
[data-function-layout="notificaciones"] .nt-benefits { display: grid; gap: 1.5rem 3rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
[data-function-layout="notificaciones"] .nt-benefits li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; padding-top: 1.25rem; border-top: 3px solid var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-benefits__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .45rem; background: #fff; box-shadow: inset 0 0 0 1px var(--nt-rule); color: var(--nt-ink); }
[data-function-layout="notificaciones"] .nt-benefits__icon .cv-icon { width: 22px; height: 22px; flex-basis: 22px; }
[data-function-layout="notificaciones"] .nt-benefits p { margin: .3rem 0 0; color: var(--nt-ink); font-size: 1.125rem; font-weight: 600; line-height: 1.5; }

/* ---------- Cómo encaja: funciones relacionadas ---------- */
[data-function-layout="notificaciones"] .nt-related { display: grid; gap: .75rem; }
[data-function-layout="notificaciones"] .nt-related__title { margin: 0; color: #fff; font-family: var(--nt-display); font-size: 1.25rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-related__link { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: .55rem; background: #fff; color: var(--nt-ink); text-decoration: none; box-shadow: 0 18px 36px rgb(0 0 0 / .25); transition: box-shadow .2s; }
[data-function-layout="notificaciones"] .nt-related__link:hover { box-shadow: 0 18px 36px rgb(0 0 0 / .25), inset 0 0 0 2px var(--nt-gold); }
[data-function-layout="notificaciones"] .nt-related__link:focus-visible { outline: 3px solid var(--nt-gold); outline-offset: 3px; }
[data-function-layout="notificaciones"] .nt-related__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .45rem; background: var(--nt-on-tint); color: var(--nt-on); }
[data-function-layout="notificaciones"] .nt-related__icon .cv-icon { width: 22px; height: 22px; flex-basis: 22px; }
[data-function-layout="notificaciones"] .nt-related__link b { display: block; font-family: var(--nt-display); font-size: 1.15rem; font-weight: 800; }
[data-function-layout="notificaciones"] .nt-related__link small { display: block; margin-top: .2rem; color: var(--nt-muted); font-size: .92rem; font-weight: 500; line-height: 1.45; }
[data-function-layout="notificaciones"] .nt-related__go .cv-icon { width: 20px; height: 20px; flex-basis: 20px; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    [data-function-layout="notificaciones"] .nt-capabilities,
    [data-function-layout="notificaciones"] .nt-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    [data-function-layout="notificaciones"] .rh-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    [data-function-layout="notificaciones"] .nt-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [data-function-layout="notificaciones"] .nt-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    [data-function-layout="notificaciones"] #inicio .function-hero__overlay { background: linear-gradient(180deg, rgb(4 31 73 / .95) 0%, rgb(4 31 73 / .86) 50%, rgb(10 44 92 / .7) 100%); }
    [data-function-layout="notificaciones"] #inicio .cv-hero-title { max-width: none; }
}
@media (max-width: 767px) {
    [data-function-layout="notificaciones"] .nt-hero__actions > * { width: 100%; }
    [data-function-layout="notificaciones"] .nt-fixes thead { display: none; }
    [data-function-layout="notificaciones"] .nt-fixes,
    [data-function-layout="notificaciones"] .nt-fixes tbody,
    [data-function-layout="notificaciones"] .nt-fixes tr,
    [data-function-layout="notificaciones"] .nt-fixes tbody th,
    [data-function-layout="notificaciones"] .nt-fixes td { display: block; width: 100%; }
    [data-function-layout="notificaciones"] .nt-fixes tr { padding: .75rem 0; border-bottom: 1px solid var(--nt-rule); }
    [data-function-layout="notificaciones"] .nt-fixes tbody th,
    [data-function-layout="notificaciones"] .nt-fixes td { padding: .65rem .85rem; border-bottom: 0; }
    [data-function-layout="notificaciones"] .nt-fixes tbody th::before,
    [data-function-layout="notificaciones"] .nt-fixes td::before { content: attr(data-label); display: block; margin-bottom: .35rem; color: var(--nt-muted); font-size: .82rem; font-weight: 700; }
    [data-function-layout="notificaciones"] .nt-related__link { grid-template-columns: 3rem minmax(0, 1fr); }
    [data-function-layout="notificaciones"] .nt-related__go { display: none; }
}

/* ---------- Keyframes ---------- */

@media (prefers-reduced-motion: reduce) {
    [data-function-layout="notificaciones"] *,
    [data-function-layout="notificaciones"] *::before,
    [data-function-layout="notificaciones"] *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 767px) {
    [data-function-layout="notificaciones"] .nt-user { padding: .95rem .8rem; }
    [data-function-layout="notificaciones"] .nt-user__head { grid-template-columns: 2.6rem minmax(0, 1fr); }
    [data-function-layout="notificaciones"] .nt-user__new { grid-column: 2; justify-self: start; }
    [data-function-layout="notificaciones"] .nt-user__meta > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
    [data-function-layout="notificaciones"] .nt-broken li { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
    [data-function-layout="notificaciones"] .nt-hub ul { grid-template-columns: minmax(0, 1fr); }
    [data-function-layout="notificaciones"] .nt-areas thead { display: none; }
    [data-function-layout="notificaciones"] .nt-areas,
    [data-function-layout="notificaciones"] .nt-areas tbody,
    [data-function-layout="notificaciones"] .nt-areas tr,
    [data-function-layout="notificaciones"] .nt-areas td { display: block; width: 100%; }
    [data-function-layout="notificaciones"] .nt-areas__chips { flex-direction: row; flex-wrap: wrap; }
    [data-function-layout="notificaciones"] .nt-areas td + td { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    [data-function-layout="notificaciones"] .nt-notify li.is-on .nt-switch__track,
    [data-function-layout="notificaciones"] .nt-notify li.is-on .nt-switch__track::after,
    [data-function-layout="notificaciones"] .nt-notify__count { animation: none; }
    [data-function-layout="notificaciones"] .nt-switch__track,
    [data-function-layout="notificaciones"] .nt-switch__track::after { transition: none; }
}

@keyframes nt-track { from { background-color: #9aa8b8; } }
@keyframes nt-knob { from { transform: translateX(0); } }
@keyframes nt-in { from { opacity: 0; transform: translateY(.3rem); } }
