@font-face{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;src:url('/fonts/archivo.woff2') format('woff2');font-weight:100 900;font-display:optional}@font-face{font-family:Source,"Source Reemplazo","Source Reemplazo Android",Arial,sans-serif;src:url('/fonts/source-sans-3.woff2') format('woff2');font-weight:400;font-display:optional}
/* Caras de reemplazo medidas (medir-reemplazo-letra.mjs, 21-11-2026): con la letra del sistema el texto ya corta donde cortará Source/Archivo; con «optional» la letra no se cambia después del primer pintado (CLS 0 al cargar). */
@font-face{font-family:"Source Reemplazo";src:local("Arial"),local("ArialMT");font-weight:1 500;size-adjust:92.44%;ascent-override:110.78%;descent-override:43.27%;line-gap-override:0.00%}
@font-face{font-family:"Source Reemplazo";src:local("Arial"),local("ArialMT");font-weight:501 600;size-adjust:92.54%;ascent-override:110.66%;descent-override:43.23%;line-gap-override:0.00%}
@font-face{font-family:"Source Reemplazo";src:local("Arial Bold"),local("Arial-BoldMT");font-weight:601 1000;size-adjust:86.52%;ascent-override:118.36%;descent-override:46.23%;line-gap-override:0.00%}
@font-face{font-family:"Source Reemplazo Android";src:local("Roboto"),local("Roboto-Regular");font-weight:1 500;size-adjust:93.06%;ascent-override:110.03%;descent-override:42.98%;line-gap-override:0.00%}
@font-face{font-family:"Source Reemplazo Android";src:local("Roboto"),local("Roboto-Regular");font-weight:501 600;size-adjust:93.51%;ascent-override:109.51%;descent-override:42.78%;line-gap-override:0.00%}
@font-face{font-family:"Source Reemplazo Android";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:601 1000;size-adjust:93.01%;ascent-override:110.10%;descent-override:43.01%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo";src:local("Arial"),local("ArialMT");font-weight:1 600;size-adjust:102.97%;ascent-override:85.27%;descent-override:20.40%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo";src:local("Arial Bold"),local("Arial-BoldMT");font-weight:601 700;size-adjust:97.57%;ascent-override:89.99%;descent-override:21.52%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo";src:local("Arial Bold"),local("Arial-BoldMT");font-weight:701 775;size-adjust:100.87%;ascent-override:87.04%;descent-override:20.82%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo";src:local("Arial Bold"),local("Arial-BoldMT");font-weight:776 1000;size-adjust:104.98%;ascent-override:83.63%;descent-override:20.00%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo Android";src:local("Roboto"),local("Roboto-Regular");font-weight:1 600;size-adjust:104.70%;ascent-override:83.86%;descent-override:20.06%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo Android";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:601 700;size-adjust:104.96%;ascent-override:83.65%;descent-override:20.01%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo Android";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:701 775;size-adjust:109.73%;ascent-override:80.02%;descent-override:19.14%;line-gap-override:0.00%}
@font-face{font-family:"Archivo Reemplazo Android";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:776 1000;size-adjust:114.56%;ascent-override:76.64%;descent-override:18.33%;line-gap-override:0.00%}
:root{--ink:#172e47;--muted:#46576a;--paper:#f4f6f7;--surface:#fff;--line:#bbc5ce;--yellow:#f1cd36;--yellow-ink:#182d43;--result:#172e47;--result-ink:#fff;--focus:#876409;--error:#a42b25;--radius:8px;--space:20px}html.dark{--ink:#e9f0f6;--muted:#bdc9d5;--paper:#101e2e;--surface:#172b40;--line:#546b80;--result:#e4edf3;--result-ink:#172e47;--focus:#f1cd36;--error:#ffb3ab}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:16px}body{margin:0;background:var(--paper);color:var(--ink);font:1.0625rem/1.45 Source,"Source Reemplazo","Source Reemplazo Android",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}a{color:inherit;text-underline-offset:4px}a:hover{text-decoration-thickness:2px}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.55}button,input,select{border-radius:var(--radius)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:active{transform:translateY(1px)}input{min-width:0;width:100%;color:var(--ink);background:var(--surface);border:1px solid var(--line)}input[aria-invalid=true]{border-color:var(--error)}svg{flex:none}h1,h2,h3,.brand,.result output,.reference strong,.amount-input input,.quote-result output{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif}h1,h2,p{margin:0}h1{font-size:clamp(2rem,3.6vw,2.9rem);line-height:1.04;letter-spacing:-.045em;font-weight:750}h1>span{font-weight:450}h2{font-size:1.5rem;line-height:1.2;letter-spacing:-.02em;font-weight:650}small,.hint{font-size:.9375rem;color:var(--muted)}[hidden]{display:none!important}.skip{position:absolute;top:8px;left:8px;transform:translateY(-160%);padding:10px;background:var(--yellow);color:#172e47;z-index:20}.skip:focus{transform:none}header{border-bottom:1px solid var(--line);background:var(--surface)}.header-inner,main{max-width:1112px;margin:auto}.header-inner{min-height:70px;display:flex;align-items:center;gap:28px;padding:10px 24px}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:1.6rem;font-weight:800;letter-spacing:-.04em}.brand svg{width:36px;height:36px;color:#172e47}.domain{font-weight:450;color:var(--muted)}nav{display:flex;align-items:center;gap:24px;margin-left:auto}nav a{text-decoration:none;font-size:1rem}.preferences{display:flex;gap:4px}.preferences button{display:grid;place-items:center;padding:0;border:0;background:transparent;min-width:44px;min-height:44px;font-size:.9375rem;font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif}.preferences button:enabled:hover{background:var(--paper)}.preferences svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
main{padding:20px 24px 0}.masthead{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px;margin-bottom:22px}.eyebrow{font-size:1rem;color:var(--muted);margin-bottom:6px}.reference{border-left:4px solid var(--yellow);padding-left:18px}.reference>span{font-size:.9375rem;color:var(--muted)}.reference>p{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-size:1.2rem;margin:8px 0 4px;white-space:nowrap}.reference p>span{color:var(--muted);margin:0 8px}.reference strong{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.reference small{display:block}.workspace{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr);gap:24px;align-items:start}.converter{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px 0}.conversion-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-weight:650}.pair{font-size:.875rem;color:var(--muted);font-weight:450}.input-row{display:flex;gap:12px;align-items:end}.amount-group{flex:1;min-width:0}.amount-group>label{display:block;font-size:1rem;margin-bottom:5px}.amount-input{display:flex;gap:12px;border:1.5px solid var(--ink);border-radius:var(--radius);align-items:center;padding:4px 14px;height:62px}.amount-input>span:first-child{font-size:1.75rem;color:var(--muted)}.amount-input>span:last-child{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-size:.875rem;color:var(--muted)}.amount-input input{padding:0;border:none;border-radius:0;font-size:2rem;font-weight:600;letter-spacing:-.025em;line-height:1.2;font-variant-numeric:tabular-nums}.swap{display:grid;place-items:center;padding:0;width:52px;height:62px;border:1px solid var(--line);background:var(--paper);flex:none}.swap:enabled:hover{background:var(--yellow);color:#172e47}.swap svg{display:block;width:24px;height:24px;stroke:currentColor;stroke-width:1.5;fill:none}.hint{margin:8px 0}.date-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.date-row>label{font-size:.9375rem}.date-row input{width:165px;min-height:42px;padding:6px 9px;font-size:1rem;color-scheme:light}.dark .date-row input{color-scheme:dark}.feedback{font-size:.9375rem;min-height:1.5em;color:var(--error);line-height:1.35;margin:5px 0;overflow-wrap:anywhere}.result{background:var(--result);color:var(--result-ink);margin:0 -22px;padding:14px 22px 12px;display:flex;flex-direction:column;min-height:131px}.result>span:first-child{font-size:.9375rem;opacity:.9}.result output{font-size:clamp(2rem,4.5vw,3rem);font-weight:650;letter-spacing:-.045em;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.result>span:nth-of-type(2){font-size:1rem}.result p{margin-top:8px;font-size:.875rem;opacity:.88}.used-date{font-size:.9375rem;color:var(--muted);margin:10px 0 8px;min-height:2.6em}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions button{flex:1;background:var(--surface);border:1px solid var(--line);min-height:44px;padding:8px 12px;font-size:.9375rem}.actions button:enabled:hover{border-color:var(--ink)}.action-feedback{color:var(--muted);margin:5px 0 8px}.market-note{padding:4px 0 0}.note-title{display:flex;flex-direction:column;gap:4px}.line-label{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-weight:600;font-size:1.0625rem}.note-title>span:last-child{font-size:.9375rem;color:var(--muted)}.chart{margin-top:28px}.chart svg{width:100%;height:112px;overflow:visible}.chart polyline{stroke:var(--ink);stroke-width:3;fill:none;vector-effect:non-scaling-stroke}.chart .grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5;fill:none}.chart circle{fill:var(--yellow);stroke:var(--ink);stroke-width:2}.chart-range{display:flex;justify-content:space-between;align-items:center;gap:8px}.chart-range strong{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-size:1rem;font-variant-numeric:tabular-nums}.chart-range>span{font-size:.875rem;color:var(--muted)}.chart-range.low{margin-top:-8px}.chart-dates{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--muted);margin:16px 0 24px}.market-note>p{padding-top:20px;border-top:1px solid var(--line);font-size:1rem;color:var(--muted);margin-bottom:10px}.market-note>a{font-size:.9375rem}
.quick-table{margin:32px 0}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:14px}.section-heading p{color:var(--muted);font-size:1rem;margin-top:5px}.amounts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.amounts button{display:flex;flex-direction:column;align-items:start;gap:6px;min-height:88px;border:0;border-radius:0;background:transparent;padding:14px 12px;border-left:1px solid var(--line);font-size:1rem}.amounts button:first-child{border-left:0}.amounts button:enabled:hover{background:var(--yellow);color:#172e47}.amounts strong{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-size:1rem;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.quote-section{margin-bottom:36px}.quote-section details{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--yellow);border-radius:var(--radius)}summary{cursor:pointer;min-height:52px;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:1.0625rem;gap:12px;list-style:none}summary::-webkit-details-marker{display:none}summary:after{content:'+';font:1.4rem Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif}.quote-section summary>span{display:none}details[open]>summary:after{content:'−'}#quote-form{padding:0 18px 14px}.quote-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quote-fields label{display:flex;flex-direction:column;gap:6px;font-size:.9375rem}.quote-fields input,.quote-fields select{padding:8px 10px;min-height:46px;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:100%;min-width:0}.quote-result{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px;padding:18px;background:var(--paper);border-radius:var(--radius)}.quote-result output{font-size:1.75rem;font-weight:650}.quote-result>span:last-child{font-size:.9375rem;color:var(--muted);width:100%}.faq{display:grid;grid-template-columns:.75fr 1.4fr;gap:32px;margin-bottom:44px}.faq details{border-bottom:1px solid var(--line)}.faq details:first-child{border-top:1px solid var(--line)}.faq summary{padding:16px 0}.faq details p{padding:0 0 16px;color:var(--muted)}.article{max-width:760px;margin:4px 0 44px}.article h1{font-size:2.5rem;margin-bottom:16px}.article h2{margin:28px 0 12px}.article p{margin:12px 0}.article .lead{font-size:1.25rem}.article a{overflow-wrap:anywhere}#print-report{display:none}.noscript{padding:20px;text-align:center}
@media(max-width:850px){.amounts{grid-template-columns:repeat(3,minmax(0,1fr))}.amounts button:nth-child(4){border-left:0}.amounts button:nth-child(n+4){border-top:1px solid var(--line)}.section-heading{align-items:start;flex-direction:column;gap:4px}}
@media(max-width:640px){:root{--space:14px}.header-inner{padding:8px 16px;min-height:60px;gap:10px}.brand{font-size:1.4rem;gap:7px}.brand svg{width:29px;height:29px}.preferences{margin-left:auto;gap:0}.preferences button{min-width:40px;min-height:44px}nav{display:none}main{padding:16px 16px 0}.masthead{grid-template-columns:1fr;gap:16px;margin-bottom:16px}h1{font-size:2rem}h1 br{display:none}h1>span{display:block}.eyebrow{font-size:.9375rem}.reference{padding-left:12px;border-left-width:3px}.reference>p{margin:4px 0}.reference>span{font-size:.875rem}.reference strong{font-size:1.85rem}.reference small{font-size:.875rem}.workspace{grid-template-columns:1fr;gap:26px}.converter{padding:16px 16px 0}.conversion-head{margin-bottom:12px}.amount-input{height:58px;padding:4px 10px;gap:9px}.amount-input input{font-size:1.8rem}.swap{width:44px;height:58px}.input-row{gap:8px}.hint{font-size:.875rem}.date-row{gap:6px}.date-row input{width:146px;font-size:.9375rem}.date-row>label{font-size:.9375rem}.result{margin:0 -16px;padding:12px 16px;min-height:128px}.result output{font-size:2.5rem}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.actions button{min-width:0;padding:8px 12px;font-size:.9375rem}.used-date{font-size:.875rem;min-height:2.6em}.market-note{padding:0}.note-title{flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px}.note-title>span:last-child{font-size:.875rem}.line-label{font-size:1rem}.chart{margin-top:18px}.chart svg{height:96px}.chart-dates{margin-bottom:14px}.market-note>p{padding-top:14px;font-size:.9375rem}.quick-table{margin:28px 0}.amounts button{padding:12px 8px;min-height:82px}.amounts strong{font-size:.9375rem}.quote-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quote-fields label:nth-child(3){grid-column:1/-1}.quote-result{padding:12px;gap:12px}.quote-section summary{padding:12px;font-size:1rem}#quote-form{padding:0 12px 12px}.faq{grid-template-columns:1fr;gap:14px;margin-bottom:28px}.faq summary{font-size:1rem}.quote-section{margin-bottom:28px}.article h1{font-size:2rem}.article .lead{font-size:1.125rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media print{@page{size:A4;margin:18mm}html,html.dark,body,html.dark body{background:white!important;color:#172e47!important;font-size:12pt!important}body>*:not(#print-report){display:none!important}#print-report{display:block!important;font-family:Arial,sans-serif}#print-report h1{font-size:22pt;margin-bottom:18pt}#print-report p{margin:10pt 0}#print-report .print-value{font-size:32pt;font-weight:bold;padding:18pt 0;border-top:1px solid #172e47;border-bottom:1px solid #172e47}#print-report small{display:block;margin-top:24pt;color:#172e47}}

/* Keep the conversion and its actions together in the first viewport. */
/* Action buttons keep a distinct resting surface and room for their focus ring. */
:root{--button-bg:#fff;--button-hover:#edf2f6;--button-border:#8a99a8}
html.dark{--button-bg:#223c55;--button-hover:#2c4a67;--button-border:#7990a6}
:is(.actions button,.plain-button,.period-buttons button){background:var(--button-bg);border-color:var(--button-border);box-shadow:0 1px 2px #00000014}
:is(.actions button,.plain-button,.period-buttons button):enabled:hover{background:var(--button-hover);border-color:var(--ink)}
:is(.actions button,.plain-button,.period-buttons button):enabled:active{background:var(--button-hover);box-shadow:none}
button:disabled:active{transform:none}
.header-inner,main{max-width:1116px}.header-inner{min-height:60px;padding-top:8px;padding-bottom:8px}
main{padding-top:16px}.masthead{gap:24px;margin-bottom:14px}h1{font-size:clamp(1.9rem,2.7vw,2.3rem);line-height:1.12}
.reference{line-height:1.25}.reference>span,.reference small{display:block;font-size:.875rem;line-height:1.3}.reference>p{line-height:1.15;margin:4px 0}.reference strong{font-size:2rem;line-height:1}
.workspace{gap:20px}.converter{padding:12px 18px 12px}.conversion-head{display:none}.amount-input,.swap{height:56px}
.amount-status{display:grid;font-size:.9375rem;min-height:1.45em;margin:6px 0}.amount-status>p{grid-area:1/1;margin:0;min-height:0;font-size:inherit}.amount-status:has(#amount-error:not(:empty)) #amount-hint{visibility:hidden}.amount-status .feedback{align-self:start}
.result{margin:0 -18px;padding:10px 18px;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0}.result>span:first-child,.result p{grid-column:1/-1}.result output{font-size:2.7rem;min-width:0}.result>span:nth-of-type(2){align-self:end;padding-bottom:6px}.result p{margin-top:4px}.result output.long-result{font-size:1.9rem}
.conversion-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;margin:10px 0}.date-row{margin:0;gap:6px}.date-row>label{font-size:.875rem}.date-row input{width:138px;min-height:44px;padding:6px;font-size:.9375rem}.used-date{font-size:.875rem;line-height:1.3;min-height:0;margin:0}
.actions button{min-height:44px}.converter .action-feedback{min-height:0;margin:6px 0 0}.converter .action-feedback:empty{margin:0}
.chart{margin-top:18px}.chart svg{height:104px}.chart-dates{margin:12px 0 16px}.market-note>p{padding-top:14px}.quick-table{margin:24px 0}
@media(min-width:641px) and (max-width:980px){.conversion-meta{grid-template-columns:1fr;gap:6px}.date-row{justify-content:space-between}.date-row input{width:146px}}
@media(min-width:900px) and (max-height:650px){.header-inner{padding-top:4px;padding-bottom:4px;min-height:52px}main{padding-top:12px}.masthead{margin-bottom:10px}.eyebrow{margin-bottom:4px}.reference strong{font-size:1.85rem}.converter{padding-top:10px;padding-bottom:12px}.amount-input,.swap{height:52px}.result output{font-size:2.4rem}.result{padding-top:8px;padding-bottom:8px}.conversion-meta{margin:8px 0}.chart svg{height:90px}.chart{margin-top:14px}.chart-dates{margin:8px 0 12px}.market-note>p{padding-top:10px}}
@media(min-width:900px) and (max-height:500px){main{padding-top:10px}.masthead{margin-bottom:6px}.converter{padding-top:6px;padding-bottom:12px}.result{padding-top:6px;padding-bottom:6px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.result>span:first-child{grid-column:1;grid-row:1}.result output{grid-column:2;grid-row:1}.result>span:nth-of-type(2){grid-column:3;grid-row:1;align-self:center;padding:0}.result p{grid-column:1/-1;margin-top:0}.result output.long-result{grid-column:1/-1;grid-row:2}.result:has(.long-result) p{grid-row:3}.note-title{flex-direction:row;align-items:baseline;justify-content:space-between;gap:8px}.line-label{font-size:1rem}.note-title>span:last-child{font-size:.875rem}.chart{margin-top:10px}.chart svg{height:80px}.chart-dates{margin-bottom:8px}.market-note>p{padding-top:8px}}
@media(max-width:850px){.header-inner nav{display:none}.workspace{grid-template-columns:1fr}.preferences{margin-left:auto}}
@media(max-width:640px){.header-inner{padding:6px 16px;min-height:56px}main{padding-top:12px}.masthead{grid-template-columns:1fr;gap:10px;margin-bottom:12px}h1{font-size:1.85rem}.reference strong{font-size:1.8rem}.converter{padding:12px 14px 12px}.amount-input,.swap{height:56px}.amount-status{font-size:.875rem;min-height:2.6em}.result{grid-template-columns:minmax(0,1fr);margin:0 -14px;padding:10px 14px}.result output{font-size:2.4rem}.result>span:nth-of-type(2){font-size:.9375rem;padding:0}.conversion-meta{grid-template-columns:1fr;gap:6px;margin:8px 0}.date-row input{width:146px}.date-row>label{font-size:.9375rem}.used-date{font-size:.875rem}.market-note{padding:0}.workspace{gap:22px}.quick-table{margin:24px 0}}

/* The amount and swap share a height that fits the enlarged input line. */
.input-row{--amount-control-height:max(56px,calc(2.4rem + 12px))}
.amount-input,.swap{height:var(--amount-control-height)}
.amount-input input{height:1.2em;background:transparent}
.amount-input:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.amount-input input:focus-visible{outline:none}
@media(min-width:900px) and (max-height:650px){.input-row{--amount-control-height:max(52px,calc(2.4rem + 12px))}}
@media(max-width:640px){.input-row{--amount-control-height:max(56px,calc(2.16rem + 12px))}}

/* Shared footer: navigation, source freshness and privacy each have their place. */
/* Compact identity bar and a native disclosure menu: the page stays in place. */
.site-header{--header-ink:#f4f7fa;--header-muted:#c2ced9;--focus:#f4d43b;position:relative;z-index:20;background:#172e47;color:var(--header-ink);border-bottom:2px solid #f4d43b}
.skip{z-index:60}
html.dark .site-header{background:#142a40}
.site-header .header-inner{min-height:66px;padding:6px 24px;gap:24px}
.site-header .header-brand{gap:10px;min-height:44px;font-size:1.55rem;color:var(--header-ink)}
.header-wordmark{display:flex;flex-direction:column;gap:2px;line-height:1.05}
.site-header .brand svg{display:block;width:36px;height:36px;color:#f4d43b}
.site-header .brand svg path{stroke:#172e47}
.site-header .domain{color:var(--header-muted)}
.header-caption{font-family:Source,"Source Reemplazo","Source Reemplazo Android",Arial,sans-serif;font-size:.8125rem;font-weight:400;letter-spacing:0;color:var(--header-muted)}
.site-header .header-nav{display:flex;margin-left:auto;gap:8px}
.site-header .header-nav a{display:flex;align-items:center;min-height:44px;font-size:.9375rem;padding:6px 10px;border-bottom:2px solid transparent}
.header-nav a:hover{background:#29435b}
.site-header .header-nav a[aria-current=page]{color:#f4d43b;border-bottom-color:#f4d43b}
.header-controls{display:flex;align-items:center;gap:10px}
.header-theme{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:0;border:1px solid #4b6278;background:transparent;border-radius:6px}
.header-theme svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
.header-theme:hover{background:#29435b;border-color:var(--header-muted)}
.site-menu{position:static}
.menu-toggle{display:flex;align-items:center;justify-content:center;min-height:44px;gap:9px;padding:8px 12px;list-style:none;border:1px solid #f4d43b;border-radius:6px;background:#f4d43b;color:#172e47;font-size:.9375rem;font-weight:600;line-height:1.2}
.menu-toggle::after{content:none!important}
.menu-toggle:hover{background:#ffe478;border-color:#ffe478}
.menu-toggle svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.menu-toggle path{transform-origin:12px 12px;transition:transform .14s ease}
.site-menu[open] .menu-line-top{transform:rotate(45deg) translateY(4px)}
.site-menu[open] .menu-line-bottom{transform:rotate(-45deg) translateY(-4px)}
.menu-panel{--focus:var(--ink);position:absolute;top:100%;left:50%;transform:translateX(-50%);width:min(1152px,calc(100% - 48px));max-height:calc(100dvh - 86px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;background:var(--surface);color:var(--ink);box-shadow:0 8px 0 #172e4720;padding:16px 24px 14px}
.site-header .menu-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:0;align-items:start}
.menu-group{min-width:0}
.menu-group h2{font-size:1rem;line-height:1.35;margin:0 0 8px}
.menu-group ul{list-style:none;margin:0;padding:0}
.menu-group a{display:flex;align-items:center;min-height:44px;padding:8px 10px;font-size:.9375rem;line-height:1.35;text-decoration:none;overflow-wrap:anywhere;border-left:3px solid transparent}
.menu-group a:hover{background:var(--paper);text-decoration:underline}
.menu-group a[aria-current=page]{background:var(--paper);border-left-color:var(--yellow);font-weight:600}
.menu-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.menu-extra{display:flex;flex-wrap:wrap;gap:4px 20px}
.menu-extra a{display:flex;align-items:center;min-height:44px;font-size:.875rem;text-decoration:underline;overflow-wrap:anywhere}
.menu-reading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.875rem;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}
.menu-reading>span{min-width:0}
.menu-reading .preferences{align-items:center;margin:0;gap:4px;flex:none}
.menu-reading .preferences button{min-width:44px;min-height:44px;border:1px solid var(--button-border);border-radius:6px;background:var(--button-bg);color:var(--ink)}
.menu-reading .preferences button:enabled:hover{background:var(--button-hover)}
.menu-reading output{min-width:5ch;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
@media(min-width:900px) and (max-height:650px){.site-header .header-inner{min-height:52px;padding-top:4px;padding-bottom:4px}.menu-panel{max-height:calc(100dvh - 76px)}}
@media(max-width:850px){.site-header .header-inner{gap:12px}.site-header .header-nav{display:none}.header-controls{margin-left:auto}.site-header .menu-navigation{gap:18px}.menu-panel{width:calc(100% - 32px);padding:18px;max-height:calc(100dvh - 84px)}}
@media(max-width:640px){.site-header .header-inner{min-height:58px;padding:6px 16px;gap:8px}.site-header .header-brand{font-size:1.4rem;gap:8px}.site-header .brand svg{width:30px;height:30px}.header-caption{display:none}.header-controls{gap:8px}.menu-toggle{padding:8px 10px}.menu-toggle span{display:none}.menu-toggle{width:44px;min-width:44px}.site-header .menu-navigation{grid-template-columns:minmax(0,1fr);gap:18px}.menu-panel{width:calc(100% - 24px);max-height:calc(100dvh - 78px);padding:16px 14px 12px}.menu-group h2{font-size:1rem}.menu-bottom{gap:12px}.menu-extra{flex-direction:column;gap:0}.menu-reading{width:100%;justify-content:space-between}.menu-reading .preferences{gap:6px}}
.site-footer{--footer-ink:#f4f7fa;--footer-muted:#c2ced9;--footer-line:#4b6278;--focus:#f4d43b;max-width:none;margin:0;background:#172e47;color:var(--footer-ink);border-top:3px solid #f4d43b;padding:0}
html.dark .site-footer{background:#142a40;border-top-color:#f4d43b}
.footer-inner{max-width:1116px;margin:auto;padding:28px 24px 18px}
.footer-main{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.6fr);gap:64px;align-items:start}
.footer-identity{min-width:0}
.site-footer .brand{font-size:1.65rem;gap:10px;color:var(--footer-ink)}
.site-footer .brand svg{display:block;width:36px;height:36px;color:#f4d43b}
.site-footer .brand svg path{stroke:#172e47}
.site-footer .domain{color:var(--footer-muted)}
.site-footer p{margin:0;font-size:.9375rem;line-height:1.5}
.site-footer .footer-tagline{font-family:Archivo,"Archivo Reemplazo","Archivo Reemplazo Android",Arial,sans-serif;font-size:1.125rem;font-weight:600;margin-top:12px}
.site-footer .footer-description{max-width:34ch;color:var(--footer-muted);margin-top:6px}
.site-footer .footer-owner{color:var(--footer-muted);margin-top:12px;font-size:.875rem}
.site-footer .footer-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin:0;align-items:start}
.footer-column{min-width:0}
.footer-column h2{font-size:1rem;line-height:1.4;font-weight:600;color:#f4d43b;letter-spacing:0;margin:0 0 6px}
.footer-column ul{list-style:none;margin:0;padding:0}
.site-footer .footer-column a{display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:.9375rem;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.site-footer a:hover{text-decoration:underline;color:#f4d43b}
.site-footer .brand:hover{text-decoration:none}
.footer-reference{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;border-top:1px solid var(--footer-line);margin-top:22px;padding-top:18px}
.site-footer .footer-reference-label{font-weight:600;font-size:.9375rem}
.site-footer .data-status{font-size:.875rem;color:var(--footer-muted);margin-top:4px;overflow-wrap:anywhere}
.data-status a{display:inline-block}
.footer-actions{min-width:0}
.footer-actions:empty{display:none}
.site-footer .footer-actions button{min-height:44px;max-width:100%;border:1px solid var(--footer-line);border-radius:6px;background:transparent;box-shadow:none;color:var(--footer-ink);padding:10px 14px;font-size:.875rem;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.site-footer .footer-actions button:enabled:hover{background:#29445f;border-color:var(--footer-muted)}
.site-footer .footer-install{display:inline-flex;align-items:center;gap:10px;min-height:44px;max-width:100%;margin-top:14px;padding:9px 14px;border:1px solid #f4d43b;background:#f4d43b;color:#172e47;font-size:.9375rem;font-weight:600;box-shadow:none}
.footer-install svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.site-footer .footer-install:enabled:hover{background:#ffe478;border-color:#ffe478}
.site-footer .footer-disclaimer{font-size:.8125rem;color:var(--footer-muted);margin-top:12px}
@media(max-width:850px){.footer-main{grid-template-columns:minmax(0,1fr);gap:24px}.footer-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px}.footer-identity>*:not(.footer-install){grid-column:1}.footer-identity .footer-install{grid-column:2;grid-row:1/5;align-self:center;margin:0}.site-footer .footer-description{max-width:48ch}.footer-reference{grid-template-columns:minmax(0,1fr);gap:12px}.footer-actions{justify-self:start}}
@media(max-width:640px){.footer-inner{padding:24px 16px 18px}.footer-main{gap:22px}.footer-identity{display:block}.footer-identity .footer-install{margin-top:14px}.site-footer .footer-navigation{gap:16px}.site-footer .brand{font-size:1.55rem}.footer-column h2{font-size:.9375rem}.site-footer .footer-column a{font-size:.875rem}.footer-reference{margin-top:18px;padding-top:16px}.site-footer .footer-actions button{font-size:.875rem}}
.amount-pages{margin:12px 0 0;color:var(--muted);font-size:1rem;line-height:1.7}.amount-pages a{white-space:nowrap}
.site-footer .footer-responsible{font-size:.8125rem;color:var(--footer-muted);margin-top:8px}.site-footer .footer-responsible a{display:inline-block;min-height:24px;padding:2px 0;color:inherit}
/* «Instalar app» (acuerdo 23, 27-11-2026): un enlace más de la línea del responsable, misma letra, sin borde ni fondo
   (antes un botón amarillo bajo la marca). Aparece solo si el navegador ofrece instalar, o en el iPhone. */
.pie-instalar[hidden],.pie-instalar-ayuda[hidden]{display:none!important}
.site-footer .footer-responsible .pie-instalar-btn{display:inline-block;min-height:24px;margin:0;padding:2px 0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;line-height:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.site-footer .pie-instalar-ayuda{font-size:.8125rem;color:var(--footer-muted);margin-top:4px}
