/* Dirección A — Técnico y fiable. Tokens y reglas en DESIGN_BRIEF.md. */
:root {
  --ink: #122d47;
  --muted: #526478;
  --paper: #f7f9fb;
  --line: #d6e0e7;
  --lime: #f0b64b;
  --soft: #e9eff5;
  --accent: #174b7c;
  --navy: #112d48;
  --error: #a32a22;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Bahnschrift, 'Arial Narrow', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #b9481a; outline-offset: 5px; }
main:focus { outline: none; }
.skip { position: fixed; top: -100px; left: 16px; padding: 12px; background: white; color: var(--ink); z-index: 10; }
.skip:focus { top: 12px; }
.demo-bar { text-align: center; background: #e9eff5; color: #334f69; font: 11px/1.5 Arial, sans-serif; padding: 8px 16px; letter-spacing: .035em; }
header { max-width: 1280px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 40px; border-bottom: 1px solid var(--line); }
.brand { display: grid; grid-template-columns: 37px auto; gap: 0 10px; align-items: center; font-size: 21px; font-weight: 650; line-height: 1.2; }
.brand-icon { grid-row: span 2; background: var(--lime); color: var(--ink); display: grid; place-items: center; font: 28px/1 Arial,sans-serif; width: 37px; height: 37px; }
.brand small { font: 9px/1.8 Arial,sans-serif; letter-spacing: .1em; }
nav { display: flex; gap: 22px; font-size: 14px; }
nav a { padding: 8px 0; }
nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--accent); color: white; padding: 15px 22px; border: 1px solid var(--accent); border-radius: 2px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; max-width: 100%; }
.button:hover { background: #103b64; color: white; text-decoration: none; }
.button.small { font-size: 13px; padding: 10px 15px; gap: 20px; }
button:disabled { opacity: .65; cursor: wait; }
main { max-width: 1280px; margin: auto; padding: 0 40px 65px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px,4.7vw,64px); letter-spacing: -.025em; line-height: 1.08; font-weight: 600; margin-bottom: 26px; }
h2 { font-size: clamp(27px,3vw,36px); letter-spacing: -.025em; line-height: 1.2; font-weight: 600; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
p { color: var(--muted); }
.eyebrow { display: block; font: 700 11px/1.5 Arial,sans-serif; letter-spacing: .13em; margin-bottom: 20px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 55px; padding: 52px 40px; margin: 0 -40px; background: var(--navy); color: white; min-height: 470px; }
.hero h1 { font-size: clamp(56px,6vw,78px); font-weight: 600; }
.hero .eyebrow { color: #b9d0e6; }
.hero-copy > p { font-size: 17px; color: #c5d5e4; max-width: 520px; }
.hero .button { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero .button:hover { background: #ffd17d; }
.hero-note { display: block; color: #c5d5e4; font-size: 12px; margin-top: 17px; }
.hero-art, .service-illustration { position: relative; background-color: var(--navy); background-image: linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size: 24px 24px; border: 1px solid #7c98b0; color: #c5def4; }
.hero-art { min-height: 345px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 40px 18px; gap: 12px; }
.art-label { position: absolute; top: 15px; left: 18px; font: 10px/1.4 Consolas,monospace; letter-spacing: .04em; }
.appliance { width: 100px; max-width: 100%; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.appliance.large { width: 225px; }
.art-caption { font-size: 14px; color: #c5d5e4; }
.art-caption strong { display: block; color: white; margin-top: 12px; font-size: 16px; font-weight: 500; }
.sheet-corner { position: absolute; bottom: 12px; left: 18px; font: 9px/1.4 Consolas,monospace; }
.section { padding: 45px 0; }
.home-services { padding: 35px 0 30px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 23px; }
.section-title h2 { margin-bottom: 0; font-size: 28px; }
.section-title .eyebrow { margin-bottom: 0; font: 11px/1.5 Consolas,monospace; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.service-tile { min-width: 0; }
.service-card { display: flex; align-items: center; gap: 14px; border: 1px solid #8b9fb0; background: white; padding: 22px 16px; min-height: 140px; }
.service-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); text-decoration: none; }
.card-art { position: relative; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.card-art .appliance { width: 76px; }
.card-art > span { position: absolute; top: -8px; left: 0; font: 9px/1 Consolas,monospace; color: var(--muted); }
.card-copy { flex: 1; min-width: 0; }
.card-copy h3 { display: flex; justify-content: space-between; gap: 10px; font-size: 23px; margin-bottom: 7px; }
.card-copy h3 span { font-size: 18px; font-weight: 400; }
.card-copy p { font-size: 13px; margin: 0; }
.service-details { display: inline-block; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; }
.fee-strip { padding: 20px 24px; background: #edf1f5; border-left: 4px solid #b07516; display: flex; gap: 24px; align-items: baseline; font-size: 14px; }
.fee-strip p { margin: 0; }
.process { padding: 45px 0; margin-top: 28px; border-top: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; padding: 0; margin: 32px 0; }
.steps b { display: block; font: 13px/1.5 Consolas,monospace; color: var(--accent); border-top: 1px solid #91a6b9; padding-top: 18px; margin-bottom: 22px; }
.steps p { font-size: 14px; }
.text-link { display: inline-block; border-bottom: 1px solid var(--accent); padding: 4px 0; font-size: 14px; }
.coverage { background: var(--soft); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 35px; margin-top: 35px; border-top: 3px solid var(--accent); }
.towns { list-style: none; padding: 0; margin: 0 0 18px; }
.towns li { border-bottom: 1px solid #bdcbd7; padding: 8px 0; font-size: 15px; }
.muted { font-size: 13px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 35px max(5%,calc((100vw - 1200px)/2)); display: flex; gap: 40px; justify-content: space-between; background: var(--navy); color: white; font-size: 13px; }
footer strong { font-size: 20px; }
footer p { color: #c5d5e4; margin: 8px 0; }
footer a { display: block; margin-bottom: 8px; }
footer small, .footer-note { font: 10px/1.7 Consolas,monospace; letter-spacing: .04em; color: #c5d5e4; }
.page-heading { padding: 50px 0 28px; max-width: 850px; }
.page-heading .eyebrow { color: var(--accent); }
.page-heading p { max-width: 680px; font-size: 18px; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 50px; }
.soft-panel { background: var(--soft); padding: 30px; border-top: 3px solid var(--accent); }
.soft-panel h2 { font-size: 28px; }
.service-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 45px; align-items: center; padding-bottom: 35px; }
.service-illustration { text-align: center; padding: 35px; margin-top: 35px; }
.service-illustration .appliance { width: 240px; }
.faults { padding-left: 20px; }
.faults li { padding: 12px 0; border-bottom: 1px solid var(--line); }
dt { font-size: 13px; font-weight: 600; }
dd { margin: 0 0 15px; color: var(--muted); }
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); gap: 45px; }
.form-layout aside { background: var(--soft); padding: 28px; align-self: start; border-top: 3px solid var(--accent); }
.form-layout aside h2 { font-size: 26px; }
.form-layout aside p { font-size: 14px; }
.form-layout > form { background: white; padding: 28px; border: 1px solid #91a6b9; }
hr { border: 0; border-top: 1px solid #bdcbd7; margin: 25px 0; }
label { display: block; font-size: 15px; font-weight: 600; margin: 18px 0 7px; }
label span { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #677f95; background: white; color: var(--ink); border-radius: 2px; padding: 12px; min-height: 48px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #5a6c7d; font-size: 14px; }
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.error, #errors { color: var(--error); font-size: 14px; }
.error { margin: 5px 0 0; }
.error:empty { display: none; }
[aria-invalid=true] { border: 2px solid var(--error); }
.required-note { font-size: 13px; }
.confirmation { max-width: 760px; margin: 55px auto; padding: 35px; border-top: 4px solid var(--accent); background: white; }
.confirmation h1 { font-size: 48px; }
.confirm-icon { display: grid; place-items: center; background: var(--soft); color: var(--accent); border: 1px solid var(--accent); width: 54px; height: 54px; font-size: 27px; margin-bottom: 25px; }
.confirmation .text-link { display: block; width: fit-content; margin-top: 24px; }
.standalone { margin: 0; padding-top: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media(max-width:1050px) {
  header { flex-wrap: wrap; } nav { order: 3; width: 100%; justify-content: center; }
  .hero { gap: 30px; } .hero-art { grid-template-columns: 1fr; min-height: 340px; text-align: center; }
  .hero-art .appliance { width: 165px; justify-self: center; } .art-caption { font-size: 12px; }
  .art-caption strong { font-size: 14px; margin-top: 5px; }
  .service-card { flex-direction: column; align-items: stretch; } .card-art { justify-content: flex-start; }
  .card-art .appliance { width: 65px; } .card-copy h3 { font-size: 21px; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); } .coverage { gap: 30px; }
}
@media(max-width:650px) {
  header { padding: 18px 22px; gap: 18px; } .brand { font-size: 18px; grid-template-columns: 32px auto; gap: 0 8px; }
  .brand-icon { width: 32px; height: 32px; font-size: 25px; } .brand small { font-size: 8px; }
  .button.small { font-size: 12px; padding: 10px 12px; gap: 10px; }
  nav { gap: 10px 20px; justify-content: flex-start; flex-wrap: wrap; font-size: 13px; }
  main { padding: 0 22px 40px; }
  .hero { margin: 0 -22px; padding: 32px 22px 0; grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .hero h1 { font-size: 54px; } .hero-copy > p { font-size: 15px; } .hero-note { font-size: 12px; }
  .hero-art { grid-template-columns: 1fr 1.3fr; min-height: 180px; padding: 35px 16px 25px; text-align: left; gap: 15px; border-bottom: 0; }
  .hero-art .appliance { width: 110px; } .art-label { font-size: 9px; top: 12px; left: 12px; } .sheet-corner { font-size: 8px; bottom: 8px; left: 12px; }
  .art-caption { font-size: 12px; } .art-caption strong { font-size: 14px; }
  .section { padding: 32px 0; } .section-title { display: block; } .section-title h2 { font-size: 27px; }
  .section-title .eyebrow { margin-top: 15px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; } .service-card { flex-direction: row; align-items: center; gap: 20px; padding: 17px; min-height: 116px; }
  .card-art .appliance { width: 63px; } .card-copy h3 { font-size: 23px; } .service-details { padding: 10px 0; font-size: 13px; }
  .fee-strip { display: block; padding: 20px; font-size: 14px; } .fee-strip p { margin-top: 8px; }
  .coverage, .two-col, .service-hero, .form-layout { grid-template-columns: 1fr; gap: 25px; }
  .coverage { padding: 25px 22px; margin-top: 25px; } .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps b { margin-bottom: 15px; } .process { padding: 30px 0; } .page-heading { padding: 35px 0 22px; }
  .page-heading p { font-size: 16px; } .service-hero { gap: 5px; } .service-illustration { padding: 25px; margin-top: 10px; }
  .service-illustration .appliance { width: 170px; } .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-layout aside { padding: 22px; } .form-layout > form { padding: 22px 18px; } .soft-panel { padding: 25px; }
  footer { flex-direction: column; gap: 25px; padding: 30px 22px; } .confirmation { margin: 35px auto; padding: 26px 22px; }
  .confirmation h1 { font-size: 37px; } .demo-bar { font-size: 10px; }
  h1,h2,h3,p,a,dd { overflow-wrap: break-word; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; transition: none!important; } }
/* Foco de alto contraste sobre superficies oscuras. */
.hero :focus-visible, footer :focus-visible { outline-color: var(--lime); }
@media(max-width:650px) {
  header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px 12px; }
  header .brand { font-size: 17px; min-width: 0; }
  header .brand small { font-size: 7px; }
  header .button.small { font-size: 11px; gap: 8px; padding: 10px; }
  header nav { grid-column: 1 / -1; gap: 10px 15px; font-size: 12px; justify-content: space-between; }
}
/* El wordmark comparte las proporciones y el espacio de la cabecera original. */
header .brand.brand-lockup { display: block; width: clamp(140px, 16vw, 184px); max-width: 100%; }
.brand-lockup img, .footer-brand, .document-brand { display: block; width: 100%; height: auto; }
.footer-brand, .document-brand { width: 160px; max-width: 100%; }
.invoice-brand { display: block; color: #122d47; }
