/* Shared look for every factory app: phone first, feels like an installed app.
 * Per-app accent comes from --accent (set inline by the page). Light and dark. */
:root{
  --accent:#1F2937;--accent-ink:var(--accent);
  --ink:#0B1220;--mut:#5E6A7E;--line:#E7EAF0;--bg:#F2F4F8;--card:#fff;--field:#F1F3F7;
  --ok:#05704F;--bad:#B3372A;--warn:#92400E;
  --r:16px;--shadow:0 0 0 1px var(--line),0 1px 2px rgba(16,24,40,.05);
  --tint:color-mix(in srgb,var(--accent) 9%,var(--card));
  --ghost-ink:color-mix(in srgb,var(--accent) 85%,#000);
}
@media (prefers-color-scheme:dark){:root{
  --accent-ink:color-mix(in srgb,var(--accent) 42%,#fff);--ghost-ink:var(--accent-ink);
  --ink:#F3F5F9;--mut:#98A2B3;--line:#262C38;--bg:#0B0E14;--card:#151922;--field:#1E2430;
  --ok:#34D399;--bad:#F87171;--warn:#FBBF24;
  --shadow:0 0 0 1px rgba(255,255,255,.05);
  --tint:color-mix(in srgb,var(--accent) 22%,var(--card));
}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font:17px/1.45 system-ui,-apple-system,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}
.wrap{max-width:640px;margin:0 auto;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
a{color:var(--accent-ink)}

/* App bar: translucent, sticks, clears the notch when installed */
.top{position:sticky;top:0;z-index:10;padding-top:env(safe-area-inset-top);background:color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:10px;height:56px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;font-weight:700;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.brand img{border-radius:10px;box-shadow:0 2px 8px -2px color-mix(in srgb,var(--accent) 60%,transparent)}
.brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}
@media (max-width:480px){.brand span{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:15px;line-height:1.15}.more{padding:0 10px;font-size:13px}}
.more{border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:99px;color:var(--mut);font-size:14px;font-weight:600;text-decoration:none;background:var(--field)}
.install{min-height:44px;padding:0 14px;border:0;border-radius:99px;font:inherit;font-size:14px;font-weight:700;color:#fff;background:var(--accent);cursor:pointer}

/* Hero: the tagline on the app's color, cards ride up over it */
.hero{position:relative;overflow:hidden;color:#fff;padding:22px 0 54px;background:color-mix(in srgb,var(--accent) 88%,#000)}
.hero h1{position:relative;z-index:1;margin:0;font-size:clamp(26px,7.2vw,34px);line-height:1.1;font-weight:800;letter-spacing:-.025em;text-wrap:balance}
.hero-art{display:none}
.hero p{position:relative;z-index:1;margin:14px 0 0;opacity:.88;font-size:15px}
main.wrap{position:relative;z-index:1;margin-top:-34px;padding-bottom:8px}
/* Plain text as the first thing must clear the hero that cards are meant to overlap. */
main.wrap>p:first-child{margin-top:48px}
.row>label:has(>input[type=checkbox]),.row>label:nth-child(odd of label:not([hidden])):nth-last-child(1 of label:not([hidden])){grid-column:1/-1}
@media (max-width:999px){.row>.full-sm,.row>.full-sm+label:nth-last-child(1 of label:not([hidden])){grid-column:1/-1}}
.item .row>label:first-child{grid-column:1/-1}.item .row>label:nth-child(n+2){grid-column:auto!important}
h2{font-size:19px;line-height:1.25;letter-spacing:-.015em;margin:0 0 12px}
h3{font-size:16px;margin:0 0 8px}
.lead{color:var(--mut);margin:0 0 18px}
.card.lead h2{color:var(--ink)}
input[list]::-webkit-calendar-picker-indicator{display:none!important}

.card{background:var(--card);border-radius:var(--r);padding:18px;margin:0 0 14px;box-shadow:var(--shadow);animation:rise .35s ease both}
/* transform only: a throttled background tab must never leave a card invisible */
@keyframes rise{from{transform:translateY(10px)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;align-items:start}
.row>.full,.row>label:has(>input[type=month]){grid-column:1/-1}
.item .row{grid-template-columns:1fr 1fr 52px}
.item .row>.rm{grid-row:span 3;align-self:end;min-height:52px;padding:0;margin-bottom:12px;font-size:18px}
.row>.actions{grid-column:1/-1;margin:0 0 12px}

/* Fields: filled, tall, 17px text so iOS never zooms */
label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin:0 0 12px}
label:has(>input:not([type=checkbox],[type=radio]),>select,>textarea){display:flex;flex-direction:column}
label:has(>input:not([type=checkbox],[type=radio]),>select,>textarea)>small{order:2;margin-top:6px}
.row>label:has(>input:not([type=checkbox],[type=radio]),>select,>textarea){display:grid;grid-template-rows:subgrid;grid-row:span 3;align-items:end}
.row>label>:is(input:not([type=checkbox],[type=radio]),select,textarea){grid-row:2}
.row>label:has(>input:not([type=checkbox],[type=radio]),>select,>textarea)>small{grid-row:3;align-self:start}
label small,.hint{display:block;font-weight:400;color:var(--mut);font-size:13px;line-height:1.35;margin-top:2px}
input,select,textarea{display:block;width:100%;margin-top:6px;padding:13px 14px;font:inherit;font-size:17px;font-weight:500;color:var(--ink);background:var(--field);border:1.5px solid transparent;border-radius:14px;min-height:52px;transition:border-color .15s,background .15s,box-shadow .15s;appearance:none;-webkit-appearance:none}
textarea{min-height:104px;resize:vertical}
select{padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
input::placeholder,textarea::placeholder{color:var(--mut);font-weight:400}
@media (prefers-color-scheme:dark){input::placeholder,textarea::placeholder{color:color-mix(in srgb,var(--mut) 90%,var(--field))}}
@media (prefers-color-scheme:dark){input,select,textarea{border-color:#343C4C}}
input,select,textarea{min-width:0;max-width:100%}
input:not([type=checkbox],[type=radio]),select{height:52px}
input:focus,select:focus,textarea:focus{outline:0;background:var(--card);border-color:var(--accent-ink);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent)}
input[type=checkbox],input[type=radio]{display:inline-block;flex:0 0 auto;width:24px;height:24px;min-height:0;margin:0 10px 0 0;padding:0;vertical-align:-6px;border-radius:8px;background:var(--field);border:1.5px solid color-mix(in srgb,var(--mut) 45%,transparent);cursor:pointer}
input[type=radio]{border-radius:50%}
label:where(:has(input[type=checkbox],input[type=radio])){min-height:44px;padding-block:10px;box-sizing:border-box}
input[type=checkbox]:checked,input[type=radio]:checked{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/18px no-repeat;border-color:var(--accent)}
.actions label{display:inline-flex;align-items:center;margin:0;padding:8px 14px 8px 10px;border-radius:99px;background:var(--field);font-weight:500}
.actions label input{margin-right:8px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px 20px;font:inherit;font-weight:700;letter-spacing:-.01em;color:#fff;background:var(--accent);border:0;border-radius:14px;cursor:pointer;text-decoration:none;text-align:center;transition:transform .12s ease,filter .15s;box-shadow:0 6px 16px -8px color-mix(in srgb,var(--accent) 80%,transparent)}
.btn:active,.install:active,.tabs button:active,.app:active{transform:scale(.97)}
.btn:hover{filter:brightness(1.06)}
.btn{white-space:nowrap}
.btn.ghost{color:var(--ghost-ink);background:color-mix(in srgb,var(--accent) 12%,var(--card));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 30%,transparent)}
.btn.small{min-height:44px;padding:8px 14px;font-size:14px;border-radius:12px}
.btn:disabled,.btn[aria-disabled=true]{opacity:.45;pointer-events:none;box-shadow:none}
.btn.wa{background:#075E54;box-shadow:0 6px 16px -8px #075E54}
.btn:focus-visible,a:focus-visible,.tabs button:focus-visible,.install:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.actions+.row,.actions+label,.actions+h2{margin-top:18px}
.item>.actions{justify-content:flex-end;margin-top:0}
.side>.actions{margin-bottom:14px}
.side>.actions>.btn,.out .actions>.btn:not(.small){flex:1 1 auto}
.side .actions .btn:not(.small){padding-inline:14px}
@media (max-width:560px){.actions>.btn:not(.small){flex:1 1 150px}}

/* Result box and the headline number */
.out{background:var(--tint);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 22%,transparent)}
.big{font-size:clamp(34px,10vw,44px);font-weight:800;line-height:1.05;letter-spacing:-.03em;color:var(--accent-ink);font-variant-numeric:tabular-nums;margin:2px 0 6px}

.t{width:100%;border-collapse:collapse;font-size:15px}
.t th{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--mut)}
.t th,.t td{padding:11px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.t td.n,.t th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.t tr:last-child td{border-bottom:0}
.t:not(:has(thead)) tr:last-child td:not(:empty),.t tfoot td{font-weight:700}
.t tr:has(+tr.acts) td{border-bottom:0;padding-bottom:2px}
.t tr.acts td{padding-top:0}.t tr.acts .actions{margin:6px 0 4px;justify-content:flex-end}
.est{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.t th.n,.t td.n{padding-left:12px}
.dl .actions .btn{flex:1 1 150px}
/* Where the money goes: one bar, one legend. */
.split{display:flex;gap:2px;height:16px;margin:12px 0 8px;border-radius:99px;overflow:hidden}
.split span{min-width:5px}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 12px;font-size:12.5px;color:var(--mut)}
.legend i{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:3px}
.k1{background:var(--accent-ink)}.k2{background:#F59E0B}.k3{background:#EF4444}.k4{background:#8B5CF6}.k5{background:#64748B}
.av{display:inline-grid;place-items:center;flex:0 0 auto;width:28px;height:28px;margin-right:8px;border-radius:50%;background:var(--accent);color:#fff;font-size:13px;font-weight:800;vertical-align:middle}
[role=status]>p{display:inline-block;margin:0 0 12px;padding:6px 14px;border-radius:99px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);font-size:13px}
[aria-live]>p{margin:0 0 14px;padding:26px;border-radius:var(--r);border:2px dashed color-mix(in srgb,var(--accent) 35%,var(--line));background:var(--card);color:var(--mut);font-size:15px;text-align:center}
.dl>b{display:block;margin-bottom:4px}
/* Shown while the block before it is still hidden: says what will appear there. */
.if-empty{margin:14px 0 0;padding:22px;border-radius:14px;border:2px dashed color-mix(in srgb,var(--accent) 30%,var(--line));color:var(--mut);font-size:14px;text-align:center}
:not([hidden]):not(:empty)+.if-empty{display:none}
main.wrap:has(#clientes:empty) .card:has(>.actions>#borrar){display:none}
@media (max-width:380px){.t{font-size:13px}.t th,.t td{padding:10px 2px}input[type=date]{padding-inline:10px}}
@media (max-width:480px){.t.hide2 th:nth-child(2),.t.hide2 td:nth-child(2){display:none}}
@media (max-width:480px){.t{font-size:13.5px}.t th{font-size:11px}.t th,.t td{padding:10px 4px}}
.scroll{overflow-x:auto;margin:0 -6px;padding:0 6px;-webkit-overflow-scrolling:touch}
.list{list-style:none;margin:0;padding:0}
.list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.list li:last-child{border-bottom:0;padding-bottom:2px}
.list+label,.list+h2,.list+h3,.list+p{margin-top:18px}
.list li>span:first-child{min-width:0;overflow-wrap:anywhere}
.tag{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;background:var(--field);color:var(--mut);white-space:nowrap}
.tag.ok{background:color-mix(in srgb,var(--ok) 15%,var(--card));color:var(--ok)}
.tag.bad{background:color-mix(in srgb,var(--bad) 14%,var(--card));color:var(--bad)}
.tag.warn{background:color-mix(in srgb,#F59E0B 20%,var(--card));color:var(--warn)}
.ok{color:var(--ok)}.bad{color:var(--bad)}.mut{color:var(--mut)}
p.bad:empty,p.ok:empty{display:none}

/* Tabs: a segmented control */
.tabs{display:flex;gap:4px;margin:0 0 14px;padding:4px;border-radius:16px;background:var(--card);box-shadow:var(--shadow);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:1 0 auto;min-height:44px;padding:8px 14px;font:inherit;font-size:15px;font-weight:700;color:var(--mut);background:transparent;border:0;border-radius:12px;cursor:pointer;transition:background .2s,color .2s,transform .12s}
.tabs button[aria-selected=true]{color:#fff;background:var(--accent);box-shadow:0 4px 12px -6px color-mix(in srgb,var(--accent) 80%,transparent)}

[hidden]{display:none!important}
.local{display:flex;gap:10px;align-items:flex-start;color:var(--mut);font-size:13px;line-height:1.4;margin:20px 4px}
.local::before{content:"";flex:0 0 18px;height:18px;margin-top:1px;background:var(--mut);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E") center/contain no-repeat}
.foot{margin-top:20px;padding:20px 0 calc(24px + env(safe-area-inset-bottom));color:var(--mut);font-size:12px;line-height:1.5}
.foot p{margin:0 0 6px}
.foot a{color:inherit}

.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
label.check{display:flex;align-items:flex-start;font-weight:400;font-size:14px;line-height:1.4;color:var(--mut)}
label.check input{margin-top:1px}
.firma{display:flex;align-items:center;margin:18px 4px 0;font-weight:500;color:var(--mut)}
.faq details{border-bottom:1px solid var(--line)}
.faq details:last-child{border-bottom:0}
.faq summary{display:flex;justify-content:space-between;gap:12px;padding:14px 0;font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:0 0 auto;font-size:22px;line-height:1;color:var(--accent-ink)}
.faq details[open] summary::after{content:"\2212"}
.faq p{margin:0 0 14px;color:var(--mut);font-size:15px}
.others{margin:22px 0 0}
.others h2{margin:0 4px 10px}
.strip{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:2px 16px 14px;scroll-snap-type:x proximity;scroll-padding:0 16px;scrollbar-width:none}
.strip::-webkit-scrollbar{display:none}
.strip a{flex:0 0 132px;scroll-snap-align:start;display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:18px;background:var(--card);box-shadow:var(--shadow);color:var(--ink);font-size:14px;font-weight:700;line-height:1.25;text-decoration:none}
.strip img{border-radius:13px}
@media (max-width:999px){.strip{-webkit-mask-image:linear-gradient(90deg,#000 84%,transparent);mask-image:linear-gradient(90deg,#000 84%,transparent)}}

/* Hub: a home screen of apps */
.apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.app{display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none;margin:0;padding:16px;transition:transform .12s ease}
.app img{border-radius:18px;box-shadow:0 8px 18px -10px rgba(16,24,40,.5)}
.app b{display:block;color:var(--ink);font-size:17px;letter-spacing:-.01em;margin-bottom:2px}
.app span{font-size:14px;line-height:1.4;color:var(--mut)}

/* Round 9 */
.vacio{margin:14px 0 0;padding:22px;border-radius:14px;border:2px dashed color-mix(in srgb,var(--accent) 30%,var(--line));color:var(--mut);font-size:14px;text-align:center}
.lnk{border:0;background:none;padding:0;margin:0;font:inherit;font-weight:600;color:var(--accent-ink);text-decoration:underline;cursor:pointer}
.kpi{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.kpi p{margin:0}
label:has(>select:empty){display:none!important}
.push{margin-top:auto}
.scroll{margin:0;padding:0}
.t th:first-child,.t td:first-child{padding-left:0}.t th:last-child,.t td:last-child{padding-right:0}
.t tr.acts .actions{justify-content:flex-start}
/* Button groups: WhatsApp takes a row, the rest pair up; a button left alone takes a row too. */
.side>.actions,.two>div>.actions:not(.end){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
:is(.side>.actions,.two>div>.actions:not(.end))>:is(.wa,button:only-of-type,button:last-child:nth-child(even)){grid-column:1/-1}
.actions.end{justify-content:flex-start}.out .actions.end>.btn:not(.small),.actions.end>.btn{flex:0 0 auto}
.list li:has(>.dl){align-items:stretch}
.dl{display:flex;flex-direction:column;width:100%}.dl>.tag{align-self:flex-start}.dl>.actions{margin-top:auto;padding-top:10px}
@media (max-width:480px){.more{padding:0 8px;font-size:12.5px}}
/* Round 10 */
.side.wide>[aria-live] .card{display:flex;flex-direction:column}
.side.wide>[aria-live] .card>.actions{margin-top:auto;padding-top:12px}
.side.wide>[aria-live] .card .actions .btn{flex:1 1 100%}
.side.wide .list li:last-child{padding-bottom:13px}
.card>.actions:first-child{margin-top:0}
.firma{margin-bottom:16px}
:is(.side>.actions,.two>div>.actions:not(.end)) .btn{white-space:normal;padding-inline:10px;text-align:center}
@media (max-width:999px){.two>div+div{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}}
@media (max-width:380px){.t.hide2{font-size:12px}.t.hide2 th{font-size:10px;letter-spacing:0}}
/* Round 12: on the narrowest phones a half-width select cuts its text, so fields stack. */
@media (max-width:380px){.row{grid-template-columns:minmax(0,1fr)}}
/* Installed (standalone): no browser chrome, so no need to sell the install */
@media (display-mode:standalone){.install{display:none!important}}
@media (min-width:700px){.hero{padding:34px 0 64px}.card{padding:22px}}
@media (min-width:900px){.hub .wrap{max-width:960px}.hub .apps{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}}
/* Wide screens: two columns of cards and the app's art in the hero, not a phone column stranded in the middle. */
@media (min-width:1000px){
  .wrap,.hub .wrap{max-width:1080px}
  .hub .apps{grid-template-columns:repeat(5,1fr)}
  .hero{padding:44px 0 82px}
  .hero h1{font-size:46px;max-width:660px}
  .hero .wrap:has(.hero-art){display:flex;align-items:center;justify-content:space-between;gap:32px}
  .hero-art{display:block;flex:0 0 auto;position:relative;z-index:1;margin:-10px 28px -30px 0;border-radius:40px;transform:rotate(6deg);box-shadow:0 26px 50px -22px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.14)}
  /* Two columns of work. Anything marked .span, the questions and the notice band run full width below,
     so no column is padded with a stretched card. */
  main.wrap:not(.hub main),main.wrap>section:not(.card,.others){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;align-items:start;grid-auto-flow:row dense}
  main.wrap:where(:not(.hub main))>*,main.wrap>:where(section:not(.card,.others))>*{grid-column:1;min-width:0}
  main.wrap>section:not(.card),main.wrap>.span,main.wrap>.tabs,main.wrap>.others,main.wrap>.below,main.wrap>.firma,main.wrap>.local,main.wrap>p:first-child,main.wrap>p.actions,main.wrap>#bkMsg{grid-column:1/-1}
  main.wrap>.side{grid-column:2;grid-row:span 40;align-self:stretch}
  main.wrap>.side:not(.wide){display:flex;flex-direction:column}
  /* .pair: one card on each side of one row, same height. A tab panel is a pair too (form | result). */
  main.wrap>.side.pair{grid-row:auto}
  main.wrap>.side.pair>.card{flex:1}
  main.wrap:has(>.side.pair)>.card:not(.span){align-self:stretch}
  main.wrap>section:not(.card,.others)>*{align-self:stretch}
  main.wrap>section:not(.card,.others)>.out{grid-column:2;grid-row:1}
  /* What goes in an empty column, said in a box that fills it. */
  .side[data-empty]:not([data-empty=""]):not(:has(>:not([hidden])))::before,.side[data-hint]:has(>.card[hidden])::after,main.wrap>section:not(.card,.others):not(:has(>.out:not([hidden])))::after{content:attr(data-empty);flex:1;display:grid;place-items:center;min-height:140px;padding:26px;border-radius:var(--r);border:2px dashed color-mix(in srgb,var(--accent) 35%,var(--line));color:var(--mut);font-size:15px;text-align:center;background:var(--card)}
  .side[data-hint]:has(>.card[hidden])::after{content:attr(data-hint)}
  main.wrap>section:not(.card,.others):not(:has(>.out:not([hidden])))::after{content:"Completa los datos y aquí aparece tu resultado.";grid-column:2;grid-row:1;margin-bottom:14px}
  .below{display:block;margin-top:6px}
  .faq{display:grid;grid-template-columns:1fr 1fr;column-gap:36px;align-items:start}
  .faq>h2{grid-column:1/-1}
  /* Notice band: copy and the two consents on the left, the address and the button on the right. */
  .below>#lead{display:grid;grid-template-columns:1.2fr 1fr;column-gap:32px;align-items:start}
  .below>#lead>form{display:contents}
  .below>#lead>h2{grid-column:1;grid-row:1}
  .below>#lead>.hint{grid-column:1;grid-row:2;margin-bottom:10px}
  .below>#lead label.check{grid-column:1}
  .below>#lead form>label:not(.check){grid-column:2;grid-row:1/span 3}
  .below>#lead .actions{grid-column:2;grid-row:4;margin-top:0}
  .below>#lead #leadMsg{grid-column:2;grid-row:5}
  /* .wide: a full-width form with its results below (Farmacia's list, Auto's vehicles). */
  main.wrap>.side.wide{grid-column:1/-1;grid-row:auto}
  main.wrap:has(>.side.wide)>.card{grid-column:1/-1}
  .side.wide>[aria-live]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:0 20px;align-items:stretch}
  .side.wide>[aria-live]>p{grid-column:1/-1}
  .side.wide .list{display:grid;grid-template-columns:1fr 1fr;column-gap:36px}
  .side.wide .list li:nth-last-child(2):nth-child(odd){border-bottom:0}
  .side.wide .list li{align-items:stretch}
  #cNotas{min-height:168px}
  /* Round 9 */
  .faq{display:block;columns:2;column-gap:36px}.faq>h2{column-span:all}.faq details{break-inside:avoid}
  main.wrap>section:not(.card,.others)>.out{align-self:start}
  main.wrap>section:not(.card,.others):not(:has(>.out:not([hidden])))::after{align-self:stretch}
  .side[data-empty]:not([data-empty=""]):not(:has(>:not([hidden])))::before,.side[data-hint]:has(>.card[hidden])::after{margin-bottom:14px}
  .two{display:grid;grid-template-columns:1fr 1fr;column-gap:36px;align-items:start}
  main.wrap>.side.pair>.card,main.wrap:has(>.side.pair)>.card:not(.span){display:flex;flex-direction:column}
  .card>.if-empty{flex:1;display:grid;place-items:center}
  .side.wide>[aria-live]{grid-template-columns:repeat(auto-fit,minmax(336px,1fr))}
  .side.wide>[aria-live] .card .actions .btn{flex:1 1 100%}
  .tabs{max-width:calc(50% - 10px)}
  .strip{flex-wrap:wrap;overflow:visible;margin:0;padding:2px 0 14px}
  .strip a{flex:0 0 calc((100% - 80px)/9);min-width:0}
}
@media print{.top,.foot,.actions,.tabs,.local,.noprint,.hero{display:none!important}body{background:#fff;color:#000}main.wrap{margin-top:0}.card{box-shadow:none;padding:0;animation:none}}
/* Website around each app: section nav, guides, generated pages, community (site.mjs) */
.top .nav a{white-space:nowrap}
.sitenav{background:var(--card);border-bottom:1px solid var(--line)}
.sitenav .wrap{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.sitenav .wrap::-webkit-scrollbar{display:none}
.sitenav a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:var(--mut);font-size:15px;font-weight:600;text-decoration:none;border-bottom:3px solid transparent}
.sitenav a[aria-current]{color:var(--ink);border-bottom-color:var(--accent)}
.site .hero{padding:18px 0 50px}
.site .hero h1{font-size:clamp(25px,6.4vw,32px)}
.crumb{position:relative;z-index:1;margin:0 0 8px;font-size:13px;opacity:.85}
.crumb a{color:inherit}
.hero .crumb+h1+p,.site .hero p{margin-top:10px}
.prose{font-size:17px;line-height:1.6}
.prose h2{margin:26px 0 8px;font-size:21px;line-height:1.25;letter-spacing:-.01em}
.prose h3{margin:20px 0 6px;font-size:18px}
.prose>:first-child{margin-top:0}
.prose p,.prose ul,.prose ol{margin:0 0 12px}
.prose ul,.prose ol{padding-left:22px}
.prose li{margin:4px 0}
.prose a{color:var(--accent-ink);text-underline-offset:2px}
.prose .scroll{margin:6px 0 14px}
.prose code{font-size:.9em;background:var(--field);padding:1px 5px;border-radius:6px}
.note{margin:14px 0;padding:12px 14px;border-radius:12px;background:var(--tint);border-left:4px solid var(--accent);font-size:16px}
.small{font-size:13px}
.links{list-style:none;margin:0;padding:0}
.links li+li{border-top:1px solid var(--line)}
.links a{display:flex;flex-direction:column;gap:2px;padding:12px 0;min-height:44px;color:var(--ink);text-decoration:none}
.links b{color:var(--accent-ink)}
.links span{color:var(--mut);font-size:15px}
.cta{background:var(--tint)}
.cta h2,.ask h2{margin:0 0 6px;font-size:20px}
.cta p,.ask p{margin:0 0 12px;color:var(--mut)}
.community{min-height:160px}
@media (min-width:1000px){
  body.site main.wrap{display:block}
  .site .wrap{max-width:780px}
  .site .hero{padding:34px 0 72px}
  .site .hero h1{font-size:40px;max-width:780px}
}
.msg{margin:6px 0 14px;padding:12px 14px;border-radius:12px;background:var(--field);font:inherit;font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.byline{margin:0 0 14px;color:var(--mut);font-size:14px}
.byline a{color:inherit;font-weight:600}
.fix{margin:22px 0 0;padding-top:14px;border-top:1px solid var(--line);color:var(--mut);font-size:15px}
