/* 7.7.0 · Encabezado inteligente, cápsula de navegación, botón de chat discreto y Nix en el panel de chat.
   7.7.1 · La cápsula se expande con el menú y el chat se ve como una app de mensajería (también a pantalla completa en el teléfono). */

/* ---------- La barra se retira al bajar ---------- */
.site-header { transition: transform .38s var(--ease, cubic-bezier(.2, .8, .2, 1)), opacity .25s; }
body.header-tucked .site-header { transform: translateY(-115%); opacity: 0; pointer-events: none; }
.subnav { transition: top .38s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
/* 7.7.5: con la barra recogida, las secciones y los filtros fijos suben hasta arriba y la cápsula se acomoda en su
   extremo izquierdo (capsula.js · dock): una sola franja, sin huecos ni menús encimados. */
body.header-tucked .subnav, body.header-tucked .catalog-tools { top: 0; }
.catalog-tools { transition: top .38s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.subnav-inner, .catalog-tools > :first-child { transition: padding-left .3s var(--ease, cubic-bezier(.2, .8, .2, 1)); }

/* 7.7.3 · En pantallas anchas la cápsula se expande en la barra de siempre: crece desde el centro, donde estaba. */
body.header-peek .site-header { animation: header-from-capsule .36s var(--ease, cubic-bezier(.2, .8, .2, 1)); transform-origin: 50% 30px; }
@keyframes header-from-capsule { from { opacity: 0; transform: translateY(-4px) scaleX(.32) scaleY(.82); } }
.header-collapse, .header-fold { display: none; }
/* 7.7.7: con la búsqueda o las secciones guardadas, la barra principal abierta también ofrece mostrarlas. */
body.header-peek.has-shelf .header-fold:not([hidden]), body.header-peek .header-collapse { display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; color: var(--mist); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
body.header-peek .header-fold { color: var(--white); }
body.header-peek .header-collapse:hover, body.header-peek .header-fold:hover { color: #fff; border-color: rgba(34, 211, 255, .4); }
/* 7.7.4 · Con el botón de contraer la barra no alcanzaba y «Diagnóstico gratuito» se cortaba: los botones no se
   encogen y «Descargar la app» queda como ícono mientras la barra está abierta desde la cápsula. */
.header-actions .btn { flex-shrink: 0; white-space: nowrap; }
/* La barra no cabía por 13 px a 1560 px de ancho: los espacios se ajustan al ancho en vez de ser fijos. */
@media (min-width: 901px) {
    .header-inner { gap: clamp(10px, 1.2vw, 24px); }
    .nav-trigger { padding: 0 clamp(9px, .85vw, 14px); }
    .header-actions { gap: clamp(6px, .6vw, 10px); }
}
body.header-peek .header-app span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.header-peek .header-app i { margin: 0; }

/* ---------- Cápsula ---------- */
.nav-capsule {
    position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 45;
    display: flex; flex-direction: column; width: max-content; max-width: calc(100vw - 24px); padding: 4px;
    border-radius: 26px; background: rgba(6, 10, 28, .86); border: 1px solid rgba(34, 211, 255, .22);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 0 26px -12px rgba(34, 211, 255, .55), 0 14px 34px -16px rgba(0, 0, 0, .9);
    transform: translate(-50%, -160%) scale(.92); opacity: 0; pointer-events: none;
    transition: transform .38s var(--ease, cubic-bezier(.2, .8, .2, 1)), opacity .25s, width .34s var(--ease, cubic-bezier(.2, .8, .2, 1)), box-shadow .3s;
    interpolate-size: allow-keywords;
}
.nav-capsule.is-on { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.nav-capsule.is-open { width: min(560px, calc(100vw - 24px)); background: rgba(6, 10, 28, .96); box-shadow: 0 0 40px -14px rgba(34, 211, 255, .6), 0 30px 70px -20px rgba(0, 0, 0, .95); }
.cap-bar { display: flex; align-items: center; gap: 4px; }
.cap-main {
    display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 7px; min-width: 0; max-width: min(62vw, 340px);
    border: 0; border-radius: 999px; background: none; color: var(--white); font: 600 .9rem var(--text); cursor: pointer;
}
.is-open .cap-main { flex: 1; max-width: none; }
.cap-main img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.cap-main .cap-caret { color: var(--mist); font-size: .9rem; margin-left: auto; transition: transform .25s; }
.cap-where { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-main:hover, .cap-main:focus-visible { background: rgba(255, 255, 255, .06); }
.cap-nix {
    width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--grad, linear-gradient(135deg, #22d3ff, #3b7bff)); color: #fff; font-size: .95rem;
    box-shadow: 0 0 18px -4px rgba(34, 211, 255, .7);
}
.cap-main:focus-visible, .cap-nix:focus-visible, .cap-menu :focus-visible { outline: 2px solid var(--neon, #22d3ff); outline-offset: 2px; }

/* Menú dentro de la cápsula: crece desde la cápsula (sin saltar) y se desplaza por dentro si no cabe. */
.cap-menu { contain: inline-size; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.is-open .cap-menu { grid-template-rows: 1fr; }
.cap-clip { min-height: 0; overflow: hidden; }
.cap-scroll {
    max-height: calc(100dvh - 90px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 14px 4px; display: grid; gap: 12px; opacity: 0; transition: opacity .2s;
}
.is-open .cap-scroll { opacity: 1; transition-delay: .08s; }
.cap-nav { display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 8px; }
.cap-top, .cap-group summary {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px;
    color: var(--white); font: 600 .95rem var(--text); text-decoration: none; cursor: pointer; list-style: none;
}
.cap-group summary::-webkit-details-marker { display: none; }
.cap-top i, .cap-group summary i { margin-left: auto; color: var(--mist); font-size: .8rem; transition: transform .25s; }
.cap-group[open] summary i { transform: rotate(180deg); }
.cap-top:hover, .cap-group summary:hover, .cap-link:hover { background: rgba(255, 255, 255, .05); }
.cap-top[aria-current="page"] { color: var(--neon, #22d3ff); }
.cap-live { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; }
.cap-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px 4px 8px; }
.cap-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 12px; color: var(--mist); font-size: .88rem; line-height: 1.25; text-decoration: none; }
.cap-link i { width: 18px; text-align: center; color: var(--neon, #22d3ff); font-size: .85rem; flex-shrink: 0; }
.cap-link[aria-current="page"] { color: #fff; background: rgba(34, 211, 255, .1); }
.cap-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 2px 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.cap-actions .btn { flex: 1 1 160px; justify-content: center; }
/* Pie fijo dentro del menú: siempre a la mano, aunque el menú sea largo. */
.cap-foot {
    position: sticky; bottom: 0; display: flex; justify-content: center; gap: 8px; margin: 0 -14px -4px; padding: 10px 14px 8px;
    background: linear-gradient(180deg, rgba(6, 10, 28, 0), rgba(6, 10, 28, .97) 38%);
}
.cap-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--mist); font: 600 .82rem var(--text);
    transition: color .2s, border-color .2s, background .2s;
}
.cap-pill:hover { color: #fff; border-color: rgba(34, 211, 255, .4); }
.cap-pill.is-strong { color: #fff; border-color: rgba(34, 211, 255, .35); background: rgba(34, 211, 255, .12); }

/* Avance de lectura: una línea fina bajo la cápsula cerrada. */
.cap-progress {
    position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
    background: var(--grad, linear-gradient(90deg, #22d3ff, #3b7bff)); transform: scaleX(var(--read, 0)); transform-origin: left;
    box-shadow: 0 0 8px rgba(34, 211, 255, .6); transition: opacity .2s;
}
.is-open .cap-progress { opacity: 0; }
.nav-capsule.is-on:not(.is-open):hover { border-color: rgba(34, 211, 255, .4); box-shadow: 0 0 30px -10px rgba(34, 211, 255, .7), 0 14px 34px -16px rgba(0, 0, 0, .9); }

/* ---------- Botón de chat: pequeño y discreto (Nix toma el protagonismo en la cápsula) ---------- */
.chat-launcher {
    width: 44px; height: 44px; padding: 0; right: 16px; bottom: 16px; justify-content: center; gap: 0; font-size: 1rem;
    opacity: .9; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 8px 20px -8px rgba(34, 211, 255, .7);
    transition: opacity .2s, transform .2s;
}
.chat-launcher:hover, .chat-launcher:focus-visible, .chat-launcher[aria-expanded="true"] { opacity: 1; transform: scale(1.06); }
.chat-launcher .label { display: none; }
.chat-launcher .dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border: 2px solid var(--ink, #040a1f); }
.chat-launcher .unread { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; font-size: .7rem; line-height: 1; }

/* ---------- Panel de chat con aspecto de mensajería ---------- */
.chat-panel {
    bottom: 72px; right: 16px; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 104px));
    background: linear-gradient(180deg, #0b1333 0%, #060b20 100%); border: 1px solid rgba(34, 211, 255, .16); border-radius: 22px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 0 44px -20px rgba(34, 211, 255, .55);
    transform-origin: bottom right;
}
.chat-panel.is-entering { animation: chat-in .26s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.chat-panel .chat-head { justify-content: flex-start; gap: 12px; padding: 12px 10px 12px 14px; background: rgba(255, 255, 255, .025); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chat-head .head-avatar { display: block; position: relative; flex-shrink: 0; font-size: 1rem; }
.chat-head .msg-avatar { display: grid; width: 40px; height: 40px; font-size: .95rem; }
.chat-head .head-avatar.is-live::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3ee08f; border: 2px solid #0b1333; }
.chat-who { min-width: 0; display: grid; gap: 1px; }
.chat-who strong { font: 700 1.02rem var(--display); line-height: 1.2; }
.chat-panel .chat-who .chat-status { font-size: .78rem; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-panel .chat-who .chat-status.is-typing { color: var(--neon, #22d3ff); }
.chat-head .chat-close { margin-left: auto; flex-shrink: 0; }

.chat-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 10px 12px 0; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.chat-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--mist); font: 600 .8rem var(--text); cursor: pointer; transition: background .2s, color .2s; }
.chat-modes button[aria-selected="true"] { color: #fff; background: rgba(34, 211, 255, .14); box-shadow: inset 0 0 0 1px rgba(34, 211, 255, .35); }
.chat-modes .unread { background: var(--blue); color: #fff; border-radius: 999px; padding: 0 6px; font-size: .7rem; }

.chat-panel .chat-messages { gap: 3px; padding: 14px 12px 12px; overscroll-behavior: contain; scroll-behavior: auto;
    background: radial-gradient(120% 60% at 100% 0%, rgba(59, 123, 255, .07), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(34, 211, 255, .05), transparent 60%); }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.first:not(:first-child) { margin-top: 10px; }
.msg-row.out { justify-content: flex-end; }
.msg-row.note { justify-content: center; }
.msg-row.is-new { animation: msg-in .24s var(--ease, cubic-bezier(.2, .8, .2, 1)) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg-avatar { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--panel); border: 1px solid rgba(255, 255, 255, .08); color: #fff; font-size: .72rem; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-avatar.is-nix { background: var(--grad, linear-gradient(135deg, #22d3ff, #3b7bff)); border: 0; }
.msg-avatar.is-spacer { visibility: hidden; }

.msg-row .chat-bubble { max-width: min(78%, 300px); padding: 9px 13px 6px; border-radius: 18px; background: #131c40; border: 1px solid rgba(255, 255, 255, .06); font-size: .93rem; line-height: 1.42; }
.msg-row.in:not(.last) .chat-bubble { border-bottom-left-radius: 6px; }
.msg-row.in:not(.first) .chat-bubble { border-top-left-radius: 6px; }
.msg-row.in.last .chat-bubble { border-bottom-left-radius: 6px; }
.msg-row.out .chat-bubble { background: linear-gradient(135deg, #3b7bff, #2563eb); border-color: transparent; color: #fff; }
.msg-row.out:not(.last) .chat-bubble, .msg-row.out.last .chat-bubble { border-bottom-right-radius: 6px; }
.msg-row.out:not(.first) .chat-bubble { border-top-right-radius: 6px; }
.msg-row.note .chat-bubble { max-width: 90%; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 0; color: var(--mist); font-size: .76rem; }
.msg-row .chat-bubble time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: .68rem; opacity: .65; }
.msg-row .chat-bubble time i { font-size: .62rem; }
.msg-row .chat-bubble time .is-seen { color: #8be9ff; opacity: 1; }

/* «Escribiendo…»: tres puntos que saltan. */
.msg-row .chat-bubble.is-typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; }
.chat-bubble.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); animation: nix-dot 1.15s infinite ease-in-out; }
.chat-bubble.is-typing span:nth-child(2) { animation-delay: .16s; }
.chat-bubble.is-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes nix-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

.nix-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.nix-act { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(34, 211, 255, .4); background: rgba(34, 211, 255, .08); color: #fff; font: 600 .8rem var(--text); text-decoration: none; cursor: pointer; }
.nix-act:hover, .nix-act:focus-visible { background: rgba(34, 211, 255, .18); }

/* Barra para escribir */
.chat-panel .chat-compose { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .02); border-top: 1px solid rgba(255, 255, 255, .06); }
.nix-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; transition: opacity .2s; }
.nix-chips.is-new { animation: msg-in .24s ease-out both; }
.nix-chips.is-waiting { opacity: .45; }
.nix-chips.is-waiting .chip { cursor: default; }
.msg-row .chat-bubble.is-thinking { padding: 10px 14px; }
.nix-chips::-webkit-scrollbar { display: none; }
.nix-chips .chip { flex-shrink: 0; min-height: 32px; white-space: nowrap; font-size: .8rem; border-radius: 999px; cursor: pointer; }
.compose-pill { display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 24px; background: #0e1638; border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s, box-shadow .2s; }
.compose-pill:focus-within { border-color: rgba(34, 211, 255, .5); box-shadow: 0 0 0 3px rgba(34, 211, 255, .12); }
.chat-panel .compose-pill input, .chat-panel .compose-pill textarea {
    flex: 1; min-width: 0; height: 38px; min-height: 38px; max-height: 120px; padding: 9px 0; margin: 0; resize: none;
    border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--white); font: 400 1rem/1.3 var(--text);
}
.chat-panel .compose-pill input:focus, .chat-panel .compose-pill textarea:focus { box-shadow: none; outline: none; }
.compose-pill .send { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--grad, linear-gradient(135deg, #22d3ff, #3b7bff)); color: #fff; cursor: pointer; transition: transform .15s, opacity .15s; }
.compose-pill .send:hover { transform: scale(1.07); }
.compose-pill .send:disabled { opacity: .5; cursor: default; transform: none; }
.compose-pill:has(:placeholder-shown) .send { opacity: .55; }
.nix-fine { margin: 0; text-align: center; font-size: .7rem; color: var(--mist-2, var(--mist)); opacity: .8; }
.nix-fine i { font-size: .62rem; margin-right: 3px; }

/* ---------- 7.7.3 · Sombras y brillos completos ----------
   Los contenedores que recortan (carruseles, filas deslizables, la portada) dejan aire para el brillo de lo que llevan
   dentro, y lo compensan con margen negativo para no mover el diseño. */
.hero-v3 { overflow-clip-margin: 32px; }
.chip-row:not(.wrap):not(.chip-row-wrap) { padding-block: 8px; margin-block: -8px; }
@media (max-width: 640px) {
    .objective-grid:not(.is-compact), .case-grid, .catalog-grid-preview, .packages { padding-top: 18px; padding-bottom: 26px; margin-top: -16px; margin-bottom: -16px; }
    .portal-main .packages { padding-top: 14px; margin-top: -12px; }
    .packages.tiers { padding-bottom: 34px; }
}

/* ---------- 7.7.4 · Escenas de dispositivos sin cortes ----------
   En Chrome, un contenedor con perspective recorta en su caja los filtros (blur, drop-shadow) de lo que lleva dentro:
   la sombra de los teléfonos de la portada y las luces de «Un solo equipo» se veían como rectángulos con bordes duros.
   Se conserva la perspectiva y las luces y sombras se hacen sin filtros. */
.hero .stage { filter: none; }
.hero .stage .phone-body { box-shadow: inset 0 0 0 1.5px rgba(157, 176, 214, .35), 0 40px 70px -24px rgba(0, 0, 0, .75), 0 0 50px -10px rgba(34, 211, 255, .35); }
.device-orb { filter: none; }
.device-orb.o1 { width: 90%; height: 90%; left: -10%; top: -6%; background: radial-gradient(closest-side, rgba(59, 123, 255, .34), rgba(59, 123, 255, .14) 50%, transparent); }
.device-orb.o2 { width: 70%; height: 70%; right: -12%; bottom: -12%; background: radial-gradient(closest-side, rgba(139, 92, 246, .28), rgba(139, 92, 246, .1) 50%, transparent); }
/* La aparición al hacer scroll desenfoca: en los escenarios eso también recortaba sus luces mientras entraban. */
.rv-on .stage[data-rv]:not(.rv-in) { filter: none; }
/* Las líneas de circuito salen del escenario: se desvanecen en sus extremos en vez de terminar de golpe. */
.stage-traces { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }

/* Filas que se deslizan de lado: se desvanecen a la derecha en lugar de cortar la última opción a la mitad. */
.chip-row:not(.wrap):not(.chip-row-wrap) {
    padding-inline-end: 48px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

/* Con el menú del teléfono abierto el cuerpo deja de desplazarse y la barra «pegajosa» se quedaba arriba, fuera de la
   vista (al abrirlo después de bajar). Mientras el menú está abierto, la barra se fija arriba. */
@media (max-width: 900px) {
    body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; transform: none; opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
    .nav-capsule { top: calc(10px + env(safe-area-inset-top)); }
    .cap-links { grid-template-columns: 1fr; }
    .chat-launcher { width: 42px; height: 42px; right: 12px; bottom: 12px; }
    /* En el teléfono el chat ocupa la pantalla, como una app de mensajería. */
    .chat-panel {
        inset: 0; z-index: 70; width: 100%; height: 100%; height: 100dvh; max-height: none;
        border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); transform-origin: bottom center;
    }
    .chat-panel.is-entering { animation-name: chat-up; }
    @keyframes chat-up { from { opacity: 0; transform: translateY(32px); } }
    .chat-panel .chat-head { padding: 10px 8px 10px 14px; }
    .chat-head .chat-close { width: 44px; height: 44px; }
    .msg-row .chat-bubble { max-width: 82%; }
    body.chat-open { overflow: hidden; }
    body.chat-open .chat-launcher, body.chat-open .nav-capsule { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header, .subnav, .nav-capsule, .chat-launcher, .cap-menu, .cap-scroll { transition: none; }
    body.header-peek .site-header { animation: none; }
    .chat-panel.is-entering, .msg-row.is-new, .nix-chips { animation: none; }
    .chat-bubble.is-typing span { animation-duration: 2.4s; }
}

/* ---------- 7.7.5 · La cápsula dentro de la barra fija de la página ---------- */
.nav-capsule { transition: transform .38s var(--ease, cubic-bezier(.2, .8, .2, 1)), opacity .25s, width .34s var(--ease, cubic-bezier(.2, .8, .2, 1)), box-shadow .3s,
    left .38s var(--ease, cubic-bezier(.2, .8, .2, 1)), top .3s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.nav-capsule.is-docked { left: 12px; top: var(--dock-top, 12px); transform: none; box-shadow: none; }
.nav-capsule.is-docked:not(.is-open) .cap-where { display: none; }
/* En el teléfono, dentro de la barra queda solo el botón del menú; Nix sigue en su botón flotante. */
@media (max-width: 640px) { .nav-capsule.is-docked:not(.is-open) .cap-nix { display: none; } }
/* 7.7.6: al bajar, la barra de la página se recoge dentro de la cápsula (queda justo arriba de la pantalla) y regresa al
   subir o con el botón de la cápsula. */
/* 7.7.7: guardada se queda arriba de la pantalla también con la barra principal abierta. */
body .subnav.is-folded, body .catalog-tools.is-folded { top: calc(-1 * var(--fold-h, 80px)); }
.cap-fold {
    width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%;
    background: rgba(255, 255, 255, .05); color: var(--white); font-size: .85rem; cursor: pointer; transition: background .2s, border-color .2s;
}
.cap-fold[hidden] { display: none; }
.cap-fold:hover, .cap-fold:focus-visible { background: rgba(34, 211, 255, .12); border-color: rgba(34, 211, 255, .45); }
.cap-fold:focus-visible { outline: 2px solid var(--neon, #22d3ff); outline-offset: 2px; }
.is-open .cap-fold { display: none; }
@media (prefers-reduced-motion: reduce) { .nav-capsule, .subnav-inner, .catalog-tools, .catalog-tools > :first-child { transition: none; } }

/* 12.6.0 · Versión móvil más corta y ligera.
   - El titular de la portada ocupa menos líneas y deja ver los botones sin bajar.
   - Las 6 especialidades se deslizan con el dedo (antes, 2 180 px de tarjetas una bajo otra).
   - Las secciones que aún no están en pantalla no se dibujan hasta acercarse (menos trabajo al abrir). */
@media (max-width: 640px) {
    .hero h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); line-height: 1.06; }
    .svc-cats {
        display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 16px;
        margin: 32px -16px 0; padding: 2px 16px 10px; scrollbar-width: none;
    }
    .svc-cats::-webkit-scrollbar { display: none; }
    .svc-cats > * { scroll-snap-align: start; min-height: 0; }
}
@media (max-width: 900px) {
    #app > .section { content-visibility: auto; contain-intrinsic-size: auto 700px; }
}

/* 12.7.0 · Ranking por puntos en los catálogos públicos y pendientes de la colab con puntos. */
.cc-rank { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(3, 7, 20, .78); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 800 .82rem/1 var(--display); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cc-rank ~ .cc-tags { right: 76px; }
.cc-rank.is-top-1 { background: linear-gradient(135deg, #ffd76a, #f5a524); color: #2a1a00; border-color: transparent; box-shadow: 0 6px 18px rgba(245, 165, 36, .45); }
.cc-rank.is-top-2 { background: linear-gradient(135deg, #f1f5ff, #b9c4dc); color: #1a2235; border-color: transparent; }
.cc-rank.is-top-3 { background: linear-gradient(135deg, #f0b37e, #b8713c); color: #2a1300; border-color: transparent; }
.cc-points { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--neon, #22d3ff); font-weight: 700; }
.cc-points small { color: var(--mist, #9fb0d6); font-weight: 500; }

.pend { margin: 4px 0 16px; padding: 14px; border-radius: 16px; border: 1px solid rgba(34, 211, 255, .28); background: linear-gradient(160deg, rgba(34, 211, 255, .08), rgba(139, 92, 246, .06)); }
.pend-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pend-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.pend-meter { flex: 1 1 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pend-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ff, #8b5cf6); transition: width .6s ease; }
.pend-pts { font: 800 .85rem/1 var(--display); color: #ffd76a; white-space: nowrap; }
.pend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pend-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.pend-item > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: .85rem; }
.pend-item.is-done > i { background: rgba(52, 211, 153, .18); color: #34d399; }
.pend-item.is-wait > i { background: rgba(255, 181, 71, .16); color: #ffb547; }
.pend-item.is-next { border-color: rgba(34, 211, 255, .55); background: rgba(34, 211, 255, .08); }
.pend-item.is-done strong { opacity: .75; }
.pend-item small { display: block; color: var(--mist, #9fb0d6); }
.pend-item .pend-go { white-space: nowrap; }
.pend-item b.pend-gain { font: 800 .78rem/1 var(--display); color: #ffd76a; white-space: nowrap; }
.pend-item.is-done b.pend-gain { color: #34d399; }
.collab-card .pend-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #ffd76a; }
.points-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; margin-top: 12px; border-radius: 14px; background: rgba(255, 215, 106, .07); border: 1px solid rgba(255, 215, 106, .3); }
.points-strip strong.points-total { font: 800 1.6rem/1 var(--display); color: #ffd76a; }
.points-strip .points-rank { font-weight: 700; }
.points-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.points-strip li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }

/* ---------- 12.8.0 · Textos largos legibles en carteles, tarjetas y avisos ----------
   Un nombre de colab, un enlace o una palabra sin espacios ya no ensancha el cartel ni queda cortado: se parte
   donde haga falta, los títulos se recortan a 2 líneas con «…» y el texto completo queda en el detalle. */
.notice, .note, .toast, .badge, .pend-item, .pend-head h3, .fact strong, .collab-card, .modal-body, .panel p, .empty,
table.data td, .notice-list .notice, .pend-tag, .pend-person, .row-title, .tg-wrap, .cc, .alert, .form-status {
    overflow-wrap: anywhere; word-break: normal; hyphens: auto;
}
.notice { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; padding: 12px 14px; }
.notice > i { flex: none; width: 18px; margin-top: 3px; text-align: center; }
.notice > span, .notice > div, .notice > p { flex: 1 1 auto; min-width: 0; }
.notice > span > strong:first-child { color: var(--white, #fff); }
.note { line-height: 1.5; }
/* Etiquetas de estado: nunca más anchas que su caja; si el texto es largo, baja de línea con buen interlineado. */
.badge { max-width: 100%; white-space: normal; line-height: 1.3; text-align: left; vertical-align: middle; }
.collab-state { right: 10px; }
.collab-state .badge { display: -webkit-inline-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Tarjetas de colab: título y descripción a 2 líneas, marca a 1 y datos en chips recortados. */
.collab-body { min-width: 0; }
.collab-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.collab-meta { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.collab-meta > span { max-width: 100%; min-width: 0; }
.collab-card .pend-chip { max-width: 100%; }
.collab-foot { min-width: 0; gap: 8px; }
/* Pendientes: el texto ocupa todo el ancho y los botones bajan en pantallas angostas. */
.pend-item > span:not(.row-actions) { min-width: 0; }
.pend-item strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.pend-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; line-height: 1.4; }
.pend-head h3 { min-width: 0; }
@media (max-width: 560px) {
    .pend-item { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
    .pend-item > .row-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .pend-pts { white-space: normal; line-height: 1.3; }
}
/* Avisos flotantes: máximo 4 líneas para no tapar la pantalla. */
.toast { line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* Tablas: correos y nombres largos se parten en vez de estirar la tabla. */
table.data td { max-width: 320px; }
table.data td.small { word-break: break-word; }
/* Utilidades de recorte. */
.clamp-1 { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Panel de pendientes en Creadores (administrador). */
.pend-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pend-admin-head h3 { margin: 0 0 2px; display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.pend-admin-head p { margin: 0; }
.pend-admin-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pend-kind { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--trace, rgba(255,255,255,.12)); font-size: .82rem; color: var(--mist, #9fb0d6); }
.pend-kind b { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(34, 211, 255, .14); color: #7fe3ff; text-align: center; font-size: .78rem; }
.pend-people { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; max-height: min(56vh, 520px); overflow: auto; }
.pend-people > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--trace-soft, rgba(255,255,255,.08)); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.pend-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; min-width: 0; }
.pend-person > input { margin-top: 4px; }
.pend-person-main { display: grid; gap: 3px; min-width: 0; }
.pend-person-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-width: 0; }
.pend-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .78rem; color: #d3ddf5; }
.pend-tag b { flex: none; color: #ffd76a; font-weight: 700; }
.pend-tag .clamp-1 { max-width: 26ch; }
.pend-preview { display: grid; gap: 8px; }
.pend-preview p { margin: 6px 0 0; }
.pend-bell { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--trace-soft, rgba(255,255,255,.08)); background: var(--ink-2, #0b1430); line-height: 1.45; }
.pend-mail { width: 100%; height: min(60vh, 620px); border: 1px solid var(--trace-soft, rgba(255,255,255,.08)); border-radius: 12px; background: #050814; }
@media (max-width: 560px) { .pend-people > li { grid-template-columns: minmax(0, 1fr); } .pend-people > li > .btn { justify-self: start; } }
/* Chips de datos: «…» real (un contenedor flex no recorta su texto con puntos suspensivos). */
.collab-meta > span { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collab-meta > span > i { margin-right: 6px; }
.collab-reward, .collab-cta { white-space: nowrap; }
.collab-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* 12.9.0 · Celular y tablet: un solo formato, pantalla completa. Antes unas funciones se abrían como ventana emergente
   (hoja inferior al 92 %, cajón lateral o tarjeta flotante) y otras a pantalla completa según el tamaño y el tipo de
   pantalla, y al alternarlas la vista se intercalaba. Ahora toda ventana ocupa la pantalla, con «volver» arriba a la
   izquierda, el contenido con su propio desplazamiento y las acciones fijas abajo. Lo que se dibuja dentro de una pestaña
   (modal-inline) sigue igual. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    html body dialog.modal:not(.modal-inline) {
        position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; min-height: 0;
        margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; transform: none; animation: nx-screen-in .2s ease-out;
    }
    html body dialog.modal[open]:not(.modal-inline) { display: flex; flex-direction: column; }
    html body dialog.modal:not(.modal-inline) > .modal-head {
        flex: 0 0 auto; position: relative; flex-direction: row-reverse; justify-content: flex-end; gap: 6px;
        padding: calc(6px + env(safe-area-inset-top)) 14px 6px 4px; background: var(--panel); border-bottom: 1px solid var(--trace-soft);
    }
    html body dialog.modal:not(.modal-inline) > .modal-head h2 { flex: 1 1 auto; min-width: 0; font-size: 1.02rem; line-height: 1.25; }
    html body dialog.modal:not(.modal-inline) > .modal-head > [data-close] { width: 44px; height: 44px; flex: 0 0 44px; font-size: 1.15rem; }
    html body dialog.modal:not(.modal-inline) > .modal-head > [data-close] .fa-xmark::before { content: "\f060"; }
    html body dialog.modal:not(.modal-inline) > .modal-body {
        flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    }
    html body dialog.modal:not(.modal-inline)::backdrop { background: var(--ink, #050a1c); -webkit-backdrop-filter: none; backdrop-filter: none; }
    dialog.cv-modal .cv-tabs { position: sticky; top: 0; z-index: 2; background: var(--panel); margin: 0 -16px; padding: 0 16px; }
    .chat-side { width: 100vw; border-left: 0; }
}
@keyframes nx-screen-in { from { opacity: .4; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body dialog.modal:not(.modal-inline) { animation: none; } }

/* 13.1.0 · Mi red de talento: ficha con datos ARCO y suspensión. */
.rt-card { align-items: flex-start; }
.rt-card > span { display: grid; gap: 6px; min-width: 0; }
.rt-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.rt-search { max-width: 260px; }
.rt-sheet { display: grid; gap: 16px; }
.rt-sheet h4 { margin: 0 0 8px; font-size: .95rem; }
.rt-hero { display: flex; gap: 14px; align-items: center; }
.rt-hero .avatar { width: 72px; height: 72px; flex: 0 0 72px; }
.rt-hero h3 { margin: 0; }
.rt-hero p { margin: 2px 0 0; }
.rt-arco { padding: 14px; border-radius: 14px; border: 1px solid rgba(245, 181, 68, .35); background: rgba(245, 181, 68, .06); }
.rt-arco h4 { display: flex; gap: 8px; align-items: center; color: #ffd76a; }
.rt-facts, .rt-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rt-facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rt-facts li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.rt-facts li > i { margin-top: 4px; color: var(--blue); width: 16px; text-align: center; }
.rt-team li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); overflow-wrap: anywhere; }

/* 13.1.0 · Micrositio de puntuación de la agencia (ficha pública /aliados/:slug). */
.as-teaser { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid rgba(95, 227, 255, .35);
    background: rgba(6, 12, 34, .72); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .15s ease; }
.as-teaser:hover { border-color: rgba(95, 227, 255, .7); }
.as-teaser:active { transform: scale(.98); }
.as-teaser span { display: grid; line-height: 1.25; }
.as-teaser small { color: var(--mist, #9fb0d6); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.as-teaser em { font-style: normal; font-size: .8rem; color: #7fe3ff; }
.as-ring { display: block; }
.as-ring circle { fill: none; stroke-width: 10; }
.as-ring .as-ring-bg { stroke: rgba(255, 255, 255, .08); }
.as-ring .as-ring-fg { stroke: currentColor; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.as-ring text { fill: var(--white, #fff); font: 800 30px var(--display, inherit); }
.as-ring.is-elite, .as-level.is-elite { color: #5fe3ff; } .as-ring.is-high, .as-level.is-high { color: #4ade80; } .as-ring.is-mid, .as-level.is-mid { color: #ffd76a; }
.as-ring.is-low, .as-level.is-low { color: #ff9f6b; } .as-ring.is-none, .as-level.is-none { color: #6b7aa6; }
dialog.as-modal .modal-body { max-width: 980px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.as-site { display: grid; gap: 20px; }
.as-site h4 { margin: 0 0 10px; font-size: 1rem; }
.as-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px; border-radius: 18px;
    background: radial-gradient(circle at 85% 30%, rgba(95, 227, 255, .14), transparent 55%), rgba(255, 255, 255, .03); border: 1px solid var(--trace-soft); }
.as-hero .ally-logo { width: 64px; height: 64px; }
.as-hero h3 { margin: 0; font-size: 1.4rem; }
.as-hero p { margin: 0; }
.as-hero-score { display: grid; justify-items: center; gap: 6px; }
.as-level { font-size: .9rem; }
.as-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.as-stat { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--trace-soft); background: rgba(255, 255, 255, .02); }
.as-stat i { grid-row: span 2; align-self: center; color: var(--blue); }
.as-stat span { color: var(--mist, #9fb0d6); font-size: .78rem; }
.as-stat strong { font-size: 1.15rem; }
.as-skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.as-skills li { color: inherit; }
.as-skill-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.as-skill-top i { color: var(--blue); width: 18px; }
.as-skills p { margin: 4px 0 0; }
.as-bar { height: 8px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.as-bar span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.as-skills li.is-elite .as-bar span { background: #5fe3ff; } .as-skills li.is-high .as-bar span { background: #4ade80; }
.as-skills li.is-mid .as-bar span { background: #ffd76a; } .as-skills li.is-low .as-bar span { background: #ff9f6b; } .as-skills li.is-none .as-bar span { background: transparent; }
.as-skills li .as-skill-top strong { color: var(--white, #fff); }
.as-method { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
@media (max-width: 640px) {
    .as-hero { grid-template-columns: auto 1fr; }
    .as-hero-score { grid-column: 1 / -1; }
    .rt-search { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .as-ring .as-ring-fg { transition: none; } }

/* 13.1.1 · Trial: invitación a contratar para desbloquear comisiones y datos ARCO. */
.unlock-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px; border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, .45); background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(59, 130, 246, .10)); }
.unlock-cta > i { color: #f59e0b; font-size: 1.1rem; }
.unlock-cta > span { flex: 1 1 260px; min-width: 0; }
.unlock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600;
    color: #f59e0b; border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .10); text-decoration: none; }
.unlock-pill:hover { background: rgba(245, 158, 11, .18); }
.rt-arco.rt-locked { border-style: dashed; }
@media (max-width: 640px) { .unlock-cta .btn { width: 100%; justify-content: center; } }

/* 13.2.2 · Pendientes: «Ver» en lo completado y botón para hacerlo en lo pendiente; la sección destino se resalta. */
.pend-item .pend-view { white-space: nowrap; opacity: .9; }
.pend-item .pend-view i { margin-right: 4px; }
.pend-item.is-wait .pend-go { border-color: rgba(255, 181, 71, .45); }
.pend-flash { animation: pend-flash 1.6s ease-out; border-radius: 12px; }
@keyframes pend-flash { 0% { box-shadow: 0 0 0 3px rgba(34, 211, 255, .65); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .pend-flash { animation: none; outline: 2px solid rgba(34, 211, 255, .65); } }

/* 23.4.1 · El encabezado ya no se desfasa: «Cotiza con Nix» se salía de la píldora a la derecha (a 1496 px por más de
   100 px). La caja de acciones se encogía, pero sus botones no, así que el último quedaba fuera del vidrio.
   Ahora la píldora crece con lo que lleva (hasta el ancho de la pantalla), las acciones de quien no ha entrado no se
   encogen y, cuando falta espacio, primero «Descargar la app» queda como ícono y luego el menú se compacta. */
@media (min-width: 901px) {
    .header-inner { width: max-content; min-width: var(--page); max-width: calc(100vw - 24px); }
    .header-actions:not(:has(.account)) { flex-shrink: 0; }
    .main-nav { min-width: 0; }
}
@media (min-width: 901px) and (max-width: 1440px) {
    .header-app span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .header-app i { margin: 0; }
}
@media (min-width: 901px) and (max-width: 1240px) {
    .nav-trigger { padding: 0 8px; gap: 6px; font-size: .95rem; }
    .header-inner { gap: 8px; padding-left: 16px; }
    .header-actions { gap: 6px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
    .nav-trigger { padding: 0 6px; gap: 4px; font-size: .9rem; }
    .brand img { height: 32px; }
}
