@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Instrument+Sans:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&family=Instrument+Serif:ital@0;1&display=swap');
:root{color-scheme:light;--bg:#f7f4ee;--paper:#fcfaf5;--paper-alt:#ecdec8;--ink:#412f2b;--muted:#74645c;--terracotta:#88463e;--rust:#a95e50;--accent:#e3a055;--sage:#9aa88f;--sage-light:#dae2d4;--peach:#f0b068;--stone:#d8d2c9;--slate:#526c73;--line:#d8cabc;--shadow:0 14px 32px rgba(65,47,43,.07);--radius:12px;--font-head:'Bricolage Grotesque','Arial Black',sans-serif;--font-body:'Instrument Sans',Arial,sans-serif;--font-serif:'Instrument Serif',Georgia,serif}
html[data-theme="dark"]{color-scheme:dark;--bg:#251f1d;--paper:#312825;--paper-alt:#463530;--ink:#f5ebe1;--muted:#c8b5a8;--terracotta:#d89989;--rust:#e3aa9b;--accent:#e9ad67;--sage:#a9bd9e;--sage-light:#3a4537;--peach:#eebb7c;--stone:#50423b;--slate:#a8c1ca;--line:#58483e;--shadow:0 14px 32px rgba(0,0,0,.14)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.55 var(--font-body);min-width:320px}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}svg.icon{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}img{max-width:100%}::selection{background:var(--accent);color:#412f2b}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.skip-link{position:fixed;top:-100px;left:1rem;z-index:100;background:var(--ink);color:var(--bg);padding:10px 16px}.skip-link:focus{top:8px}.container{width:min(1240px,calc(100% - 64px));margin:0 auto}.eyebrow{font-family:var(--font-body);font-size:.73rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.serif{font-family:var(--font-serif);font-weight:400;font-style:italic}.muted{color:var(--muted)}.section{margin:0 auto;padding:88px 0}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.section-head h2{font:700 clamp(2rem,4vw,3.6rem)/1.05 var(--font-head);letter-spacing:-.055em;margin:9px 0 0}.section-head p{max-width:360px;color:var(--muted);font-size:.97rem;margin:0}.inline-link{display:inline-flex;gap:.6rem;align-items:center;font-weight:700;border-bottom:1px solid currentColor;padding:3px 0}.inline-link:hover{color:var(--rust)}.inline-link .icon{font-size:1rem}.site-header{position:relative;z-index:20;background:var(--bg)}.header-inner{height:83px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font:800 1.56rem/.95 var(--font-head);letter-spacing:-.073em;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#88463e;color:#f7f4ee;font:800 1.45rem var(--font-head);transform:rotate(-4deg)}.brand-dot{color:var(--rust)}.nav-links{display:flex;align-items:center;gap:27px;margin-left:auto}.nav-links a{font-size:.87rem;font-weight:650;transition:color .2s}.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--rust)}.header-controls{display:flex;gap:9px;align-items:center}.icon-button{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:50%;transition:transform .2s,background .2s}.icon-button:hover{transform:translateY(-2px);background:var(--paper-alt)}.menu-toggle{display:none}.mobile-panel{display:none}.top-strip{background:var(--ink);color:var(--bg);padding:8px 0}.top-strip .container{display:flex;justify-content:space-between;gap:12px;font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.hero-shell{padding-top:20px}.hero{background:#88463e;color:#f7f4ee;min-height:510px;border-radius:8px;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr)}.hero::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:68px 68px;mask-image:linear-gradient(90deg,transparent 18%,#000)}.hero-copy{position:relative;z-index:1;padding:49px 40px 52px 57px;display:flex;flex-direction:column;justify-content:space-between}.hero-meta{display:flex;align-items:center;gap:10px;color:#f6dfcb}.hero-meta::before{content:"";display:inline-block;height:7px;width:7px;border-radius:50%;background:#efae68}.hero h1{font:800 clamp(3.5rem,6.7vw,7.8rem)/.91 var(--font-head);letter-spacing:-.085em;margin:43px 0 20px}.hero h1 .serif{font-size:1.13em;letter-spacing:-.07em}.hero-desc{font-size:1.05rem;color:#f3ddcf;max-width:440px;line-height:1.6}.hero-actions{display:flex;align-items:center;gap:25px;flex-wrap:wrap;margin-top:30px}.primary-btn{display:inline-flex;gap:20px;align-items:center;justify-content:space-between;background:#e3a055;color:#412f2b;border:0;padding:15px 18px 15px 20px;font-weight:800;min-height:49px;transition:transform .18s,background .18s}.primary-btn:hover{transform:translateY(-3px);background:#f0b068}.hero-art{min-height:500px;position:relative;display:grid;place-items:center}.hero-art svg{width:min(100%,470px);height:auto;position:relative;z-index:1}.hero-side-label{position:absolute;right:14px;bottom:35px;writing-mode:vertical-rl;transform:rotate(180deg);font-size:.63rem;letter-spacing:.17em;color:#f3d1bb}.finder-wrap{margin-top:-26px;position:relative;z-index:5;padding:0 44px}.finder{border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;gap:16px;padding:14px 16px 14px 24px;min-height:78px;box-shadow:var(--shadow)}.finder svg{font-size:1.4rem;color:var(--rust)}.finder input{background:transparent;border:0;outline:0;flex:1;min-width:0;color:var(--ink);font-size:1.05rem}.finder input::placeholder{color:var(--muted)}.finder-hint{border:1px solid var(--line);padding:4px 8px;font-size:.7rem;border-radius:3px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.category-tile{min-height:220px;position:relative;padding:23px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;border:1px solid transparent;transition:transform .18s,box-shadow .18s}.category-tile:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.category-tile .icon{font-size:1.8rem}.category-tile .big-num{font:700 5rem/1 var(--font-head);letter-spacing:-.09em;opacity:.13;position:absolute;right:10px;top:7px}.category-tile h3{font:700 1.45rem/1.06 var(--font-head);letter-spacing:-.045em;margin:0 0 4px}.category-tile p{margin:0;font-size:.79rem;opacity:.78}.tone-sand{background:#ecdec8;color:#412f2b}.tone-ochre{background:#e3a055;color:#412f2b}.tone-sage{background:#d9e0d2;color:#412f2b}.tone-peach{background:#e9cfc5;color:#412f2b}.editorial-band{background:var(--paper-alt);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0}.editorial-band-inner{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}.editorial-band strong{font:600 1.35rem/1.2 var(--font-serif);font-style:italic}.editorial-band span{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.tool-controls{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 24px}.filter-btn{border:1px solid var(--line);background:transparent;color:var(--ink);padding:9px 16px;font-weight:650;font-size:.83rem}.filter-btn:hover,.filter-btn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tool-card{border:1px solid var(--line);background:var(--paper);min-height:242px;padding:21px;display:flex;flex-direction:column;position:relative;overflow:hidden;transition:transform .2s,border .2s,box-shadow .2s}.tool-card:hover{transform:translateY(-4px);border-color:var(--rust);box-shadow:var(--shadow)}.tool-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:22px}.tiny-id{font-size:.67rem;font-weight:800;letter-spacing:.13em;color:var(--muted)}.tool-card-arrow{font-size:1rem}.tool-card h3{font:700 1.34rem/1.15 var(--font-head);letter-spacing:-.045em;margin:0 0 10px}.tool-card p{font-size:.84rem;line-height:1.55;color:var(--muted);margin:0 0 20px}.tool-card-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:auto}.status{font-size:.65rem;text-transform:uppercase;letter-spacing:.07em;font-weight:750;color:var(--rust);border-top:1px solid var(--line);padding-top:8px}.tool-card .status{border-top:0;padding:0}.tool-card .icon{font-size:1.4rem;color:var(--rust)}.empty-state{padding:30px;background:var(--paper-alt);border:1px solid var(--line)}.empty-state[hidden],.tool-card[hidden],.category-tile[hidden]{display:none!important}.quote-feature{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:38px 0;display:flex;justify-content:space-between;gap:28px;align-items:center}.quote-feature strong{font:400 clamp(1.7rem,3vw,3rem)/1.1 var(--font-serif);font-style:italic;letter-spacing:-.02em}.quote-feature p{color:var(--muted);max-width:340px}.site-footer{background:#412f2b;color:#f7f4ee;margin-top:70px;padding:58px 0 22px}.footer-top{display:grid;grid-template-columns:1.25fr .75fr .75fr;gap:36px}.footer-brand{font:800 clamp(2.5rem,5vw,4.6rem)/1 var(--font-head);letter-spacing:-.08em;margin:0 0 15px}.footer-brand span{color:#e3a055}.footer-text{color:#d8c3b8;max-width:300px;font-size:.9rem}.footer-col h3{font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:#e3a055;margin:4px 0 16px}.footer-col a{display:block;margin:0 0 11px;font-size:.89rem;color:#f3dfd2}.footer-col a:hover{text-decoration:underline}.footer-bottom{margin-top:46px;border-top:1px solid #6f5750;padding-top:19px;display:flex;justify-content:space-between;gap:16px;color:#dcc5b7;font-size:.77rem}.page-intro{padding:78px 0 60px;position:relative}.page-intro .eyebrow{color:var(--rust)}.page-intro h1{font:800 clamp(3.2rem,7.5vw,6.4rem)/.98 var(--font-head);letter-spacing:-.075em;margin:15px 0 18px;max-width:990px}.page-intro h1 .serif{color:var(--rust)}.page-intro p{font-size:1.08rem;max-width:680px;color:var(--muted)}.breadcrumbs{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:.8rem;padding-top:26px}.breadcrumbs a:hover{color:var(--rust)}.breadcrumbs .icon{font-size:.85rem}.tool-stage{display:grid;grid-template-columns:1.25fr .75fr;gap:20px;margin-bottom:68px}.tool-stage-panel{min-height:360px;border:1px solid var(--line);background:var(--paper);padding:36px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.tool-stage-panel::after{content:"";width:220px;height:220px;border:1px solid var(--line);border-radius:50%;position:absolute;right:-64px;bottom:-100px;box-shadow:0 0 0 29px var(--bg),0 0 0 30px var(--line),0 0 0 58px var(--paper),0 0 0 59px var(--line);opacity:.7;pointer-events:none}.stage-label{display:flex;align-items:center;gap:9px;color:var(--rust)}.stage-label::before{content:"";width:9px;height:9px;background:var(--accent);border-radius:50%}.tool-stage-panel h2{font:700 clamp(2rem,4vw,3.1rem)/1.08 var(--font-head);letter-spacing:-.06em;max-width:510px;margin:0 0 13px}.tool-stage-panel p{max-width:530px;color:var(--muted)}.tool-stage-panel .notice{padding:13px 16px;border-left:3px solid var(--accent);background:var(--bg);position:relative;z-index:2;font-size:.86rem}.stage-aside{background:var(--paper-alt);padding:33px;display:flex;flex-direction:column;justify-content:space-between;gap:20px}.stage-aside .eyebrow{color:var(--rust)}.stage-aside h3{font:700 2.1rem/1.08 var(--font-head);letter-spacing:-.05em;margin:12px 0}.stage-aside p{font-size:.94rem}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:30px;padding-bottom:30px}.info-panel{border-top:1px solid var(--line);padding:24px 0}.info-panel h2{font:700 1.6rem/1.15 var(--font-head);letter-spacing:-.035em}.info-panel p,.info-panel li{color:var(--muted);line-height:1.8}.info-panel ul{padding-left:18px}.prose{max-width:800px;padding:34px 0 90px}.prose h2{font:700 1.75rem/1.2 var(--font-head)}.prose p,.prose li{line-height:1.8;color:var(--muted)}.prose a{text-decoration:underline;text-underline-offset:3px}.prose .notice{background:var(--paper-alt);border-left:3px solid var(--rust);padding:16px}.related{padding:20px 0 40px}.related .tool-grid{grid-template-columns:repeat(3,1fr)}.category-banner{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;display:flex;align-items:center;gap:12px}.category-banner .icon{font-size:1.5rem}.mini-rule{display:flex;align-items:center;gap:10px}.mini-rule::after{content:"";height:1px;background:currentColor;flex:1;opacity:.3}.mobile-only{display:none}
@media(max-width:1050px){.nav-links{gap:14px}.hero{grid-template-columns:1fr 330px}.hero-copy{padding-left:38px}.hero h1{font-size:clamp(3.8rem,7vw,5.6rem)}.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{min-height:420px}}
@media(max-width:720px){.container{width:min(100% - 32px,600px)}.top-strip{display:none}.header-inner{height:67px}.brand{font-size:1.4rem}.brand-mark{width:34px;height:34px}.nav-links{display:none}.menu-toggle{display:grid}.mobile-panel{display:none;position:absolute;top:67px;left:0;right:0;background:var(--paper);padding:20px;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}.mobile-panel[data-open="true"]{display:grid;gap:12px}.mobile-panel a{padding:9px 0;border-bottom:1px solid var(--line)}.hero-shell{padding-top:10px}.hero{display:flex;flex-direction:column;min-height:0}.hero-copy{padding:30px 25px 12px}.hero h1{margin:35px 0 14px;font-size:clamp(3.5rem,13vw,5.7rem)}.hero-desc{font-size:.94rem}.hero-art{min-height:175px;height:200px;overflow:hidden}.hero-art svg{width:240px;margin-top:-23px}.hero-side-label{display:none}.hero-actions{margin-top:25px}.finder-wrap{padding:0 12px;margin-top:-17px}.finder{min-height:65px;padding:12px 16px}.finder input{font-size:.88rem}.finder-hint{display:none}.section{padding:56px 0}.section-head{align-items:start;flex-direction:column;gap:12px}.section-head h2{font-size:2.6rem}.category-grid{gap:9px}.category-tile{min-height:175px;padding:16px}.category-tile h3{font-size:1.24rem}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tool-card{padding:16px;min-height:235px}.tool-card h3{font-size:1.13rem}.tool-card p{font-size:.79rem}.tool-card-head{margin-bottom:16px}.filter-btn{font-size:.76rem;padding:8px 12px}.quote-feature{display:block}.footer-top{grid-template-columns:1fr 1fr;gap:28px}.footer-top>div:first-child{grid-column:1/-1}.footer-bottom{flex-direction:column}.page-intro{padding:50px 0 30px}.page-intro h1{font-size:clamp(2.7rem,12vw,4.6rem)}.tool-stage{grid-template-columns:1fr;gap:12px}.tool-stage-panel{min-height:320px;padding:24px}.stage-aside{padding:26px}.info-grid{grid-template-columns:1fr;gap:0}.related .tool-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:430px){.tool-grid{grid-template-columns:1fr}.tool-card{min-height:175px}.category-tile{min-height:159px}.category-tile .big-num{font-size:3.7rem}.category-tile h3{font-size:1.05rem}.header-controls{gap:5px}.header-inner{gap:8px}.hero-art{height:155px;min-height:155px}.hero-art svg{width:200px}.related .tool-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ------------------------------------------------------
   V0.2 · Refinamiento editorial — Arlo AlDetalle
   Más aire tipográfico, pictogramas propios y tarjeta crema.
   ------------------------------------------------------ */
:root {
  --category-01: #d4e2e4; /* azul grisáceo */
  --category-02: #ede0c1; /* ocre aclarado */
  --category-03: #d9e0d2; /* salvia */
  --category-04: #e9cfc5; /* rosa arcilla */
  --tools-area: #88463e;
  --tools-card: #f1e5d5;
  --tools-card-hover: #faefe0;
  --tools-ink: #332826;
  --tools-muted: #65554f;
  --tools-icon: #251f1d;
  --tools-stroke: #cdbbaa;
}
html[data-theme="dark"] {
  --category-01: #bed1d5;
  --category-02: #e4d2ab;
  --category-03: #c9d6bf;
  --category-04: #e3c6bc;
  --tools-area: #79413a;
  --tools-card: #eadcc9;
  --tools-card-hover: #f7ebda;
  --tools-ink: #302623;
  --tools-muted: #65524b;
  --tools-icon: #251f1d;
  --tools-stroke: #d3bdad;
}
/* Respetar la forma de la tipografía: sin letras montadas entre sí. */
h1,h2,h3,.brand,.footer-brand {font-kerning:normal; text-rendering:optimizeLegibility;}
.hero h1 {letter-spacing:0.003em; line-height:1.06; font-weight:700; word-spacing:.045em;}
.hero h1 .serif {letter-spacing:0.004em;}
.section-head h2 {letter-spacing:0.002em; line-height:1.13; word-spacing:.04em;}
.page-intro h1 {letter-spacing:0.002em; line-height:1.1; word-spacing:.04em;}
.tool-card h3 {letter-spacing:0.005em; line-height:1.27; word-spacing:.03em;}
.category-tile h3 {letter-spacing:0.005em; line-height:1.15;}
.tool-stage-panel h2,.stage-aside h3 {letter-spacing:0;line-height:1.18;}
.footer-brand {letter-spacing:-0.008em;}
.brand {letter-spacing:0; gap:13px; line-height:1;}
.brand-mark {width:42px;height:54px;transform:none;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.brand-mark img {width:41px;height:53px;object-fit:contain;}
html[data-theme="dark"] .brand-mark img {filter:brightness(0) invert(.91);}
.brand-lockup {display:flex;flex-direction:column;justify-content:center;gap:5px;}
.brand-name {font:750 clamp(1.35rem,2.2vw,1.64rem)/1 var(--font-head);letter-spacing:0.002em;}
.brand-credit {font:700 .55rem/1.2 var(--font-body);letter-spacing:.09em;color:var(--muted);}
.brand-credit em {font:italic 1rem/1 var(--font-serif);letter-spacing:0;color:var(--rust);}
.header-inner {height:88px;}
.header-controls {margin-left:5px;}
.footer-brand {display:flex;align-items:center;gap:11px;}
.footer-mark {width:50px;height:60px;object-fit:contain;flex:none;}
.footer-by {display:block;color:#e4c5b1;margin:-2px 0 13px;font-size:.78rem;letter-spacing:.035em;}
.footer-by em {font-family:var(--font-serif);font-size:1.15rem;}
/* Colores pastel de intensidad equilibrada en las cuatro secciones. */
.tone-sand {background:var(--category-01);color:#412f2b;}
.tone-ochre {background:var(--category-02);color:#412f2b;}
.tone-sage {background:var(--category-03);color:#412f2b;}
.tone-peach {background:var(--category-04);color:#412f2b;}
.category-tile .big-num {opacity:.10;}
.category-tile {border-color:rgba(65,47,43,.08);}
/* Bloque completo con color terracota, sin fondos negruzcos. */
.tools-section {background:var(--tools-area); padding-top:84px; padding-bottom:92px; margin:0; color:#fff1e3;}
.tools-section .section-head h2,.tools-section .section-head p,.tools-section .section-head .eyebrow,
.tools-section [data-result-count] {color:#fff1e3;}
.tools-section .section-head p{color:#f3d9cd;}
.tools-section .section-head .serif{color:#f3d7c3;}
.tools-section .filter-btn{color:#fff3e5;border-color:rgba(255,246,231,.42);background:transparent;}
.tools-section .filter-btn:hover,.tools-section .filter-btn[aria-pressed="true"] {background:var(--tools-card);color:var(--tools-ink);border-color:var(--tools-card);}
.tools-section .empty-state{color:var(--tools-ink);background:var(--tools-card);}
.tool-card{background:var(--tools-card);color:var(--tools-ink);border:1px solid var(--tools-stroke);padding:24px;min-height:296px;box-shadow:none;}
.tool-card:hover{background:var(--tools-card-hover);border-color:var(--tools-ink);box-shadow:0 9px 0 rgba(31,25,23,.14);}
.tool-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 17px;}
.tool-pictogram{height:79px;min-width:83px;display:flex;align-items:center;justify-content:flex-start;color:var(--tools-icon);}
.tool-pictogram .icon{width:74px;height:74px;stroke-width:2.3;}
.tool-card-id{display:flex;gap:9px;align-items:center;justify-content:flex-end;white-space:nowrap;}
.tool-card-arrow{font-size:1rem!important;stroke:var(--tools-icon)!important;}
.tool-card .tiny-id{font-size:.64rem;letter-spacing:.1em;color:var(--tools-muted);}
.tool-card h3{font-size:1.29rem;color:var(--tools-ink);margin:0 0 8px;}
.tool-card p{font-size:.83rem;line-height:1.55;color:var(--tools-muted);}
.tool-card-foot{padding-top:12px;border-top:1px solid var(--tools-stroke);}
.tool-card .status{color:#875045;font-size:.64rem;}
.tool-card-cta{font-size:.61rem;letter-spacing:.08em;font-weight:750;color:var(--tools-icon);}
/* Permitir el logo más elaborado sin estrangular la navegación en tablet. */
@media(max-width:1050px) {
 .brand-name{font-size:1.3rem;} .brand-mark,.brand-mark img {width:38px;height:46px;}
 .nav-links{gap:12px;} .nav-links a{font-size:.82rem;}
}
@media(max-width:820px) {
 .nav-links{display:none;} .menu-toggle{display:grid;} .header-inner{height:75px;}
 .mobile-panel{top:75px;}
 .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px) {
 .brand-credit{font-size:.49rem;} .brand-credit em{font-size:.85rem;}
 .brand-mark,.brand-mark img{width:33px;height:44px;}
 .brand-name{font-size:1.32rem;}
 .tools-section{padding-top:56px;padding-bottom:64px;}
 .tool-card{min-height:265px;}
 .tool-pictogram{height:67px;min-width:62px;}
 .tool-pictogram .icon{width:61px;height:61px;}
 .tool-card h3{font-size:1.16rem;}
 .hero h1{letter-spacing:0;line-height:1.06;}
}
@media(max-width:430px){
 .tool-card{min-height:226px;}
 .tool-pictogram{height:54px;}.tool-pictogram .icon{width:56px;height:56px;}
 .footer-mark{width:40px;height:50px;}
}
/* Los pictogramas sobre tarjeta crema usan tinta chocolate oscuro, no el acento terracota. */
.tool-card .tool-pictogram .icon { color:var(--tools-icon); }

/* V0.4 — Herramientas locales de arquitectura. El diseño es compartido por Astro y la vista previa. */
.calculator {
  --calc-ink:var(--ink);--calc-accent:var(--terracotta);--calc-svg-bg:var(--bg);
  --calc-svg-grid:var(--line);--calc-accent-soft:var(--paper-alt);
  margin:0 0 60px;background:var(--paper);border:1px solid var(--line);
  box-shadow:var(--shadow);border-radius:3px;overflow:hidden;
}
.calculator [hidden] {display:none!important}
.calc-topline{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 28px;background:#88463e;color:#fae9dc;font-size:.68rem;font-weight:750;letter-spacing:.11em;text-transform:uppercase}
.calc-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(285px,.85fr);gap:0;align-items:stretch}
.calc-main{padding:30px 32px 34px;min-width:0}
.calc-side{background:var(--bg);border-left:1px solid var(--line);padding:30px 26px;display:flex;flex-direction:column;gap:20px;min-width:0}
.calc-heading{margin-bottom:26px}
.calc-kicker{display:inline-block;font-size:.7rem;color:var(--rust);font-weight:750;letter-spacing:.10em;text-transform:uppercase}
.calc-heading h2{font:700 clamp(1.55rem,2.3vw,2.15rem)/1.2 var(--font-head);letter-spacing:.005em;margin:8px 0 10px}
.calc-heading p{font-size:.91rem;color:var(--muted);line-height:1.66;margin:0;max-width:600px}
.calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.calc-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.calc-field>span:first-child{font-size:.8rem;font-weight:750;line-height:1.35;color:var(--ink)}
.calc-field input[type="text"],.calc-field select,.calc-field input[type="color"]{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:3px;min-height:47px;padding:10px 12px;outline-offset:2px;font:500 .95rem var(--font-body)}
.calc-field input[type="color"]{padding:5px;cursor:pointer;max-width:110px}
.calc-field small{font-size:.72rem;color:var(--muted);line-height:1.4}
.calc-entry{position:relative;display:flex;align-items:center;min-width:0}
.calc-entry input{padding-right:44px!important}
.calc-suffix{position:absolute;right:11px;font-size:.73rem;color:var(--muted);pointer-events:none}
.calc-field select{appearance:auto;cursor:pointer}
.calc-wide,.calc-dynamic{grid-column:1/-1;min-width:0}
.calc-dynamic:not(.calc-polygon){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.calc-inline-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 0}
.calc-inline-checkbox input{accent-color:#88463e;width:19px;height:19px}
.calc-actions{display:flex;gap:11px;flex-wrap:wrap;align-items:center;margin-top:26px}
.calc-action,.calc-reset,.calc-subaction,.calc-copy{font-family:var(--font-body);border-radius:3px;font-weight:750;min-height:42px;padding:10px 15px}
.calc-action{background:#88463e;color:#fff3e6;border:1px solid #88463e;display:inline-flex;justify-content:space-between;gap:22px;align-items:center}
.calc-action:hover{background:#6b342f}
.calc-reset,.calc-subaction,.calc-copy{color:var(--ink);background:var(--paper);border:1px solid var(--line)}
.calc-reset:hover,.calc-subaction:hover,.calc-copy:hover{background:var(--paper-alt)}
.calc-result{margin-top:24px;border-top:2px solid var(--rust);padding-top:18px}
.calc-result.calc-invalid{opacity:.6}
.calc-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.calc-result-head>span{font-size:.69rem;text-transform:uppercase;letter-spacing:.11em;color:var(--rust);font-weight:800}
.calc-copy{font-size:.73rem;min-height:32px;padding:5px 9px}
.calc-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.calc-stat{background:var(--bg);border:1px solid var(--line);border-radius:3px;padding:14px 15px;min-width:0}
.calc-stat:first-child{grid-column:1/-1;background:var(--paper-alt)}
.calc-stat span{display:block;color:var(--muted);font-size:.7rem;font-weight:650;margin-bottom:4px}
.calc-stat strong{font:750 clamp(1.05rem,2vw,1.5rem)/1.2 var(--font-head);word-break:break-word;color:var(--ink);letter-spacing:.004em}
.calc-result-caption,.calc-note{font-size:.78rem;color:var(--muted);line-height:1.55;margin:12px 0 0}
.calc-error{padding:12px 14px;margin:16px 0 0;border-left:3px solid #b44b3a;background:var(--paper-alt);color:var(--ink);font-size:.86rem}
.calc-side-box{border:1px solid var(--line);background:var(--paper);padding:16px;min-width:0}
.calc-visual{margin-top:14px;min-height:210px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.calc-visual>svg,.calc-visual svg{display:block;width:100%;height:auto;max-width:400px}
.calc-tip{border-top:1px solid var(--line);padding:18px 0 0}
.calc-tip p{font-size:.85rem;line-height:1.65;color:var(--muted);margin:11px 0}
.calc-tip .calc-note{color:var(--ink);padding:12px;background:var(--paper-alt)}
.calc-export{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
.calc-subheading{font:700 1.1rem/1.25 var(--font-head);margin:14px 0 4px}
.poly-points{display:grid;gap:8px;margin-top:14px}
.poly-point{display:grid;grid-template-columns:28px 1fr 1fr 34px;gap:8px;align-items:end}
.poly-point-index{align-self:center;color:var(--muted);font-size:.74rem;font-weight:700}
.poly-point label,.model-piece-fields label{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:.72rem;font-weight:700}
.poly-point input,.model-piece-fields input{width:100%;min-width:0;min-height:38px;padding:7px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:3px;font-size:.85rem}
.poly-remove{min-height:38px;background:var(--paper-alt);border:1px solid var(--line);font-size:1.2rem;color:var(--ink)}
.calc-polygon>.calc-subaction{margin-top:12px}
.calc-visual svg[data-poly-svg]{cursor:crosshair}
.model-pieces{display:grid;gap:13px;margin:14px 0}
.model-piece{min-width:0;background:var(--bg);border:1px solid var(--line);margin:0;padding:14px 12px}
.model-piece legend{font-size:.78rem;font-weight:750;color:var(--rust);padding:0 5px}
.model-piece-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.model-piece .calc-subaction{min-height:31px;margin-top:9px;font-size:.72rem;padding:5px 10px}
.calc-table-scroll{overflow-x:auto;max-width:100%;margin-top:16px}
.calc-table{border-collapse:collapse;min-width:560px;width:100%;font-size:.78rem}
.calc-table th{text-align:left;color:var(--rust);background:var(--bg);font-weight:750}
.calc-table th,.calc-table td{padding:8px;border-bottom:1px solid var(--line)}
.calc-svg-preview{overflow:auto;width:100%;display:flex;justify-content:center;align-items:center;max-height:240px;padding:10px}
.calc-svg-preview svg{max-height:205px;width:100%;height:auto}
@media(max-width:950px){.calc-layout{grid-template-columns:1fr}.calc-side{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.calc-visual{min-height:170px}}
@media(max-width:650px){.calc-topline{padding:10px 16px;font-size:.59rem}.calc-main{padding:23px 17px}.calc-side{padding:22px 17px;grid-template-columns:1fr}.calc-fields{gap:12px}.calc-field>span:first-child{font-size:.75rem}.calc-heading h2{font-size:1.55rem}.calc-stats{gap:7px}.calc-stat{padding:12px}.calc-stat strong{font-size:1.11rem}}
@media(max-width:390px){.calc-fields{grid-template-columns:1fr}.calc-dynamic:not(.calc-polygon){grid-template-columns:1fr}.model-piece-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-main{padding:19px 13px}}
/* Arquiversia v0.5 — herramientas intuitivas y dibujos vinculados a los datos */
.calculator [hidden]{display:none!important}
.calc-step{grid-column:1/-1;padding:10px 0 4px;border-bottom:1px solid var(--line);color:var(--rust);font-size:.71rem;letter-spacing:.08em;font-weight:800;margin-top:10px}
.calc-grid-range{margin-top:12px;max-width:300px}
.calc-state-msg{background:var(--paper-alt);border-left:3px solid var(--terracotta);padding:13px 16px;font-size:.86rem;line-height:1.55;color:var(--ink)}
.calc-visual svg[data-poly-svg]{touch-action:none;cursor:crosshair;width:100%;max-width:460px}
.calc-visual [data-vertex]{cursor:grab;touch-action:none}
.calc-visual [data-vertex]:hover{r:9}
.calc-polygon>.calc-subaction{margin:12px 10px 0 0}
.calc-visual .calc-model-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:410px;overflow:auto;align-items:stretch;width:100%;padding:3px}
.calc-visual:has(.calc-model-gallery){display:block}
.calc-model-preview{text-align:left;border:1px solid var(--line);border-radius:5px;background:var(--bg);padding:11px;cursor:pointer;color:var(--ink);min-width:0;display:flex;flex-direction:column;gap:5px}
.calc-model-preview svg{display:block;width:100%;max-width:100%!important;max-height:150px}
.calc-model-preview:hover,.calc-model-preview.is-selected{outline:2px solid var(--terracotta);outline-offset:1px}
.calc-model-name{font-weight:750;font-size:.81rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calc-model-qty,.calc-gallery-note{display:block;font-size:.72rem;color:var(--muted);line-height:1.4}
.calc-gallery-note{margin-bottom:10px}
.calc-visual:has(.calc-model-gallery)>.calc-gallery-note{margin-top:2px}
.calc-visual svg text{paint-order:normal}
.calc-polygon .calc-note{margin:8px 0 4px}
@media(max-width:650px){.calc-visual .calc-model-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-step{font-size:.68rem}.calc-model-preview{padding:8px}}
@media(max-width:390px){.calc-visual .calc-model-gallery{grid-template-columns:1fr}.poly-point{grid-template-columns:20px 1fr 1fr 30px}}

/* Arquiversia v0.6 — impresión de plantillas físicas de maquetas */
.calc-pdf-panel{margin-top:28px;border:1px solid var(--line);background:var(--bg);padding:clamp(17px,2.7vw,26px);color:var(--ink)}
.calc-pdf-intro{max-width:70ch}
.calc-pdf-intro h3{font-family:var(--font-head);font-size:clamp(1.15rem,1.8vw,1.6rem);margin:10px 0 9px;line-height:1.25;letter-spacing:0}
.calc-pdf-intro p{font-size:.86rem;line-height:1.65;color:var(--muted);margin:0 0 17px}
.calc-pdf-intro strong{color:var(--ink)}
.calc-pdf-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}
.calc-pdf-options .calc-field{min-width:0}
.calc-pdf-options .calc-entry select{width:100%;min-width:0}
.calc-pdf-checks{display:grid;gap:10px;margin:20px 0;padding:12px 16px;background:var(--paper-alt);border:1px solid var(--line)}
.calc-pdf-checks label{display:flex;align-items:flex-start;gap:10px;font-size:.82rem;line-height:1.5;cursor:pointer}
.calc-pdf-checks input{accent-color:var(--rust);margin-top:3px;flex-shrink:0}
.calc-pdf-review{border:1px solid var(--line);background:var(--paper-alt);padding:14px}
.calc-pdf-review-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.calc-pdf-review-header strong{font-size:.93rem}
.calc-pdf-review-header p{margin:5px 0 12px;font-size:.77rem;color:var(--muted);line-height:1.5}
.calc-pdf-page-choice{display:flex;align-items:center;gap:8px;font-size:.74rem;color:var(--ink);font-weight:700}
.calc-pdf-page-choice select{background:var(--bg);color:var(--ink);padding:6px;border:1px solid var(--line);min-height:34px}
.calc-pdf-paper-wrap{display:flex;justify-content:center;align-items:center;max-height:365px;min-height:130px;overflow:auto;padding:10px;background:var(--bg);border:1px solid var(--line)}
.calc-pdf-paper{max-width:100%;max-height:335px;display:flex;justify-content:center}
.calc-pdf-paper svg{display:block;max-height:335px;max-width:100%;height:auto;width:auto;box-shadow:0 1px 5px rgba(0,0,0,.12)}
.calc-pdf-review>.calc-note{font-size:.73rem;line-height:1.5;margin:12px 0 0;color:var(--muted)}
.calc-pdf-download{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:18px}
.calc-pdf-download .calc-action{flex-shrink:0}
.calc-pdf-download p{margin:0;flex:1 1 240px;font-size:.78rem;color:var(--muted);line-height:1.65}
.calc-pdf-download p strong{color:var(--ink)}
.calc-pdf-panel [hidden]{display:none!important}
.calc-pdf-panel button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px){.calc-pdf-options{grid-template-columns:1fr}.calc-pdf-panel{padding:15px}.calc-pdf-download .calc-action{width:100%}}
/* La vista previa SVG debe tener anchura definida; evita tamaño 0 en contenedores flex. */
.calc-pdf-paper-wrap .calc-pdf-paper{width:100%;max-width:340px;max-height:none;display:flex;justify-content:center;align-items:center}
.calc-pdf-paper-wrap .calc-pdf-paper svg{width:100%;height:320px;max-width:100%;max-height:none;object-fit:contain;display:block}

/* v0.7 · Planos y fabricación — local & responsive */
.workshop{--ws-accent:#88463e}
.workshop-upload{display:flex;flex-direction:column;gap:7px;padding:23px 20px;background:var(--paper-alt);border:2px dashed var(--rust);cursor:pointer;transition:background .15s;line-height:1.6}
.workshop-upload:hover,.workshop-upload.is-over{background:var(--bg)}
.workshop-upload strong{font:750 1.12rem var(--font-head);color:var(--ink)}
.workshop-upload span{font-size:.8rem;color:var(--muted)}
.workshop-upload input{font:inherit;font-size:.79rem;color:var(--ink);max-width:100%}
.workshop-help{font-size:.78rem;color:var(--muted);line-height:1.6;margin:9px 0 23px}
.workshop-fields{margin-top:15px}
.workshop .calc-field>input,.workshop .calc-field>select{width:100%;min-height:46px;background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:10px 12px;border-radius:3px;font:500 .9rem var(--font-body)}
.workshop [hidden]{display:none!important}
.workshop-checks{display:flex;flex-wrap:wrap;gap:12px 23px;margin:22px 0 14px;padding:13px;background:var(--paper-alt);border:1px solid var(--line)}
.workshop-checks label{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--ink)}
.workshop-checks input{accent-color:#88463e}
.workshop-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0}
.workshop-actions button:disabled{opacity:.5;cursor:not-allowed}
.workshop-success{color:var(--ink);font-weight:600;font-size:.78rem;line-height:1.6;min-height:1.2em;margin:10px 0}
.workshop-summary{display:flex;flex-direction:column;gap:7px;line-height:1.5;color:var(--muted);font-size:.8rem;margin:14px 0}
.workshop-summary strong{font-size:1.12rem;color:var(--ink)}
.workshop-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:440px;overflow:auto}
.workshop-tile-card{background:var(--paper-alt);border:1px solid var(--line);padding:7px 3px;text-align:center;min-width:0}
.workshop-tile-card svg{display:block;width:100%;height:auto;max-height:195px}
.workshop-tile-card span{font-size:.66rem;color:var(--muted);display:block;line-height:1.4}
.workshop-pdf-original{margin-top:15px;border-top:1px solid var(--line);padding-top:12px}
.workshop-pdf-original summary{font-weight:700;cursor:pointer;font-size:.8rem}
.workshop-pdf-original iframe{width:100%;height:330px;border:1px solid var(--line);margin-top:13px;background:white}
.workshop-piece-head{margin-top:30px}
.workshop-piece-list{display:grid;gap:12px;margin-top:12px}
.workshop-piece{padding:13px;background:var(--bg);border:1px solid var(--line);min-width:0}
.workshop-piece-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:0 0 11px}
.workshop-piece-title strong{font-size:.85rem;color:var(--rust)}
.workshop-piece-title button{min-width:32px;min-height:32px;background:var(--paper-alt);color:var(--ink);border:1px solid var(--line);font-size:1.2rem}
.workshop-piece-fields{display:grid;grid-template-columns:1.7fr repeat(3,1fr);gap:10px}
.workshop-piece-fields label{font-size:.69rem;font-weight:750;color:var(--muted);display:flex;flex-direction:column;gap:6px;min-width:0}
.workshop-piece-fields input{min-width:0;width:100%;height:42px;padding:8px;border:1px solid var(--line);color:var(--ink);background:var(--paper);font:500 .9rem var(--font-body)}
.workshop-inline-upload{display:inline-flex;align-items:center;cursor:pointer;justify-content:center}
.workshop-inline-upload:hover{background:var(--paper-alt)}
.workshop-result{margin-top:18px}
.workshop-sheet-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0}
.workshop-sheet-head div{font-size:.8rem;color:var(--ink);font-weight:700}
.workshop-sheet-head label{font-size:.73rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.workshop-sheet-head select{max-width:95px;padding:6px;background:var(--bg);color:var(--ink);border:1px solid var(--line)}
.workshop-nesting-preview{background:var(--paper-alt);border:1px solid var(--line);padding:10px;max-height:460px;overflow:auto}
.workshop-nesting-preview svg{display:block;max-width:100%;height:auto;max-height:430px;margin:auto;background:#fff}
.workshop-nesting-preview [data-placement]:hover{filter:drop-shadow(0 0 3px #bb8770)}
@media(max-width:900px){.workshop .calc-layout{grid-template-columns:1fr}.workshop .calc-side{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:580px){.workshop .calc-main{padding:19px 15px}.workshop .calc-side{padding:20px 15px}.workshop-fields{grid-template-columns:1fr}.workshop-piece-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-piece-fields label:first-child{grid-column:1/-1}.workshop-actions .calc-action{flex:1}.workshop-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* PDF / IMÁGENES — FASE 4 | UI editorial coherente con Arquiversia */
.pdf-suite .calc-heading p{max-width:68ch}
.suite-file-list{display:flex;flex-direction:column;gap:9px;margin:12px 0 25px}
.suite-file-list:empty{display:none}
.suite-file-row{display:flex;align-items:center;gap:12px;padding:12px;background:var(--bg);border:1px solid var(--line);min-width:0}
.suite-file-icon{display:flex;align-items:center;justify-content:center;flex:none;width:47px;height:47px;background:var(--paper-alt);color:var(--rust);font:800 11px var(--font-body);letter-spacing:.06em}
.suite-file-caption{flex:1;display:flex;flex-direction:column;min-width:0;gap:2px}
.suite-file-caption strong{font:700 .84rem var(--font-body);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suite-file-caption small{font:.73rem var(--font-body);color:var(--muted)}
.suite-file-controls{display:flex;gap:4px;align-items:center}
.suite-file-controls button{border:1px solid var(--line);background:var(--paper-alt);color:var(--ink);cursor:pointer;min-width:31px;min-height:34px;font-size:18px}
.suite-file-controls button:hover:not(:disabled){background:var(--rust);color:white}
.suite-file-controls button:disabled{opacity:.35;cursor:default}
.pdf-suite .calc-subheading{margin:20px 0 14px}
.suite-custom{display:contents}
.pdf-suite [hidden]{display:none!important}
.suite-progress-wrap{display:flex;flex-direction:column;gap:8px;margin:15px 0 0;font-size:.8rem;color:var(--muted)}
.suite-progress-wrap progress{width:100%;height:10px;accent-color:#88463e}
.suite-illustration{margin:15px auto 20px;max-width:275px;background:var(--paper-alt);border:1px solid var(--line);padding:15px}
.suite-illustration svg{height:auto;max-width:100%;display:block}
.pdf-suite .calc-result{margin-top:15px;padding:16px;border:1px solid var(--rust);background:var(--paper-alt)}
.pdf-suite .calc-result strong{color:var(--rust);font-weight:800;font-size:1.05rem}
.pdf-suite .calc-result p{line-height:1.6;color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.pdf-suite .workshop-actions{margin-top:18px}
@media(max-width:650px){.suite-file-row{padding:9px;gap:8px}.suite-file-icon{width:39px;height:42px}.suite-file-controls button{min-width:27px;min-height:32px}.pdf-suite .workshop-actions button{width:100%}}

/* FASE 4.1 — Miniaturas seleccionables y compresión por objetivo */
.suite-preview-box{min-width:0}
.suite-preview-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.suite-preview-actions button{font:700 .73rem var(--font-body);color:var(--rust);background:var(--paper-alt);border:1px solid var(--line);padding:8px 11px;min-height:35px}
.suite-preview-actions button:hover{background:var(--rust);color:var(--paper)}
.suite-preview-status{font-size:.77rem;line-height:1.55;color:var(--muted);margin:10px 0}
.suite-thumb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:490px;overflow:auto;overscroll-behavior:contain;padding:5px 6px 8px 2px;border-top:1px solid var(--line)}
.suite-thumb{border:2px solid var(--line);padding:7px 7px 9px;min-width:0;background:var(--bg);color:var(--ink);display:flex;align-items:center;flex-direction:column;gap:7px;cursor:pointer}
.suite-thumb:hover:not(:disabled){border-color:var(--rust)}
.suite-thumb:focus-visible{outline:3px solid var(--rust);outline-offset:2px}
.suite-thumb.is-selected{border-color:var(--rust);background:var(--paper-alt);box-shadow:inset 0 0 0 1px var(--rust)}
.suite-thumb:disabled{cursor:default;opacity:.84}
.suite-thumb-paper{width:100%;height:152px;display:flex;align-items:center;justify-content:center;color:var(--muted);background:#fff;border:1px solid #dcd7d0;overflow:hidden}
.suite-thumb-paper img{width:100%;height:100%;object-fit:contain}
.suite-thumb-label{font:700 .74rem var(--font-body);color:var(--ink);white-space:nowrap}
.pdf-suite .calc-field small{display:block;font-weight:400;margin-top:5px;line-height:1.45}
@media(max-width:900px){.suite-thumb-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:450px}}
@media(max-width:540px){.suite-thumb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.suite-thumb-paper{height:135px}}

/* ARQUIVERSIA v0.14 — Eliminador de fondos, geometría clara y controles accesibles */
.remove-bg .bg-file-label{font-size:.86rem;line-height:1.5;color:var(--muted);margin:12px 0 20px;overflow-wrap:anywhere}
.remove-bg .bg-dropzone.drag-over{border-color:var(--rust);background:var(--paper-alt)}
.remove-bg .bg-dropzone.is-busy{opacity:.65;pointer-events:none}
.remove-bg .bg-progress-block{margin:16px 0;display:grid;gap:8px;color:var(--muted);font-size:.82rem}
.remove-bg .bg-progress-block[hidden],.remove-bg [hidden]{display:none!important}
.remove-bg .bg-progress-block progress{width:100%;height:12px;accent-color:var(--rust)}
.remove-bg .bg-message{margin:18px 0 0;padding:14px 16px;border-left:3px solid var(--rust);background:var(--paper-alt);line-height:1.6;color:var(--ink);font-size:.87rem}
.remove-bg .bg-message[data-kind="error"]{border-color:#b43d38;color:#ab302c}
.remove-bg .bg-message[data-kind="success"]{border-color:#5d8d60}
.remove-bg .bg-note{margin-top:22px;font-size:.8rem;line-height:1.7}
.remove-bg .bg-actions{flex-wrap:wrap;align-items:center;gap:10px}
.remove-bg button:disabled{opacity:.45;cursor:not-allowed}
.remove-bg .bg-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.remove-bg .bg-preview-card{min-width:0;border:1px solid var(--line);background:var(--bg)}
.remove-bg .bg-preview-label{font-size:.71rem;letter-spacing:.1em;font-weight:800;display:block;padding:9px 11px;color:var(--rust);border-bottom:1px solid var(--line)}
.remove-bg .bg-preview-surface{height:230px;padding:10px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:var(--paper-alt)}
.remove-bg .bg-checker{background-color:#fafafa;background-image:linear-gradient(45deg,#dfdfdf 25%,transparent 25%),linear-gradient(-45deg,#dfdfdf 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfdfdf 75%),linear-gradient(-45deg,transparent 75%,#dfdfdf 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.remove-bg .bg-preview-surface img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;z-index:1}
.remove-bg .bg-preview-surface span{max-width:19ch;text-align:center;line-height:1.5;color:#7c6254;font-size:.75rem;background:rgba(255,255,255,.85);padding:10px}
@media(max-width:680px){.remove-bg .bg-preview-grid{grid-template-columns:1fr}.remove-bg .bg-preview-surface{height:240px}}

/* File-input del eliminador: zona completa pulsable, sin el botón nativo en inglés. */
.remove-bg .bg-dropzone{position:relative;cursor:pointer}
.remove-bg .bg-dropzone input[type="file"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.remove-bg .bg-dropzone:focus-within{outline:3px solid var(--rust);outline-offset:3px}

/* ARQUIVERSIA v0.15 · Búsqueda predictiva y nuevas páginas */
.finder-wrap{isolation:isolate}.tool-suggestions{position:absolute;top:calc(100% - 1px);left:44px;right:44px;z-index:60;max-height:min(68vh,520px);overflow:auto;background:var(--paper);border:1px solid var(--line);box-shadow:0 20px 50px rgba(20,17,15,.19)}
.tool-suggestions[hidden]{display:none}.suggestions-head{padding:12px 21px 9px;font-size:.73rem;font-weight:700;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}
.suggestion-item{display:flex;align-items:center;gap:14px;padding:14px 19px;border-top:1px solid var(--line);color:var(--ink)}.suggestion-item:hover,.suggestion-item:focus-visible,.suggestion-item[aria-selected=true]{background:var(--paper-alt)}.suggestion-icon{flex:none;width:35px!important;height:35px!important;stroke:var(--rust);color:var(--rust)}.suggestion-copy{display:grid;flex:1;gap:1px;min-width:0}.suggestion-copy strong{font-size:.96rem}.suggestion-copy small{font-size:.79rem;color:var(--muted);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.suggestion-item>.icon:last-child{color:var(--rust);width:18px;height:18px}.suggestion-empty{padding:20px;color:var(--muted)}
.tool-card-cta{display:inline-flex;gap:6px;align-items:center}.tool-card-cta .icon{width:1em;height:1em;font-size:.95rem;stroke-width:2;fill:none}
.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.contact-card{border:1px solid var(--line);background:var(--paper);padding:25px 22px;min-height:175px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.contact-card:hover{border-color:var(--rust);transform:translateY(-3px)}.contact-kind{font-size:.73rem;letter-spacing:.13em;font-weight:700;color:var(--rust)}.contact-card strong{font:700 clamp(1.15rem,2vw,1.55rem)/1.22 var(--font-head);overflow-wrap:anywhere}.contact-card>span:last-child{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted)}.contact-card .icon{width:16px;height:16px}.info-prose{margin-bottom:70px}.info-prose h2{margin-top:2rem}.info-prose p{overflow-wrap:anywhere}.info-prose a{text-decoration:underline;text-underline-offset:3px}.feedback-promo{border-top:1px solid var(--line);padding:48px 0 20px;margin-top:36px}.feedback-promo h2{font:700 clamp(2rem,4vw,3.3rem)/1.15 var(--font-head);margin:12px 0;letter-spacing:-.025em}.feedback-promo p{max-width:640px;color:var(--muted)}.feedback-promo .primary-btn{margin-top:13px}
.feedback-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.7fr);gap:20px;margin:0 auto 65px}.feedback-form,.feedback-aside{background:var(--paper);border:1px solid var(--line);padding:clamp(22px,3vw,36px)}.feedback-form h2,.feedback-aside h2{font:700 clamp(1.35rem,2.5vw,2rem)/1.2 var(--font-head);margin:12px 0 24px}.feedback-aside p{color:var(--muted);font-size:.94rem}.rating-chooser{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.rating-chooser button{font-family:Arial,sans-serif;width:43px;height:47px;border:1px solid var(--line);background:var(--paper-alt);color:var(--rust);font-size:2rem;line-height:1;display:grid;place-items:center}.rating-chooser button.rating-zero{font:700 .95rem var(--font-body)}.rating-chooser button:hover,.rating-chooser button.is-active,.rating-chooser button[aria-pressed=true]{background:#f0dfcb;border-color:#88463e;color:#88463e}.feedback-rating-status{font-size:.84rem;color:var(--muted);margin:12px 0 24px}.feedback-label{font-weight:700;display:block;margin-bottom:10px}.feedback-form textarea{display:block;width:100%;padding:14px 16px;background:var(--bg);border:1px solid var(--line);border-radius:2px;color:var(--ink);resize:vertical;min-height:140px}.feedback-actions{margin-top:18px}.feedback-share{background:var(--paper-alt);border-left:3px solid var(--rust);padding:15px;margin-top:18px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.feedback-share[hidden]{display:none}.feedback-share>p{width:100%;margin:0 0 8px}.feedback-share a{text-decoration:underline;font-weight:600;font-size:.86rem}.feedback-status{font-weight:650;color:var(--rust);min-height:20px}.feedback-aside .notice{margin-top:20px}
@media(max-width:900px){.feedback-layout{grid-template-columns:1fr}.contact-cards{grid-template-columns:1fr 1fr}}@media(max-width:640px){.tool-suggestions{left:0;right:0;max-height:55vh}.suggestion-item{padding:13px 12px;gap:9px}.suggestion-copy small{-webkit-line-clamp:1}.contact-cards{grid-template-columns:1fr}.feedback-form,.feedback-aside{padding:22px 16px}.rating-chooser button{width:39px;height:41px}}

/* ARQUIVERSIA v0.16 · Tarjetas centradas aunque la última fila tenga solo tres.
   Afecta únicamente al catálogo principal; filtros y búsqueda siguen siendo dinámicos. */
.tools-section .tool-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.tools-section .tool-grid>.tool-card{flex:0 1 calc((100% - 42px)/4);min-width:0}
@media(max-width:1050px){.tools-section .tool-grid>.tool-card{flex-basis:calc((100% - 28px)/3)}}
@media(max-width:720px){.tools-section .tool-grid>.tool-card{flex-basis:calc((100% - 14px)/2)}}
@media(max-width:430px){.tools-section .tool-grid>.tool-card{flex-basis:100%}}
.review-consent{display:flex;align-items:flex-start;gap:12px;margin-top:16px;color:var(--muted);font-size:.87rem;line-height:1.5}
.review-consent input{margin-top:5px;flex:none;width:18px;height:18px;accent-color:var(--rust)}
.review-consent .text-link{text-decoration:underline;text-underline-offset:2px}
.review-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}
.feedback-actions button:disabled{opacity:.6;cursor:wait}
.feedback-status{line-height:1.55}

/* v0.17 · Auditoría móvil: evita el desbordamiento de la cabecera en 320–360 px.
   El acceso a la búsqueda permanece en la portada y en el menú principal. */
@media (max-width:360px) {
  .header-controls .icon-button[aria-label="Buscar herramientas"]{display:none}
  .header-inner{gap:4px}
  .header-controls{margin-left:auto;gap:3px}
  .header-controls .icon-button{width:34px;height:34px}
  .brand-name{font-size:1.10rem}
  .brand-credit{font-size:.43rem}
}
/* v0.18 - Las herramientas nuevas reutilizan la identidad editorial. */
.calculator [data-custom-percent][hidden]{display:none!important}
.commands-results{display:grid;grid-template-columns:1fr;gap:12px;margin:22px 0 0}
.command-card{background:var(--paper);border:1px solid var(--line);padding:18px 20px;min-width:0}
.command-card h3{font:750 1.15rem/1.3 var(--font-head);margin:10px 0 6px;letter-spacing:0}
.command-card p{color:var(--muted);font-size:.87rem;line-height:1.55;margin:7px 0}
.command-card .command-steps{color:var(--ink);padding-top:9px;border-top:1px solid var(--line)}
.command-head{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.command-code{font:700 1rem/1.3 ui-monospace,Consolas,monospace;letter-spacing:.01em;color:var(--rust)}
.commands-prompts{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.commands-prompts button{border:1px solid var(--line);background:var(--paper-alt);color:var(--ink);padding:9px 11px;cursor:pointer;font:.85rem var(--font-body)}
.commands-prompts button:hover,.commands-prompts button:focus-visible{border-color:var(--rust)}
.calculator input[type="date"],.calculator input[type="time"],.calculator input[type="search"]{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:3px;min-height:47px;padding:10px 12px;font:500 .95rem var(--font-body)}

/* v0.19 — navegación sin filtrado, accesos directos y bandas por universo */
.tool-card-foot{margin:auto -21px -21px;padding:12px 19px;color:#412f2b;border-top:1px solid rgba(45,29,21,.09);min-height:49px}
.tool-card-foot .status,.tool-card-foot .tool-card-cta,.tool-card-foot .icon{color:#412f2b}
.tone-foot-arquitectura{background:#d4e2e4}.tone-foot-planos{background:#ede0c1}.tone-foot-imagenes{background:#d9e0d2}.tone-foot-pdf{background:#e9cfc5}
.tool-card .tool-card-foot .icon{color:#412f2b}
.suggestion-marker{width:30px;height:30px;flex:none;display:block;border-radius:2px}
.suggestion-marker[data-category="arquitectura"]{background:#d4e2e4}
.suggestion-marker[data-category="planos"]{background:#ede0c1}
.suggestion-marker[data-category="imagenes"]{background:#d9e0d2}
.suggestion-marker[data-category="pdf"]{background:#e9cfc5}
.suggestion-marker[data-category="info"]{background:#d8d2c9}
.catalog-access{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:12px 0 22px}
.catalog-access p{margin:0}.catalog-permalink{display:inline-flex;align-items:center;gap:7px;font-size:.79rem;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.catalog-permalink .icon{width:14px;height:14px}
#buscar{scroll-margin-top:25px}#herramientas{scroll-margin-top:15px}
.calc-fields [hidden],.calc-form [hidden]{display:none!important}
.sun-slider-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:16px;align-items:end;grid-column:1/-1}
.sun-slider-row input[type="range"]{width:100%;accent-color:var(--rust);min-height:40px;touch-action:pan-y;cursor:pointer}
.sun-slider-row input[type="time"]{width:100%}
.sun-curve-hint{font-size:.8rem;color:var(--muted);margin:8px 0 12px}
.sun-curve-hint strong{color:var(--ink)}
[data-arch-curve] svg{touch-action:none;cursor:crosshair;user-select:none}
[data-arch-curve] svg:focus-visible{outline:3px solid var(--rust);outline-offset:3px}
.cte-reference{border:1px solid var(--line);background:var(--paper);padding:clamp(20px,3vw,34px);margin-bottom:24px}
.cte-reference h2{font:700 1.5rem/1.3 var(--font-head);margin:0 0 12px}
.cte-reference p{color:var(--muted)}
.cte-reference table{width:100%;border-collapse:collapse;font-size:.9rem}
.cte-reference th,.cte-reference td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.cte-reference .notice{margin:16px 0}
.cte-reference a{color:var(--rust);text-decoration:underline;text-underline-offset:4px}
.cte-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}
.cte-actions .primary-btn{font-size:.9rem}
@media(max-width:520px){.sun-slider-row{grid-template-columns:1fr}.tool-card-foot{padding:12px 14px;margin:auto -21px -21px}}

/* La búsqueda también es accesible desde la cabecera del móvil estrecho. */
@media(max-width:360px){.header-controls [data-header-search]{display:grid!important}.brand-mark{width:30px;height:30px}.brand-name{font-size:1.02rem}.brand-credit{font-size:.40rem}.header-inner{gap:3px}}

/* Vista previa local de imágenes y páginas PDF · RC.2 */
.suite-live-preview{margin:12px 0 16px;min-width:0}
.suite-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;max-height:520px;overflow-y:auto;overscroll-behavior:contain;padding:6px 7px 9px 2px}
.suite-order-grid:empty{display:none}
.suite-order-card{border:1px solid var(--line);padding:8px;min-width:0;background:var(--bg);display:flex;flex-direction:column;gap:8px;color:var(--ink)}
.suite-order-card[role="button"]{cursor:pointer}
.suite-order-card[role="button"]:hover,.suite-order-card[role="button"].is-selected{border-color:var(--rust);background:var(--paper-alt)}
.suite-order-card[role="button"].is-selected{box-shadow:inset 0 0 0 1px var(--rust)}
.suite-order-card[role="button"]:focus-visible{outline:3px solid var(--rust);outline-offset:2px}
.suite-order-card .suite-thumb-paper{height:152px;min-height:0}
.suite-order-caption{min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.suite-order-number{background:var(--rust);color:var(--paper);font:800 .67rem var(--font-body);padding:4px 6px;line-height:1}
.suite-order-name{flex:1;min-width:65px;word-break:break-word;overflow-wrap:anywhere;font:650 .74rem/1.4 var(--font-body)}
.suite-order-controls{display:flex;gap:3px;margin-left:auto}
.suite-order-controls button{background:var(--paper-alt);border:1px solid var(--line);color:var(--ink);font-size:1rem;min-width:30px;min-height:30px;cursor:pointer}
.suite-order-controls button:disabled{opacity:.35;cursor:default}
.suite-order-controls button:hover:not(:disabled){border-color:var(--rust)}
@media(max-width:900px){.suite-order-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:420px}}
@media(max-width:540px){.suite-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.suite-order-card .suite-thumb-paper{height:130px}}

.pdf-suite .suite-move-icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;display:block;margin:auto}
