/* Kestrelbrief — warm, modern, accessible orange visual system. */
:root {
  color-scheme: light;
  --paper: #fffaf6;
  --white: #ffffff;
  --ink: #291d16;
  --muted: #73675f;
  --line: #e9ded5;
  --soft-line: #f0e6de;
  --blue: #c14b1b;
  --blue-dark: #9e3711;
  --lemon: #fff0df;
  --peach: #ff9b63;
  --max: 1280px;
  --shadow: 0 10px 40px #6230190a, 0 2px 8px #62301905;
}
body { background: var(--paper); font-family: 'Segoe UI',Inter,Arial,sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .2em; }
button,input,select { font-family: inherit; }
button,a,input,select,summary { transition: background-color .18s, border-color .18s, box-shadow .18s, color .18s, transform .18s; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #d96732; outline-offset: 4px; }
.skip-link { border: 0; border-radius: 10px; background: var(--blue); color: #fff; }
.site-header { border-bottom: 1px solid #eadbd0; background: #fffdf9ed; backdrop-filter: blur(18px); }
.nav-wrap { min-height: 82px; }
.brand img { max-width: 190px; height: 38px; filter: hue-rotate(155deg) saturate(1.15); }
.nav-links { gap: .2rem; }
.nav-links a { border: 0; border-radius: 9px; color: #66554a; font-size: .86rem; font-weight: 600; padding: .6rem .75rem; }
.nav-links a:hover,.nav-links a[aria-current="page"] { color: var(--blue-dark); background: #fff0e6; border: 0; }
.nav-links .nav-home { border: 0; background: transparent; }
.nav-links .nav-home:hover,.nav-links .nav-home[aria-current="page"] { background: #fff0e6; color: var(--blue-dark); border: 0; }
.nav-links .nav-cta,.nav-links .nav-cta:hover { color: #fff; border: 0; background: var(--blue); box-shadow: 0 4px 12px #c14b1b20; transform: none; padding: .75rem 1rem; border-radius: 10px; }
.nav-links .nav-cta:hover { background: var(--blue-dark); }
.menu-toggle { border: 1px solid var(--line); border-radius: 9px; font-weight: 600; padding: .6rem 1rem; }
h1,h2,h3 { color: var(--ink); letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem,5.5vw,5.25rem); font-weight: 750; line-height: 1.06; max-width: 13ch; margin-block: 1.2rem 1.6rem; }
h2 { font-weight: 700; font-size: clamp(1.8rem,3.2vw,2.85rem); line-height: 1.15; }
h3 { font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.eyebrow { color: var(--blue-dark); font-size: .73rem; letter-spacing: .13em; font-weight: 700; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #ea783f; }
.hero { border-bottom: 1px solid #f0e1d5; background: radial-gradient(ellipse at 100% 0%,#ffe4cd 0%,transparent 55%),linear-gradient(120deg,#fffaf6,#fff5e9); padding-block: clamp(3.5rem,7vw,6.5rem); }
.hero-grid { gap: clamp(2.5rem,6vw,6rem); }
.lead { font-size: clamp(1.05rem,1.5vw,1.18rem); color: #756252; line-height: 1.8; }
.hero-actions { margin-top: 2rem; }
.button { border: 1px solid transparent; border-radius: 10px; padding: .85rem 1.25rem; box-shadow: none; font-size: .9rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 16px #843d1610; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 5px 16px #c14b1b1c; }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { background: #fff; color: var(--ink); border-color: #e5d7cb; }
.button.secondary:hover { background: #fff4e9; border-color: #d9a888; }
.button.small { padding: .5rem .75rem; font-size: .78rem; border-radius: 7px; }
.aurora-card,.aurora-card.has-image { min-height: 440px; border: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 25px 70px #6c3c2424; transform: rotate(1deg); background: #32231c; }
.aurora-card::before,.aurora-card::after { display: none; }
.aurora-card .hero-image { border-radius: 26px; }
.aurora-card figcaption { background: #fff9f1ee; color: #5a3926; border: 0; border-radius: 20px; padding: .5rem 1rem; font-size: .75rem; letter-spacing: .04em; }
.section { padding-block: clamp(3rem,5vw,5rem); border-bottom: 0; }
.section.compact { padding-block: 2.8rem; }
.section-alt { background: #f8f1eb; border-block: 1px solid #f0e4da; }
.section-head { margin-bottom: 2rem; gap: 2rem; }
.section-head p { color: var(--muted); }
.grid { gap: 1.25rem; }
.card { border: 1px solid #eadfd5; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px #63331803; padding: 1.65rem; }
a.card:hover { background: #fffdfb; border-color: #dfa77f; box-shadow: var(--shadow); transform: translateY(-3px); }
.card .arrow { color: var(--blue-dark); font-size: .85rem; font-weight: 650; }
.card p { color: #77665b; line-height: 1.8; }
.pill { border: 1px solid #e9d7c8; background: #fffaf6; color: #885134; border-radius: 999px; font-size: .79rem; padding: .5rem .85rem; box-shadow: none; }
a.pill:hover { background: #ffe9d7; color: var(--blue-dark); transform: none; }
.finder { border: 1px solid #ead7c7; border-radius: 20px; background: #fff; padding: clamp(1.25rem,3vw,2.2rem); box-shadow: var(--shadow); }
.finder-result { border-top: 1px solid var(--soft-line); padding-top: 1.4rem; margin-top: 1.5rem; }
.field label { font-size: .74rem; font-weight: 650; color: #755747; letter-spacing: .035em; }
.field input,.field select,input,select { border: 1px solid #e1d4c8; border-radius: 8px; background-color: #fff; color: #3d2b20; padding: .7rem .8rem; box-shadow: 0 1px 2px #42220703; }
.field input:focus,.field select:focus { border-color: #cb743f; }
.theme-hero { background: radial-gradient(ellipse at 95% 20%,#ffd9ba 0%,transparent 55%),#fff2e5; color: var(--ink); padding-block: clamp(3rem,5vw,4.5rem); }
.theme-hero h1 { max-width: 20ch; font-size: clamp(2.65rem,5vw,4.5rem); }
.theme-hero .eyebrow { color: var(--blue-dark); }
.theme-hero .eyebrow::before { background: var(--blue); }
.theme-hero .lead { color: #7a5b46; }
.theme-hero .pill { background: #ffffffa6; color: #985329; border-color: #eac6a9; }
.theme-hero .text-link { font-size: .85rem; color: var(--blue-dark); }
.breadcrumbs { padding-block: 1rem; color: #918073; font-size: .8rem; }
.breadcrumbs a { color: #916140; }
.preset-row .button { border-radius: 999px; font-size: .82rem; }
.generator-shell { border: 1px solid #e8d7ca; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); grid-template-columns: minmax(350px,.37fr) minmax(0,.63fr); }
.generator-controls { background: #fff4ea; color: #4d3525; border-right: 1px solid #ead7c7; padding: 1.6rem; }
.generator-controls h2 { color: #3b2517; font-size: 1.85rem; line-height: 1.15; }
.generator-controls p { font-size: .85rem; line-height: 1.75; color: #87654e; }
.generator-controls fieldset { border: 1px solid #e5cdbb; border-radius: 11px; padding: 1rem; }
.generator-controls legend { color: #9a4e22; font-size: .77rem; font-weight: 650; }
.generator-controls details { border-bottom: 1px solid #e8d7c9; padding-bottom: .9rem; }
.generator-controls summary { color: #805237; font-size: .85rem; }
.generator-controls .field label { color: #80614d; font-size: .69rem; }
.generator-controls .control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.generator-controls input,.generator-controls select { font-size: .82rem; padding: .65rem .6rem; }
.generator-controls .button.primary { background: var(--blue); color: #fff; }
.generator-controls .button.primary:hover { background: var(--blue-dark); }
.generator-controls .status { color: #825b42; font-size: .77rem; }
.name-results { background: #eedece; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; }
.name-card { padding: 1.4rem; background: #fffdfa; }
.name-card h3 { font-size: 1.12rem; color: #443025; min-height: auto; margin-bottom: .7rem; }
.name-card p { color: #887160; font-size: .83rem; line-height: 1.7; min-height: auto; }
.name-card .ascii { color: #a95a2d; font-size: .72rem; }
.name-card .button-row { margin-top: 1.2rem; }
.workbench-grid { gap: 1.25rem; margin-block: 2rem 1.25rem; }
.workbench-grid h2 { font-size: 1.5rem; }
.workbench-grid p,.audit p,.method p { font-size: .86rem; }
.audit,.method { border-radius: 12px; padding: 1.3rem 1.6rem; }
.audit summary,.method summary { color: #87502f; font-size: .9rem; }
.context-lab { border-top: 3px solid #e77b3d; padding: 1.8rem; background: #fffcf8; }
.context-lab h2 { font-size: 1.6rem; }
.context-lab [aria-live] p { margin-block: .8rem; padding-left: 1rem; border-left: 2px solid #efc2a1; }
.context-lab label { text-transform: none; letter-spacing: 0; }
.prose { max-width: 78ch; }
.prose h1 { font-size: clamp(2.5rem,4.7vw,4rem); max-width: 20ch; }
.prose h2 { font-size: clamp(1.65rem,2.6vw,2.25rem); max-width: 28ch; line-height: 1.2; margin-top: 2.7rem; }
.prose h3 { color: #8f4925; margin-top: 1.8rem; }
.prose p,.prose li { color: #705f53; line-height: 1.9; }
.prose .lead { font-size: 1.08rem; }
.byline { color: #958172!important; font-size: .78rem; padding-bottom: 1.1rem; border-bottom: 1px solid #e8dacc; }
.prose details { border: 1px solid #e7d8cb; border-radius: 10px; background: #fffcf9; padding: 1rem 1.2rem; margin-block: .75rem; }
.prose summary { cursor: pointer; font-size: .95rem; font-weight: 600; color: #855332; }
.prose details p { margin-bottom: .2rem; }
.sidebar { top: 110px; }
.sidebar .card { padding: 1.6rem; }
.sidebar h2 { font-size: 1.2rem; }
.sidebar .card:nth-child(2) { background: #fff1e3; border-color: #eacdb6; }
.sidebar .footer-links { gap: .85rem; }
.sidebar .footer-links a { color: #8b5636; text-decoration: none; font-size: .9rem; }
.sidebar .footer-links a:hover { color: var(--blue-dark); text-decoration: underline; }
.sidebar>p { color: #998172; font-size: .82rem; padding: .5rem 1rem; }
.policy-toc { border-radius: 12px; padding: 1.4rem; background: #fff4ea; border-color: #ecd8c7; gap: .55rem; }
.policy-toc a { font-size: .9rem; text-decoration: none; }
.notice { border: 1px solid #eed0b3; border-radius: 12px; background: #fff0dd; color: #8c572d; line-height: 1.8; }
.theme-list { gap: 1.25rem; margin-top: 1.5rem; }
.theme-item h2 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 1rem; }
.theme-item p { font-size: .88rem; }
.theme-count { color: #9b6b4c; font-size: .85rem; padding-top: .7rem; }
.theme-tools { gap: 1.5rem; }
.site-footer { background: #2c2019; color: #f7e8da; border-top: 0; padding-block: 4rem 2rem; }
.site-footer .brand { border-radius: 8px; background: #fff8ef; padding: .45rem .7rem; }
.site-footer .brand img { height: 32px; max-width: 175px; }
.site-footer p { font-size: .9rem; color: #d5bdaa; }
.site-footer strong { color: #ffbd8d; font-size: .85rem; }
.site-footer .footer-links { gap: .8rem; }
.site-footer .footer-links a { color: #dfc9b8; font-size: .88rem; text-decoration: none; }
.site-footer .footer-links a:hover { color: #ffb480; }
.footer-bottom { border-top: 1px solid #ffffff17; color: #ba9f8a; font-size: .78rem; }
.table-scroll { scrollbar-width: thin; scrollbar-color: #e0ba99 #fff7ee; }
th { font-weight: 600; color: #9b5f36; background: #fff7f0; }
td { color: #725644; }
th,td { border-color: #efe2d7; }
caption { color: #8c6d55; font-size: .8rem; }
@media(max-width:1080px) {
  .nav-links { border: 1px solid #e9d6c5; border-radius: 12px; box-shadow: 0 20px 50px #5931171a; padding: .75rem; background: #fffcf9; }
  .nav-links a { border: 0; }
}
@media(max-width:980px) {
  .hero-grid,.generator-shell,.workbench-grid,.content-grid,.context-lab form { grid-template-columns: 1fr; }
  .generator-controls { border-right: 0; border-bottom: 1px solid #ead7c7; }
  .generator-controls .control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .aurora-card,.aurora-card.has-image { min-height: 390px; max-height: 520px; transform: none; }
  .sidebar { position: static; }
}
@media(max-width:760px) {
  .nav-wrap { min-height: 70px; }
  .nav-links { top: 68px; }
  .brand img { height: 32px; max-width: 170px; }
  h1,.theme-hero h1 { font-size: clamp(2.5rem,10.5vw,3.8rem); max-width: 16ch; }
  .hero { padding-block: 3.5rem; }
  .section { padding-block: 3rem; }
  .card { padding: 1.4rem; }
  .name-results { grid-template-columns: 1fr; }
  .name-card { padding: 1.5rem; }
  .name-card .button-row { margin-top: .9rem; }
  .generator-controls { padding: 1.3rem; }
  .generator-shell,.finder { box-shadow: var(--shadow); border-radius: 16px; }
  .aurora-card,.aurora-card.has-image { min-height: 300px; border-radius: 18px; }
  .aurora-card .hero-image { border-radius: 18px; }
  .preset-row { gap: .5rem; }
  .preset-row .button { padding: .65rem .85rem; font-size: .76rem; }
  .section-head { gap: 1rem; }
  .workbench-grid { margin-top: 1.5rem; }
  .site-footer { padding-top: 3rem; }
}

/* Navegación lateral: todos los destinos son páginas reales. */
.header-shortcuts { display:flex; align-items:center; gap:1.5rem; margin-right:1rem; }
.header-shortcuts a { font-size:.86rem; color:#6e5545; text-decoration:none; font-weight:600; }
.header-shortcuts a:hover { color:#ae431a; }
.drawer-trigger { display:inline-flex; align-items:center; gap:1.1rem; padding:.8rem 1.15rem; background:#c14b1b; color:white; border:0; border-radius:11px; font-weight:650; font-size:.88rem; }
.drawer-trigger:hover { background:#a13a13; }
.menu-lines { display:block; position:relative; width:18px; height:12px; border-block:1.5px solid currentColor; }
.menu-lines::after { content:''; position:absolute; top:4px; left:5px; width:13px; border-top:1.5px solid currentColor; }
.drawer-active { overflow:hidden; }
.site-drawer { position:fixed; inset:0 0 0 auto; width:min(660px,100%); height:100dvh; max-width:100%; max-height:none; margin:0; padding:0; border:0; border-left:1px solid #ead4c1; background:#fffaf5; color:#412c20; overflow-y:auto; overscroll-behavior:contain; box-shadow:-15px 0 80px #351c1726; }
.site-drawer[open] { animation:drawer-in .26s cubic-bezier(.2,.7,.2,1); }
.site-drawer[open].is-closing { animation:drawer-out .18s ease-in forwards; }
.site-drawer::backdrop { background:#2d1b1466; backdrop-filter:blur(4px); }
.drawer-top { display:flex; justify-content:space-between; align-items:flex-start; gap:1.5rem; padding:2.25rem 2.25rem 1.5rem; }
.drawer-top .eyebrow { font-size:.6rem; letter-spacing:.11em; }
.drawer-top .eyebrow::before { display:none; }
.drawer-top h2 { font-size:2rem; font-weight:650; margin:.7rem 0 0; }
.drawer-close { background:#fff; border:1px solid #e7d6c7; color:#8f5333; width:40px; height:40px; border-radius:50%; font-size:1.65rem; flex:none; line-height:1; }
.drawer-close:hover { background:#ffe9d8; }
.drawer-search { padding:0 2.25rem 1.6rem; }
.drawer-search label { display:block; font-size:.75rem; color:#91705b; margin-bottom:.55rem; }
.drawer-search>div { display:flex; background:#fff; border:1px solid #e5d0bd; border-radius:10px; padding:.3rem; }
.drawer-search input { border:0; box-shadow:none; background:transparent; flex:1; min-width:0; font-size:.84rem; }
.drawer-search button { border:0; border-radius:7px; background:#fff0e3; color:#a54b21; font-size:.78rem; padding:.6rem .8rem; font-weight:650; }
.drawer-featured { display:grid; grid-template-columns:1fr 1fr; gap:1rem; padding:0 2.25rem 1.8rem; }
.drawer-featured a { text-decoration:none; background:#ffeddd; border:1px solid #f0d3bb; padding:1.2rem; border-radius:12px; }
.drawer-featured a:nth-child(2) { background:#fff; }
.drawer-featured span { font-size:.6rem; letter-spacing:.1em; color:#ac7753; display:block; }
.drawer-featured strong { display:block; font-size:1.08rem; color:#7b3e20; margin:.65rem 0 .35rem; }
.drawer-featured small { display:block; color:#9c775e; font-size:.73rem; line-height:1.6; }
.drawer-section { padding:1.7rem 2.25rem; border-top:1px solid #efdfd0; }
.drawer-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.drawer-section h3 { font-size:.88rem; margin:0; font-weight:650; color:#71503b; }
.drawer-section-heading>a { color:#a6532b; font-size:.72rem; text-decoration:none; }
.drawer-contexts { display:grid; grid-template-columns:1fr 1fr; gap:.1rem 1.5rem; }
.drawer-contexts>a { display:flex; align-items:center; gap:.7rem; padding:.85rem 0; border-bottom:1px solid #f0e3d7; font-size:.83rem; text-decoration:none; color:#78563e; }
.drawer-contexts>a>span:last-child { margin-left:auto; color:#b4774c; }
.drawer-contexts .drawer-number { font-size:.65rem; color:#b6977f; font-variant-numeric:tabular-nums; }
.drawer-contexts>a:hover { color:#b1461b; transform:translateX(3px); }
.drawer-picks { display:grid; margin-top:.8rem; }
.drawer-picks a { display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; font-size:.83rem; color:#8d5c3e; text-decoration:none; }
.drawer-picks a:hover { color:#bd4b1c; }
.drawer-bottom { padding:1.75rem 2.25rem; background:#f6ede4; border-top:1px solid #ecdbcd; }
.drawer-bottom nav { display:flex; flex-wrap:wrap; gap:.65rem 1.3rem; }
.drawer-bottom a { font-size:.74rem; color:#8a684e; text-decoration:none; }
.drawer-bottom p { font-size:.7rem; color:#ad8a6e; margin:1rem 0 0; }
@keyframes drawer-in { from{transform:translateX(100%)}to{transform:translateX(0)} }
@keyframes drawer-out { from{transform:translateX(0)}to{transform:translateX(100%)} }
@media(max-width:760px) {
 .header-shortcuts { display:none; }
 .drawer-trigger { padding:.65rem .9rem; font-size:.8rem; }
 .drawer-top { padding:1.5rem 1.25rem 1.25rem; }
 .drawer-top h2 { font-size:1.7rem; }
 .drawer-search { padding:0 1.25rem 1.3rem; }
 .drawer-featured { padding:0 1.25rem 1.4rem; gap:.65rem; }
 .drawer-featured a { padding:.95rem; }
 .drawer-featured strong { font-size:.95rem; }
 .drawer-section { padding:1.4rem 1.25rem; }
 .drawer-contexts { gap:0 1rem; }
 .drawer-contexts>a { font-size:.78rem; }
 .drawer-bottom { padding:1.5rem 1.25rem; }
}
@media(prefers-reduced-motion:reduce) { .site-drawer[open],.site-drawer[open].is-closing{animation:none;} }

.workflow-section { padding-top:2.8rem; padding-bottom:2.5rem; }
.workflow-shell { border:1px solid #e8d0bd; border-radius:20px; padding:clamp(1.3rem,3vw,2.5rem); background:#fffdf9; box-shadow:0 15px 45px #703c1809; }
.workflow-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; border-bottom:1px solid #efdfd1; padding-bottom:1.5rem; margin-bottom:1.7rem; }
.workflow-heading h2 { font-size:clamp(1.65rem,2.7vw,2.25rem); max-width:32ch; margin:.75rem 0; }
.workflow-heading p { max-width:80ch; color:#8b654a; font-size:.9rem; margin:0; }
.workflow-case-link { flex:none; color:#a45229; font-size:.8rem; margin-top:1.7rem; text-decoration:none; }
.workflow-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.workflow-field { align-content:start; min-width:0; }
.workflow-field label { font-size:.75rem; text-transform:none; letter-spacing:0; }
.workflow-field.field-wide { grid-column:span 2; }
.workflow-field input,.workflow-field select,.workflow-field textarea { min-width:0; width:100%; padding:.8rem; font:inherit; font-size:.86rem; border:1px solid #dfcdbb; border-radius:9px; color:#5b3e28; background:#fff; }
.workflow-field textarea { resize:vertical; min-height:85px; line-height:1.65; }
.workflow-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.6rem; }
.workflow-error { color:#ae2f16; font-size:.86rem; min-height:1.2rem; }
.workflow-export { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; border-top:1px solid #efdfd1; padding-top:1rem; color:#9b785d; font-size:.75rem; }
.workflow-export small { flex-basis:100%; font-size:.72rem; color:#a0856d; }
.workflow-report { border-top:1px solid #eddbc9; margin-top:1.5rem; padding-top:.6rem; }
.workflow-summary { font-size:.8rem; color:#a1643a; }
.workflow-table { border:1px solid #e8d8c8; border-radius:12px; margin:1.2rem 0; background:#fff; }
.workflow-table table { font-size:.82rem; }
.workflow-table caption { background:#fff4e9; color:#97613d; padding:.9rem 1rem; margin:0; font-size:.85rem; font-weight:600; }
.workflow-table th,.workflow-table td { padding:.8rem 1rem; min-width:100px; max-width:340px; overflow-wrap:anywhere; }
.workflow-table th { color:#916341; background:#fffbf6; }
.workflow-notes { color:#9c7b62; padding-left:1.3rem; font-size:.8rem; line-height:1.8; }
.generator-disclosure { width:min(calc(100% - 3rem),var(--max)); margin:0 auto 2.5rem; border:1px solid #e5d5c7; border-radius:14px; background:#fffaf4; }
.generator-disclosure>summary { padding:1.2rem 1.5rem; color:#98643e; font-weight:600; cursor:pointer; }
.generator-disclosure>.section>.container { width:calc(100% - 2.5rem); }
.case-fixture { border-left:3px solid #df8c52; border-radius:0 12px 12px 0; background:#fff2e6; padding:1rem 1.5rem; }
.case-fixture h3 { font-size:.95rem; margin-top:1rem; }
.case-fixture p { font-size:.95rem; }
@media(max-width:980px) { .workflow-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-heading{display:block}.workflow-case-link{display:inline-block;margin-top:1rem} }
@media(max-width:600px) { .workflow-fields{grid-template-columns:1fr}.workflow-field.field-wide{grid-column:auto}.workflow-shell{border-radius:14px}.workflow-table th,.workflow-table td{font-size:.78rem;min-width:100px}.generator-disclosure{width:calc(100% - 2rem)} }


@media(max-width:420px) {
  .generator-controls .control-grid { grid-template-columns: 1fr; }
  .context-lab { padding: 1.2rem; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }

/* Texto editable en lugar de una imagen con palabras en otro idioma. */
.name-collage { position: relative; min-height: 470px; padding: 2rem; border: 1px solid #efd7c3; border-radius: 26px; background: radial-gradient(ellipse at 80% 15%,#ffd2a3 0,transparent 60%),#fff1e2; box-shadow: 0 20px 65px #a55d2c14; }
.collage-heading { display: flex; justify-content: space-between; gap: 1rem; color: #9d6b48; font-size: .62rem; font-weight: 650; letter-spacing: .1em; }
.collage-note { position: relative; width: 86%; padding: 1.4rem 1.6rem; margin-top: 1.5rem; border: 1px solid #ebd5c2; border-radius: 14px; background: #ffffffec; box-shadow: 0 8px 24px #86502c0b; }
.collage-note small { display: block; font-size: .6rem; color: #a37858; font-weight: 650; letter-spacing: .08em; }
.collage-note strong { display: block; color: #713b1e; font-size: 1.85rem; font-weight: 650; letter-spacing: -.04em; margin-block: .3rem; }
.collage-note>span { color: #967253; font-size: .78rem; }
.note-one { transform: rotate(-4deg); }
.note-two { margin-top: -.25rem; margin-left: auto; transform: rotate(3deg); z-index: 2; border-color: #dcac85; background: #fffdf9; }
.note-two strong { color: #bd4e1a; }
.note-three { margin-top: -.25rem; transform: rotate(-2deg); }
.name-collage>p { color: #a97952; font-size: .75rem; margin: 1.5rem 0 0; }
.studio-banner { display: grid; grid-template-columns: minmax(0,1fr) 220px; align-items: center; gap: 3rem; padding: clamp(1.7rem,4vw,3.5rem); background: #fff0e1; border: 1px solid #efd1b9; border-radius: 22px; }
.studio-banner h2 { max-width: 23ch; margin-top: 1rem; }
.studio-banner p { color: #8f6a4e; max-width: 65ch; }
.studio-banner .button { margin-top: .8rem; }
.studio-mark { font-size: 7rem; color: #d36e30; font-weight: 650; letter-spacing: -.09em; }
.studio-mark span { display: block; font-size: 4rem; font-weight: 400; margin-top: -.7rem; text-align: center; color: #dda06e; }
.finder-result strong { display: block; color: #784c2e; }
@media(max-width:760px) {
  .name-collage { min-height: 430px; padding: 1.4rem; }
  .collage-note { padding: 1.2rem; width: 90%; }
  .collage-note strong { font-size: 1.65rem; }
  .studio-banner { grid-template-columns: 1fr; }
  .studio-mark { display: none; }
}

/* Las escenas de la portada se leen completas, sin solapamientos. */
.name-collage { min-height:0; }
.collage-note { width:94%; margin-top:1.35rem; padding:1.35rem 1.5rem; }
.collage-note>span { display:block; font-size:.84rem; line-height:1.85; color:#89674d; }
.collage-note strong { margin-block:.45rem .7rem; }
.note-one { transform:rotate(-1.2deg); }
.note-two { margin-top:1.35rem; transform:rotate(1.1deg); }
.note-three { margin-top:1.35rem; transform:rotate(-.8deg); }
.name-collage>p { line-height:1.65; font-size:.7rem; }
@media(max-width:760px) { .collage-note{width:100%;padding:1.2rem;transform:none;margin-top:1rem}.collage-note>span{font-size:.84rem}.name-collage{padding:1.25rem} }

/* Direct task entries and progressively disclosed reading. */
.tool-entry-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.5rem}
.theme-hero{padding-block:2.5rem}
.theme-hero h1{font-size:clamp(2rem,3.6vw,3.4rem);max-width:34ch;line-height:1.15}
.theme-hero .lead{max-width:78ch;font-size:1.05rem}
.generator-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}
.generator-toolbar h2{font-size:clamp(1.6rem,2.6vw,2.2rem);margin:.4rem 0}
.generator-shell{display:block}
.generator-controls{border-right:0;border-bottom:1px solid var(--line);padding:1rem 1.5rem}
.generator-settings>summary{font-weight:650;color:var(--blue-dark);cursor:pointer;padding:.5rem 0}
.generator-settings[open]>summary{margin-bottom:1.2rem}
.generator-settings h3{font-size:1.25rem}
.generator-controls .status{font-size:.82rem;line-height:1.6;margin:.6rem 0}
.name-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:1.5rem;gap:1rem;align-items:start}
.name-card{min-width:0;padding:1.25rem}
.name-card h3{font-size:1.6rem;overflow-wrap:anywhere;margin:0 0 .8rem}
.fit-label{display:inline-block;color:#276044;background:#eef7ef;border:1px solid #d0e5d4;border-radius:5px;padding:.2rem .45rem;font-size:.7rem;line-height:1.5}
.fit-label.needs-review{background:#fff1df;color:#8b461c;border-color:#efd1ae}
.result-measure{font-size:.86rem;font-weight:600;overflow-wrap:anywhere}
.result-reading{border-block:1px solid var(--line);padding:.65rem 0;margin:.85rem 0}
.result-reading>summary{font-size:.8rem;font-weight:600;cursor:pointer;line-height:1.5;color:var(--blue-dark)}
.result-reading p{font-size:.88rem;line-height:1.8;color:var(--muted);margin-top:.9rem}
.name-card .button-row{gap:.45rem;flex-wrap:wrap}
.analysis-disclosure{width:min(calc(100% - 3rem),1280px);margin:2rem auto;border:1px solid var(--line);background:#fff;border-radius:16px;overflow:clip;scroll-margin-top:110px}
.analysis-disclosure>summary,.decision-guide>summary{padding:1.2rem 1.5rem;cursor:pointer;color:var(--blue-dark);font-weight:650;line-height:1.6}
.analysis-disclosure .section{padding-block:1rem 2rem}
.analysis-disclosure .container{width:100%;padding-inline:1rem}
.decision-guide{border:1px solid var(--line);border-radius:16px;background:#fff8ef}
.decision-guide[open]{padding:0 1.5rem 1.5rem}
.decision-guide[open]>summary{padding-inline:0}
.decision-guide h2{font-size:1.65rem}
.decision-guide dl{display:grid;grid-template-columns:minmax(10rem,1fr) 3fr;gap:1rem 1.5rem}
.decision-guide dt{font-weight:650;color:var(--blue-dark)}
.decision-guide dd{margin:0;max-width:80ch}
#generar,#ajustes,#grein,#prueba-especifica{scroll-margin-top:110px}
.case-title{font-size:1.8rem}
@media(max-width:980px){.name-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.name-results{grid-template-columns:1fr;padding:1rem}.generator-controls{padding:1rem}.generator-toolbar{align-items:stretch;flex-direction:column}.theme-hero{padding-block:1.5rem}.theme-hero h1{font-size:2rem}.tool-entry-actions .button{flex:1;white-space:normal;text-align:center}.analysis-disclosure{width:calc(100% - 2rem)}.decision-guide dl{grid-template-columns:1fr;gap:.5rem}.decision-guide dd{margin-bottom:1rem}.generator-controls .control-grid{grid-template-columns:1fr}.name-card h3{font-size:1.55rem}}

.batch-context{padding:1rem 1.5rem;border-bottom:1px solid var(--line);background:#fff8ef;font-size:.9rem;line-height:1.75}
.batch-context p{max-width:95ch;margin:.5rem 0}
.worked-example{margin-block:2rem;padding-block:1rem;border-block:1px solid var(--line)}
.worked-example h2{font-size:1.65rem}
.worked-run{margin-top:1.5rem;min-width:0}
.worked-run h3{font-size:1.15rem}
.worked-run details{padding:.65rem 0}
.worked-run summary{cursor:pointer;font-weight:600;color:var(--blue-dark)}
.worked-inputs{display:grid;grid-template-columns:1fr 2fr;gap:.8rem 1rem;font-size:.85rem}
.worked-inputs dd{margin:0;min-width:0}
.worked-inputs pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:0}
.worked-run table{font-size:.82rem;min-width:34rem}
.worked-run td{overflow-wrap:anywhere;max-width:22rem;vertical-align:top}
.worked-limit{font-size:.85rem;color:var(--muted)}
[data-stale-report]{margin:0 0 1rem!important}
button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:600px){.worked-inputs{grid-template-columns:1fr}.worked-inputs dd{margin-bottom:.5rem}}

/* Tables may scroll inside a case; their intrinsic width must not widen the article. */
.content-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.content-grid>.prose,.content-grid>.sidebar{min-width:0;max-width:100%}
.worked-example,.worked-run,.worked-run .table-scroll{min-width:0;max-width:100%}
.worked-run .table-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.prose{overflow-wrap:anywhere}
@media(max-width:980px){.content-grid{grid-template-columns:minmax(0,1fr)}}
