/* Menú de módulos, idiomas, páginas de módulo, sus demos y la página escondida. */

/* ───────── Menú: módulos e idiomas ───────── */
.mm, .lang { position: relative; }
.mm-btn, .lang-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-family: var(--mono); font-size: 13.5px; color: #E9E7E4; background: transparent; border: 0; cursor: pointer; padding: 0; }
.mm-btn span, .lang-btn span { font-size: 10px; opacity: .7; transition: transform .3s var(--ease); }
.mm-btn[aria-expanded='true'] span, .lang-btn[aria-expanded='true'] span { transform: rotate(180deg); }
.mm-btn:hover, .lang-btn:hover { color: #fff; }
.mm-panel { position: absolute; left: 50%; top: calc(100% + 22px); transform: translateX(-50%); width: min(760px, 92vw); padding: 14px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(10, 10, 12, 0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95); animation: popIn .28s var(--ease) both; }
.mm-panel[hidden], .lang-list[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
.mm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mm-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: start; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; transition: background-color .2s; }
.mm-item:hover, .mm-item:focus-visible { background: rgba(255, 255, 255, 0.05); }
.mm-item i { width: 10px; height: 10px; margin-top: 4px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.mm-item b { display: block; font-family: var(--font); font-weight: 500; font-size: 14px; color: #fff; letter-spacing: -0.01em; }
.mm-item small { display: block; margin-top: 2px; font-family: var(--font); font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mm-item em, .soon-tag, .soon { font-style: normal; font-family: var(--mono); font-size: 10px; color: #1F0A2E; background: #C792EA; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.mm-all { display: block; margin-top: 8px; padding: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.mm-all:hover { color: #fff; }
.lang-list { position: absolute; right: 0; top: calc(100% + 18px); min-width: 170px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 10, 12, 0.97); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.95); display: grid; animation: fadeUp .25s var(--ease) both; }
.lang-list a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.lang-list a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.lang-list a[aria-current='true'] { color: #fff; box-shadow: inset 2px 0 0 var(--brand-hi); }
.sheet-mods summary { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 15px; cursor: pointer; list-style: none; }
.sheet-mods summary::-webkit-details-marker { display: none; }
.sheet-mods a { display: flex; align-items: center; gap: 10px; padding-left: 14px !important; font-size: 14px !important; }
.sheet-mods a i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.sheet-mods em { font-style: normal; font-size: 10px; color: #C792EA; }
.sheet-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 14px; }
.sheet-langs a { border: 0 !important; padding: 6px 0 !important; font-size: 13px !important; color: var(--muted); }
.foot-cols .soon { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 960px) { .lang { display: none; } }

/* ───────── Portada: enlaces a los módulos ───────── */
.card-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 16px; }
.card-ctas .btn-accent { margin-top: 0; }
.link-arrow.dark { color: #2B2C31; border-color: #C9CACE; }
.link-arrow.dark:hover { color: #000; border-color: var(--accent); }
.mod { position: relative; }
.mod > button, .mod.is-core, .mod-soon { padding-right: 58px !important; }
.mod-link { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 15px; border: 1px solid transparent; transition: all .25s; }
.mod-link:hover, .mod-link:focus-visible { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.mod.is-soon .mod-soon { box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; row-gap: 4px; padding: 15px 18px; border: 1px dashed rgba(199, 146, 234, 0.45); border-radius: 16px; background: rgba(199, 146, 234, 0.05); }
.mod.is-soon .mod-check { color: #C792EA; border-color: rgba(199, 146, 234, 0.5); }
.mod.is-soon .mod-name small { color: #C792EA; }
.code-chip { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(53, 194, 161, 0.55); background: rgba(53, 194, 161, 0.08); font-family: var(--mono); font-size: 12.5px; color: #E6E4E1; }
.code-chip[hidden] { display: none; }
.code-chip::before { content: '✦'; color: var(--ok); }

/* QR que se pueden escanear (y pulsar) */
.qr-egg { display: block; line-height: 0; border-radius: 4px; transition: transform .4s var(--ease), filter .4s; }
.qr-egg img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.qr-egg:hover { transform: scale(1.04) rotate(-1deg); filter: drop-shadow(0 0 18px rgba(216, 69, 92, 0.55)); }
.qr-egg:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 4px; }
.doc-qr img { width: 66px; height: 66px; display: block; }
.paper-qr { position: absolute; left: 50%; top: 44%; width: 58%; transform: translate(-50%, -50%) scale(0.5) rotate(-25deg); opacity: 0; transition: transform 1s var(--ease) .2s, opacity .6s .2s; }
.paper.is-digital .paper-qr { opacity: 1; transform: translate(-50%, -50%); }
.paper.is-digital .paper-qr:hover { transform: translate(-50%, -50%) scale(1.04) rotate(-1deg); }
.dp-top .qr-egg { width: 64px; flex: none; }

/* ───────── Página de módulo ───────── */
.btn-accent { background: var(--accent, var(--brand)); color: var(--accent-ink, #fff); }
.mhero { position: relative; padding: clamp(130px, 18vh, 170px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.mhero .hero-bg { height: 100%; }
.mhero .hero-bg::after { background: radial-gradient(ellipse 60% 70% at 30% 45%, rgba(14, 14, 16, 0.85), rgba(14, 14, 16, 0.35) 65%, transparent 85%), linear-gradient(to bottom, rgba(14, 14, 16, 0) 55%, var(--bg) 98%); }
.mhero-in { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.mpill i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.mhero h1 { max-width: 980px; font-size: clamp(2.5rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.mhero .lead { max-width: 680px; margin-top: 26px; color: #D9D7D4; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.55; }
.mhero .hero-ctas { margin-top: 32px; }
.mreq { margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mhero.is-soon .mpill { border-color: rgba(199, 146, 234, 0.5); }

.mdemo { padding: clamp(70px, 10vh, 110px) 0; border-top: 1px solid var(--line); }
.mdemo-box { margin-top: 46px; }
.mdemo-box.is-mini .app { transform: none; }
.mdemo .eyebrow, .msolves .eyebrow, .mhow .eyebrow, .mfeats .eyebrow { color: color-mix(in srgb, var(--accent) 75%, white); }

.msolves, .mhow, .mfeats, .mfits { padding: clamp(80px, 11vh, 120px) 0; border-top: 1px solid var(--line); }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.ms-card { border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: #111114; transition: border-color .4s, transform .5s var(--ease); }
.ms-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); }
.ms-before, .ms-after { padding: 22px 24px; }
.ms-before span, .ms-after span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ms-before span { color: var(--dim); }
.ms-before p { color: var(--dim); font-size: 15px; line-height: 1.5; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.ms-after { border-top: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.ms-after span { color: color-mix(in srgb, var(--accent) 80%, white); }
.ms-after p { color: #fff; font-size: 16.5px; line-height: 1.45; letter-spacing: -0.01em; }

.mh-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.mh-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line-2); }
.mh-steps::after { content: ''; position: absolute; left: 0; top: 19px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white)); transform: scaleX(var(--prog, 0)); transform-origin: left; transition: transform .2s linear; box-shadow: 0 0 12px var(--accent); }
.mh-step { position: relative; padding-right: 28px; opacity: 0.35; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mh-step.is-on { opacity: 1; transform: none; }
.mh-n { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font-family: var(--mono); font-size: 12px; color: var(--muted); transition: all .5s var(--ease); }
.mh-step.is-on .mh-n { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 22px -2px var(--accent); }
.mh-step h3 { margin-top: 22px; font-weight: 400; font-size: 22px; letter-spacing: -0.025em; }
.mh-step p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.mf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.mf-tile { position: relative; padding: 24px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.mf-tile::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.mf-tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); }
.mf-tile:hover::after { opacity: 1; }
.mf-n { font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--accent) 80%, white); }
.mf-tile h3 { margin-top: 14px; font-weight: 400; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.mf-tile p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.mfit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 40px; }
.mfit { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 4px 14px; padding: 20px 52px 20px 20px; border: 1px solid var(--line-2); border-radius: 18px; text-decoration: none; transition: border-color .3s, transform .4s var(--ease), background-color .3s; }
.mfit i { grid-row: span 2; width: 12px; height: 12px; margin-top: 5px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.mfit b { font-weight: 500; font-size: 16px; color: #fff; }
.mfit b em { font-style: normal; font-family: var(--mono); font-size: 10px; color: #C792EA; margin-left: 6px; }
.mfit span { color: var(--muted); font-size: 13.5px; }
.mfit-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--muted) !important; transition: transform .3s var(--ease), color .3s; }
.mfit:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, transparent); transform: translateY(-2px); }
.mfit:hover .mfit-go { transform: translate(4px, -50%); color: #fff !important; }

.mclosing .closing-veil { background: linear-gradient(90deg, rgba(14, 14, 16, 0.25) 0%, rgba(14, 14, 16, 0.45) 48%, rgba(14, 14, 16, 0.82) 100%), linear-gradient(to bottom, var(--bg) 0%, rgba(14, 14, 16, 0) 14%, rgba(14, 14, 16, 0) 86%, var(--bg) 100%); }
.mothers { padding: 36px 0 10px; border-top: 1px solid var(--line); }
.mothers .wrap { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.mothers-lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.mothers-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mothers-list a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-decoration: none; transition: border-color .25s, color .25s; }
.mothers-list a i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.mothers-list a:hover { border-color: var(--c); color: #fff; }

/* ───────── Demos propias de los módulos ───────── */
.ddocs, .dimp, .dfich, .dinsp, .dws { display: grid; gap: 14px; border: 1px solid #26262B; border-radius: 20px; background: #0B0B0D; padding: 18px; box-shadow: 0 50px 140px -50px color-mix(in srgb, var(--accent) 45%, transparent); }
.df-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: #8B8D95; margin-bottom: 10px; }

/* Documentación */
.ddocs { grid-template-columns: 1.3fr 1fr; align-items: start; }
.dd-drop { border: 1px dashed color-mix(in srgb, var(--accent) 55%, #333); border-radius: 16px; padding: 16px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.dd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.dd-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dd-file { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #26262B; border-radius: 12px; background: #111114; transition: border-color .4s; }
.dd-ico { display: grid; place-items: center; height: 44px; border-radius: 8px; background: #1C1C20; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.dd-name { display: grid; min-width: 0; }
.dd-name s { font-family: var(--mono); font-size: 12px; color: var(--dim); text-decoration: none; transition: all .5s; }
.dd-name b { font-weight: 500; font-size: 14px; color: #fff; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s; white-space: nowrap; text-overflow: ellipsis; }
.dd-st { font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }
.dd-file.is-work { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.dd-file.is-work .dd-st { color: var(--accent); }
.dd-file.is-done .dd-name s { text-decoration: line-through; font-size: 11px; }
.dd-file.is-done .dd-name b { max-height: 40px; opacity: 1; }
.dd-file.is-done .dd-st { color: var(--ok); }
.dd-mail { border: 1px solid #26262B; border-radius: 16px; padding: 16px; background: #111114; display: grid; gap: 10px; animation: fadeUp .5s var(--ease) both; }
.dd-mail[hidden], .dd-sent[hidden] { display: none; }
.dd-mh { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 13px; }
.dd-mh span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.dd-mh b { font-weight: 500; color: #fff; }
.dd-mail p { color: var(--ink-2); font-size: 13.5px; }
.dd-att { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.dd-mail .btn { justify-self: start; }
.dd-sent { color: var(--ok) !important; font-family: var(--mono); font-size: 12px !important; }

/* Importador */
.dimp { grid-template-columns: 1fr 1.15fr; align-items: start; }
.di-mail { border: 1px solid #26262B; border-radius: 16px; padding: 16px; background: #111114; display: grid; gap: 10px; }
.di-mh { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 13px; }
.di-mh span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.di-mh b { font-weight: 500; color: #fff; }
.di-body { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 14px; line-height: 1.55; color: #D6D4D1; border-top: 1px solid var(--line); padding-top: 12px; }
.di-mail .btn { justify-self: start; }
.di-out { display: grid; gap: 12px; align-content: start; }
.di-empty { min-height: 160px; display: grid; place-items: center; border: 1px dashed #2E2E33; border-radius: 16px; color: var(--dim); font-family: var(--mono); font-size: 12px; text-align: center; padding: 20px; }
.di-empty[hidden], .di-table[hidden], .di-warns[hidden], .di-check[hidden], .di-out [data-di-create][hidden], .di-done[hidden] { display: none !important; }
.di-table { border: 1px solid #26262B; border-radius: 14px; overflow: hidden; }
.di-tr { display: grid; grid-template-columns: 86px 1.2fr 1.4fr 60px; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #1A1A1E; font-size: 12.5px; color: #D6D4D1; animation: rowIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.di-th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); animation: none; }
.di-tr[data-warn] { background: rgba(232, 163, 58, 0.08); box-shadow: inset 3px 0 0 var(--warn); }
.di-warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.di-warns li { padding: 9px 12px; border-radius: 10px; background: rgba(232, 163, 58, 0.1); border: 1px solid rgba(232, 163, 58, 0.35); color: #F5D9A8; font-size: 13px; animation: fadeUp .45s var(--ease) both; }
.di-check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.di-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.di-done { color: var(--ok); font-family: var(--mono); font-size: 12.5px; }
.di-out .btn { justify-self: start; }
.di-out .btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

/* Fichaje */
.dfich { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.df-card { border: 1px solid #26262B; border-radius: 18px; padding: 22px; background: #111114; display: grid; gap: 12px; }
.df-clock { font-family: var(--mono); font-weight: 300; font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: -0.04em; color: #fff; line-height: 1; }
.df-state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.df-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #55575F; }
.df-state.is-in { color: #fff; }
.df-state.is-in::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.df-state.is-pause::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.df-worked { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.df-worked b { color: #fff; font-weight: 500; font-family: var(--mono); }
.df-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.df-btns .btn { width: 100%; }
.df-btns .btn:disabled { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }
.df-log { border: 1px solid #26262B; border-radius: 18px; padding: 18px; background: #111114; }
.df-events { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.df-events li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #16161A; font-size: 13.5px; color: #E6E4E1; animation: fadeUp .4s var(--ease) both; }
.df-events li b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: #fff; }
.df-events li em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--warn); text-align: right; }
.df-events li em.ok { color: var(--ok); }
.df-events .df-empty { display: block; background: transparent; color: var(--dim); font-family: var(--mono); font-size: 12px; padding: 4px 0; }
.df-office { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; justify-items: start; }
.df-corr { border: 1px solid rgba(232, 163, 58, 0.35); background: rgba(232, 163, 58, 0.08); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; justify-items: start; }
.df-corr[hidden] { display: none; }
.df-corr p { font-size: 13.5px; color: #F5D9A8; }
.df-note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); line-height: 1.5; }

/* Inspección */
.dinsp { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.dn-left, .dn-right { border: 1px solid #26262B; border-radius: 18px; padding: 16px; background: #111114; display: grid; gap: 12px; min-width: 0; }
.dn-tabs { margin: 0; justify-self: start; }
.dn-car { position: relative; display: grid; place-items: center; padding: 10px 10px 28px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); cursor: crosshair; }
.dn-car svg { width: min(200px, 64%); height: auto; }
.dn-body { fill: #1C1C21; stroke: #6E7079; stroke-width: 2; }
.dn-glass { fill: #2A2B31; stroke: #4A4B52; stroke-width: 1.5; }
.dn-roof { fill: #16161A; stroke: #3A3B41; stroke-width: 1.5; }
.dn-wheel { fill: #2A2B31; }
.dn-mark circle { stroke: #0B0B0D; stroke-width: 3; }
.dn-mark text { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: #0B0B0D; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.dn-mark.is-new circle { stroke: #fff; animation: pulseRing 1.6s var(--ease) 2; }
@keyframes pulseRing { 50% { stroke-width: 7; } }
.dn-hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--dim); pointer-events: none; }
.dn-sev { display: flex; gap: 6px; }
.dn-sev button { flex: 1; font: 500 12px var(--mono); padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; }
.dn-sev button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 170px; overflow: auto; }
.dn-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #16161A; font-size: 13px; color: #E6E4E1; }
.dn-list li em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.dn-list .dn-empty { background: transparent; color: var(--dim); font-family: var(--mono); font-size: 12px; padding: 4px 0; }
.dn-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dn-ph { position: relative; aspect-ratio: 4 / 3; border: 1px dashed #3A3B41; border-radius: 12px; background: #16161A; color: var(--ink-2); display: grid; place-content: center; gap: 4px; cursor: pointer; font: inherit; overflow: hidden; transition: border-color .3s; padding: 4px; text-align: center; }
.dn-ph span { font-size: 13px; font-weight: 500; }
.dn-ph small { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.dn-ph:hover { border-color: var(--accent); }
.dn-ph.is-taken { border-style: solid; border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(160deg, #3A3B41, #1C1C21 60%), #1C1C21; }
.dn-ph.is-taken::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.18), transparent 50%); animation: flashPh .5s ease-out; }
@keyframes flashPh { from { background: #fff; } }
.dn-ph.is-taken small { color: var(--ok); font-size: 9px; }
.dn-extra { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: #16161A; font-size: 13px; color: var(--muted); }
.dn-extra b { color: #fff; font-weight: 500; font-family: var(--mono); }
.dn-sign { width: 100%; height: 150px; border-radius: 12px; background: #F7F6F4; cursor: crosshair; touch-action: none; }
.dn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dn-report { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(53, 194, 161, 0.5); background: rgba(53, 194, 161, 0.08); font-family: var(--mono); font-size: 12px; color: #E6E4E1; display: grid; gap: 6px; animation: fadeUp .45s var(--ease) both; }
.dn-report[hidden] { display: none; }
.dn-report .warn { color: var(--warn); }
.dn-report .bad { color: #FF8A80; }

/* Workspace */
.dws { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.dws-side { border: 1px solid #26262B; border-radius: 16px; padding: 14px; background: #111114; display: grid; gap: 4px; }
.dws-page { all: unset; box-sizing: border-box; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.dws-page:hover { background: rgba(255, 255, 255, 0.04); }
.dws-page.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.dws-main { border: 1px solid #26262B; border-radius: 16px; padding: 18px; background: #111114; display: grid; gap: 14px; min-width: 0; }
.dws-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dws-title h4 { margin: 0; font-weight: 400; font-size: 24px; letter-spacing: -0.03em; color: #fff; }
.dws-views { margin: 0; justify-self: start; }
.dws-body { min-height: 260px; }
.dws-body > * { animation: fadeUp .4s var(--ease) both; }
.ws-table { border: 1px solid #26262B; border-radius: 12px; overflow: hidden; }
.ws-tr { display: grid; grid-template-columns: 1.8fr 0.8fr 0.9fr 0.5fr 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #1A1A1E; font-size: 13px; color: #E6E4E1; }
.ws-th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.ws-st { all: unset; cursor: pointer; justify-self: start; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.ws-st:focus-visible { outline: 2px solid #fff; }
.ws-st.pend { background: #26262B; color: var(--ink-2); }
.ws-st.curso { background: rgba(127, 181, 255, 0.16); color: var(--blue); }
.ws-st.hecho { background: rgba(53, 194, 161, 0.16); color: var(--ok); }
.ws-link { font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--accent) 80%, white); }
.ws-link::before { content: '↗ '; }
.ws-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ws-col { border-radius: 12px; background: #16161A; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 220px; }
.ws-col > b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.ws-card { all: unset; box-sizing: border-box; display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #1F1F24; border: 1px solid #2A2A30; cursor: pointer; font-size: 13px; color: #fff; transition: border-color .2s, transform .2s; }
.ws-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.ws-card:focus-visible { outline: 2px solid #fff; }
.ws-card small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.ws-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ws-day { border-radius: 12px; background: #16161A; padding: 10px; min-height: 200px; display: grid; gap: 6px; align-content: start; }
.ws-day > b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.ws-chip { font-size: 12px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, #1F1F24); color: #fff; }
.ws-chip.hecho { opacity: 0.5; text-decoration: line-through; }
.dws-note { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ───────── Página escondida (easter egg) ───────── */
.egg { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.egg .hero-bg { height: 100%; }
.egg-in { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.egg-num { font-family: var(--mono); font-weight: 200; font-size: clamp(5rem, 18vw, 13rem); line-height: 0.9; letter-spacing: -0.06em; color: #fff; text-shadow: 0 0 60px rgba(216, 69, 92, 0.6); margin: 10px 0 18px; }
.egg h1 { max-width: 880px; font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.egg .lead { max-width: 620px; margin: 22px auto 0; color: #D9D7D4; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.55; }
.egg-code { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 14px 12px 22px; border: 1px dashed rgba(216, 69, 92, 0.7); border-radius: 18px; background: rgba(200, 48, 74, 0.1); }
.egg-code-lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.egg-code b { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; letter-spacing: 0.08em; color: #fff; }
.egg .hero-ctas { margin-top: 26px; }
.egg-how { margin-top: 22px; max-width: 520px; color: var(--muted); font-size: 14.5px; }
.egg-cond { margin-top: 18px; max-width: 560px; text-align: left; font-size: 13px; color: var(--dim); }
.egg-cond summary { cursor: pointer; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.egg-cond ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.egg-wink { margin-top: 34px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ───────── Pantallas pequeñas ───────── */
@media (max-width: 1100px) {
  .mf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ms-grid { grid-template-columns: 1fr; }
  .mh-steps { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .mh-steps::before, .mh-steps::after { display: none; }
  .ddocs, .dimp, .dfich, .dinsp, .dws { grid-template-columns: 1fr; }
  .dws-side { grid-auto-flow: column; overflow-x: auto; }
}
@media (max-width: 640px) {
  .mf-grid { grid-template-columns: 1fr; }
  .mh-steps { grid-template-columns: 1fr; }
  .mhero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .dn-photos { grid-template-columns: 1fr 1fr; }
  .ws-tr { grid-template-columns: 1.6fr 0.9fr; }
  .ws-tr > :nth-child(n + 3) { display: none; }
  .ws-board, .ws-cal { grid-template-columns: 1fr; }
  .ws-col, .ws-day { min-height: 0; }
  .di-tr { grid-template-columns: 78px 1fr 52px; }
  .di-tr > :nth-child(3) { display: none; }
  .egg-code { flex-wrap: wrap; justify-content: center; }
  .dd-file { grid-template-columns: 38px minmax(0, 1fr); }
  .dd-st { grid-column: 2; }
}

/* ───────── Responsive y pantallas táctiles ─────────
   Lo que encontró pruebas/responsive.cjs (17 tamaños, Edge y WebKit). Va al final para ganar
   a las reglas de cada sección sin tener que tocarlas una a una. */

/* Campos a 16 px: con menos, el iPhone amplía la página al tocar un campo y la descoloca. */
.form input:not([type='checkbox']), .form select, .form textarea { font-size: 16px; }

/* Ningún enlace ni botón suelto por debajo de 24 px de alto (WCAG 2.2, criterio 2.5.8). */
.foot-cols a, .foot-mail, .crumbs a, .link-arrow, .nav-links a, .mm-btn, .lang-btn, .egg-cond summary, .ws-st {
  min-height: 26px; display: inline-flex; align-items: center;
}
/* «Iniciar sesión» va oculto en el móvil (está en el menú): solo se le da tamaño donde se ve. */
@media (min-width: 961px) { .nav-login { min-height: 26px; display: inline-flex; align-items: center; } }
.egg-cond summary { display: flex; justify-content: center; }

/* Con el dedo, 44 px (lo que piden Apple y Google). Incluye los iPad en horizontal, que ven
   el menú de escritorio. El ratón conserva el tamaño fino. */
@media (pointer: coarse) {
  .btn, .btn-sm { min-height: 44px; }
  .nav-burger { width: 44px; height: 44px; }
  .nav-burger span:first-child { top: 18px; }
  .nav-burger span:last-child { top: 24px; }
  .nav-links a, .nav-login, .mm-btn, .lang-btn, .crumbs a, .link-arrow, .egg-cond summary { min-height: 44px; }
  .foot-cols a { min-height: 40px; }
  .foot-cols div { gap: 0; }
  .foot-h { margin-bottom: 4px; }
  .try-reset { min-height: 32px; padding: 4px 14px; }
  .preset { min-height: 40px; }
}

/* Letra mínima de 11 px en rótulos y etiquetas. */
.foot-h, .chips-lbl, .p-tag { font-size: 11px; }
.mm-item em, .soon-tag, .soon { font-size: 11px; }

/* Las columnas de una sola pista no pueden ser más anchas que la pantalla: con `1fr` a secas,
   el contenido más ancho de dentro las estiraba (6 px de más a 320 px). */
@media (max-width: 960px) {
  .config-grid, .deca-grid, .free-grid, .faq-grid, .form-grid, .ddocs, .dimp, .dfich, .dinsp, .dws, .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .config-right { grid-template-columns: minmax(0, 1fr); }
  .config-truck svg { max-width: 100%; height: auto; }
  /* El menú del móvil no puede ser más alto que la pantalla (móvil en horizontal: 390 px). */
  .sheet { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* En el móvil un botón largo («Pedir una demo con estos módulos», y más en alemán) parte la
   línea en vez de salirse de la pantalla. */
@media (max-width: 640px) {
  .btn:not(.btn-sm) { white-space: normal; height: auto; min-height: 42px; padding-top: 10px; padding-bottom: 10px; text-align: center; line-height: 1.25; }
}
@media (max-width: 380px) {
  .nav-logo img { width: 104px; height: auto; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 0 12px; font-size: 12.5px; }
}
.dws-title h4 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .dws-views { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .dws-views button { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
}

/* Cabecera de escritorio en pantallas medianas (iPad en horizontal, portátil pequeño): con las
   tres columnas iguales no cabía y «Iniciar sesión» partía en dos líneas. */
.nav-links a, .nav-login, .mm-btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1240px) {
  .nav-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
  .nav-links { gap: 22px; justify-content: center; }
  .nav-cta { gap: 16px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .nav-links > a[href$="#autonomos"] { display: none; }
}

/* iPhone en horizontal: con viewport-fit=cover el fondo llega hasta los bordes y el contenido
   se aparta de la muesca y de las esquinas redondeadas. */
.wrap, .nav-inner {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sheet { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.foot { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }

/* La demo «del correo a la factura» en pantallas bajas (móvil en horizontal): sin fijar al
   scroll, con los cinco pasos y el documento final a la vista (js/app.js, staticDemo). */
@media (max-height: 560px) {
  .demo-track { height: auto; margin-top: 0; }
  /* El documento mide 720 px y se ve reducido (transform): lo que sobra del hueco no puede
     hacer que la página se mueva de lado. */
  .demo-stage { position: relative; height: auto; overflow: visible; overflow-x: clip; padding: 28px 0 56px; display: grid; gap: 30px; justify-items: center; }
  .demo-glow, .demo-ticker, .doc-chips { display: none; }
  .demo-copy { position: static; transform: none; left: auto; top: auto; width: min(1100px, calc(100% - 2 * var(--gutter))); min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; text-align: left; }
  .step { position: static; opacity: 1; transform: none; filter: none; pointer-events: auto; }
  .step-n { justify-content: flex-start; }
  .step-n i::after { transform: none; }
  .step h3 { font-size: 1.45rem; }
  .doc-wrap { position: relative; left: auto; top: auto; margin: 0; transform: scale(var(--doc-s, 1)); transform-origin: 50% 0; }
  .demo-pill { position: static; transform: none; opacity: 1; pointer-events: auto; }
  .demo-pill.is-on { transform: none; }
}

/* Migas de pan alineadas aunque los enlaces midan 44 px en pantallas táctiles. */
.crumbs { align-items: center; }
/* En el móvil los saltos de línea forzados de los títulos dejaban una palabra sola («para»):
   ahí se quitan y el navegador reparte las líneas. */
@media (max-width: 480px) {
  h1 br, h2 br { display: none; }
  h1, h2 { text-wrap: balance; }
}

/* ───────── Aviso de cookies ─────────
   cookies.js y cookies.css son los de la web anterior (misma cookie `serge_cookie_choice`, misma
   política, mismos textos en los 10 idiomas); aquí solo se ponen en oscuro. Los selectores llevan
   el id porque los suyos también. */
#serge-cookie-ui { font-family: var(--font); color: #E6E4E1; }
#serge-cookie-ui p { color: var(--muted); }
#serge-cookie-ui a { color: #fff; }
#serge-cookie-ui .serge-cookie-banner, #serge-cookie-ui .serge-cookie-dialog, #serge-cookie-ui .serge-cookie-notice { background: #141416; color: #E6E4E1; border-color: #2E2E33; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
#serge-cookie-ui .serge-cookie-banner { border-radius: 18px; }
#serge-cookie-ui .serge-cookie-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
#serge-cookie-ui .serge-cookie-actions button { background: transparent; color: #fff; border-color: #3A3A40; border-radius: 999px; font-family: var(--mono); font-weight: 500; }
#serge-cookie-ui .serge-cookie-actions button:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.45); }
#serge-cookie-ui .serge-cookie-actions button[data-cookie-action='accept'] { background: var(--brand); border-color: var(--brand); }
#serge-cookie-ui .serge-cookie-actions button[data-cookie-action='accept']:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
#serge-cookie-ui .serge-cookie-close { background: #26262B; color: #fff; }
#serge-cookie-ui .serge-cookie-category { border-color: #26262B; }
#serge-cookie-ui .serge-cookie-category-heading span { color: #E6E4E1; background: rgba(216, 69, 92, 0.18); }
#serge-cookie-ui select { background-color: #0B0B0D; color: #fff; border-color: #2E2E33; border-radius: 12px; }
#serge-cookie-ui .serge-cookie-reset { color: var(--muted); }
#serge-cookie-ui :is(button, a, select):focus-visible { outline-color: var(--brand-hi); }

/* ───────── Acabado tras el QA del 15-oct ─────────
   - En las páginas de contenido (heredadas, Freelance) la cabecera no se hace esperar: la
     entrada animada es para la portada.
   - Al llegar por un ancla (#instalar, #lp-precio…) el título no queda bajo la cabecera fija.
   - Rótulos y barra del pie con contraste AA.
   - El aviso de cookies a 320 px: botones que no desbordan. */
.is-prosa .nav, .is-freelance .nav { animation: none; }
[id] { scroll-margin-top: 84px; }
.foot-h, .foot-bar { color: var(--muted); }
@media (max-width: 520px) {
  #serge-cookie-ui .serge-cookie-actions button { white-space: normal; font-size: 12px; line-height: 1.2; padding: 10px 6px; }
  #serge-cookie-ui .serge-cookie-banner { padding: 16px; }
  #serge-cookie-ui h2 { font-size: 16px; }
}
