/* =====================================================================
   Sistema visual provisional
   Paleta: tinta (#13202E), acero (#4B5B6C), niebla (#EEF2F5),
           azul cubierta de cable (#1F5FA0), amarillo etiqueta (#F3C33B)
   Tipografía: Archivo (variable: peso y anchura) · IBM Plex Mono solo
               para identificadores de cable.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #13202e;
  --ink-2: #1c2d40;
  --steel: #4b5b6c;
  --muted: #5a6876;
  --line: #d5dce3;
  --field: #7a8796;
  --fog: #eef2f5;
  --paper: #ffffff;
  --blue: #1f5fa0;
  --blue-deep: #174878;
  --tag: #f3c33b;
  --tag-soft: #fff4cc;
  --error: #b42318;
  --ok: #067647;
  --wa: #177A43;
  --wa-deep: #11613A;
  --radius: 6px;
  --radius-lg: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.4rem);
  --step-4: clamp(2.15rem, 1.3rem + 3.6vw, 3.6rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-stretch: 112%; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 760; max-width: 18ch; }
h2 { font-size: var(--step-3); font-weight: 720; max-width: 26ch; }
h3 { font-size: var(--step-1); font-weight: 680; font-stretch: 106%; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tag); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* Marcador de dato pendiente */
.ph { background: var(--tag-soft); color: #5c4300; outline: 1px dashed #b88a00; padding: 0 0.3em; border-radius: 3px; font-weight: 600; }

/* ------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: var(--radius);
  font: inherit; font-weight: 680; font-stretch: 104%; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-sm { min-height: 42px; padding: 0.5em 1em; font-size: var(--step--1); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-tag { background: var(--tag); color: var(--ink); }
.btn-tag:hover { background: #e2b12c; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }

/* ------------------------------------------------------------ cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .logo-mark { flex: none; }
.nav-cta { white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-name { font-weight: 760; font-stretch: 112%; font-size: 1.05rem; }
.brand-desc { font-size: 0.78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { display: block; white-space: nowrap; padding: 10px 10px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.97rem; border-radius: var(--radius); }
.site-nav ul a:hover { background: var(--fog); }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius);
    font: inherit; font-weight: 650; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
  }
  .no-js .site-nav { position: static; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); padding-left: 14px; }
  .header-inner { position: relative; }
  .nav-toggle { flex: none; }
}
@media (max-width: 420px) {
  .brand-desc { display: none; }
  .brand-text > .brand-name { font-size: 0.95rem; font-stretch: 100%; white-space: normal; overflow: visible; }
}

/* ------------------------------------------------------------ hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-area { margin-top: 1.25rem; color: var(--muted); font-size: var(--step--1); }
.hero-figure { margin: 0; }
.hero-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.hero-panel { width: 100%; max-width: 540px; margin-left: auto; display: block; }
.hero-plano { border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(19, 32, 46, 0.45); }
.hp-num { font: 500 7px var(--mono); fill: #9fb0c2; text-anchor: middle; }
.hp-pp { font: 500 9px var(--mono); fill: var(--steel); text-anchor: end; }
.hp-id { font: 500 9.6px var(--mono); fill: var(--ink); text-anchor: middle; }
.cable { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hp-room { font: 600 11px var(--mono); fill: #8FA3B8; letter-spacing: 0.06em; }
.hp-chip { font: 700 12px var(--mono); fill: var(--ink); text-anchor: middle; }
.hp-port { font: 700 11px var(--mono); fill: #FFFFFF; }
.hp-unit { font: 600 9px var(--mono); fill: #D6E4F2; }
.hp-pname { font: 500 9.5px var(--font); fill: #B8C9DA; }
.hp-rack-sub { font: 500 10px var(--mono); fill: #8FA3B8; }
.hp-rack { font: 700 12.5px var(--mono); fill: #FFFFFF; letter-spacing: 0.04em; }
.hp-pulse { stroke-dasharray: 0 1; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .cable { stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
  .js .cables .cable:nth-child(4n+2) { animation-delay: 0.08s; }
  .js .cables .cable:nth-child(4n+3) { animation-delay: 0.16s; }
  .js .cables .cable:nth-child(4n) { animation-delay: 0.24s; }
  .js .hp-tag { opacity: 0; animation: tagin 0.4s ease-out forwards; }
  .js .hp-tag.t0 { animation-delay: 1.3s; }
  .js .hp-tag.t1 { animation-delay: 1.45s; }
  .js .hp-tag.t2 { animation-delay: 1.6s; }
  .js .hp-tag.t3 { animation-delay: 1.75s; }
  .js .hp-tag.t4 { animation-delay: 1.9s; }
  .js .hp-tag.t5 { animation-delay: 2.05s; }
  .js .hp-led { animation: blink 1.6s steps(2, jump-none) infinite; }
  .js .hp-led.l1 { animation-delay: .3s; } .js .hp-led.l2 { animation-delay: .7s; } .js .hp-led.l3 { animation-delay: .2s; } .js .hp-led.l4 { animation-delay: .9s; } .js .hp-led.l5 { animation-delay: .5s; }
  .js .hp-pulse { opacity: 1; stroke-dasharray: 0.07 0.93; stroke-dashoffset: 0.07; animation: pulse 4.2s linear infinite; }
  .js .hp-pulse.p0 { animation-delay: 1.6s; }
  .js .hp-pulse.p1 { animation-delay: 2.3s; }
  .js .hp-pulse.p2 { animation-delay: 3.0s; }
  .js .hp-pulse.p3 { animation-delay: 3.7s; }
  .js .hp-pulse.p4 { animation-delay: 4.4s; }
  .js .hp-pulse.p5 { animation-delay: 5.1s; }
}
@keyframes pulse { 0% { stroke-dashoffset: 0.07; } 70%, 100% { stroke-dashoffset: -0.93; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .45; } }
@keyframes tagin { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; margin: 0 auto; }
  .hero-figure figcaption { text-align: center; }
}

/* ------------------------------------------------------------ secciones */
.section { padding: clamp(40px, 5.5vw, 72px) 0; }
.audiences { padding-top: clamp(32px, 5vw, 56px); }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.section-fog { background: var(--fog); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); }
.more { margin-top: 1.5rem; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .two-col, .section-head { grid-template-columns: 1fr; } }

.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; }
.page-thanks { border-bottom: 0; min-height: 50vh; }

/* Recorridos empresa / particular */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; }
.aud { padding: clamp(28px, 4vw, 48px); }
.aud h2 { font-size: var(--step-2); }
.aud-b2b { background: var(--ink); color: #fff; }
.aud-b2b p { color: #d5dee8; }
.aud-b2c { background: var(--fog); }
.aud .btn { margin-top: 1rem; }
@media (max-width: 860px) { .aud-grid { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: ""; position: absolute; left: 0.1em; top: 0.55em; width: 0.75em; height: 0.4em; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.aud-b2b .ticks li::before { border-color: var(--tag); }

/* Lista de servicios en inicio */
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); }
.svc-row { border-top: 1px solid var(--line); padding: 20px 0 8px; margin: 0; }
.svc-row h3 { margin-bottom: 0.3em; }
.svc-row h3 a { color: var(--ink); text-decoration: none; }
.svc-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.svc-row p { color: var(--muted); margin-bottom: 0.6em; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

.badge { display: inline-block; font-size: 0.8rem; font-weight: 650; color: #5c4300; background: var(--tag-soft); border: 1px solid #e6c766; border-radius: 4px; padding: 2px 8px; margin: 0; }

/* Método */
.method-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.id-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.25rem 0 0.5rem; }
.id-chip { font: 500 1rem var(--mono); background: var(--tag); color: var(--ink); padding: 6px 10px; border-radius: 3px; }
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin: 0; }
.method dt { font-weight: 700; font-stretch: 108%; font-size: var(--step-1); margin-bottom: 4px; }
.method dd { margin: 0; color: var(--ink-2); }
.method-3 { grid-template-columns: repeat(3, 1fr); }
.method-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .method-grid { grid-template-columns: 1fr; } .method-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .method, .method-3, .method-4 { grid-template-columns: 1fr; } }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 16px; margin: 0; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-stretch: 120%; font-size: 2.4rem; line-height: 1; color: var(--blue); margin-bottom: 10px; }
.steps p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.zones { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zones li { background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 4px; margin: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 650; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 16px; color: var(--ink-2); }

/* Banda CTA final */
.cta-band { background: var(--blue); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: #e3edf8; margin: 0; }
.cta-band .cta-pair { margin: 0; }

/* ------------------------------------------------------------ servicios */
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 0; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: var(--step--1); font-weight: 600; }
.toc a:hover { border-color: var(--blue); color: var(--blue); }
.svc-stack { padding-top: 16px; }
.svc { padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 1rem; }
.svc-grid h3 { font-size: 1rem; font-stretch: 100%; color: var(--steel); margin: 0 0 0.4em; }
.svc-grid p, .svc-grid ul { font-size: 0.98rem; }
.svc-grid > div > h3:not(:first-child) { margin-top: 1.4em; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; gap: 8px; } }

.note { background: var(--fog); border-left: 4px solid var(--steel); padding: 12px 16px; font-size: 0.95rem; max-width: 72ch; }
.note-warn { background: var(--tag-soft); border-left-color: #b88a00; }
.callout { background: var(--fog); border-left: 4px solid var(--blue); padding: 18px 22px; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; max-width: 78ch; }
.callout h3 { margin-bottom: 0.3em; }
.callout p:last-child { margin-bottom: 0; }
.callout-plain { margin-top: 0; }

/* Particulares */
.situations { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 1.5rem 0 0; }
.situations > div { border-top: 1px solid var(--line); padding: 18px 0; }
.situations dt { font-weight: 700; font-size: var(--step-1); font-stretch: 106%; margin-bottom: 4px; }
.situations dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .situations { grid-template-columns: 1fr; } }

/* Trabajos */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 1.5rem; }
.example { margin: 0; }
.ex-ill { width: 100%; border-radius: var(--radius-lg); }
.example figcaption { padding-top: 12px; }
.ill-tag { display: inline-block; font-size: 0.75rem; font-weight: 650; color: var(--steel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; margin-bottom: 6px; }
.works { display: grid; gap: 48px; }
.work-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.work-photos img { border-radius: var(--radius); }
@media (max-width: 700px) { .examples { grid-template-columns: 1fr; } }

/* Sobre mí */
.about-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.profile-photo { border-radius: var(--radius-lg); width: 100%; }
.photo-ph { aspect-ratio: 4 / 5; background: var(--fog); border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .photo-ph { max-width: 280px; } }

/* ------------------------------------------------------------ formularios */
.section-form { background: var(--fog); }
.form-wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-intro h2 { font-size: var(--step-2); }
.contact-lines { list-style: none; padding: 0; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.lead-form { background: var(--paper); padding: clamp(20px, 4vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.req { font-weight: 400; color: var(--muted); font-size: 0.85em; }
.hint { font-size: 0.88rem; color: var(--muted); margin: -2px 0 6px; }
.hint-group { margin: -6px 0 14px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); }
.field-check label { font-weight: 450; }
.field-check .field-error { grid-column: 1 / -1; }
.privacy-info { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.form-actions { margin-top: 8px; }
.form-summary { background: #fef3f2; border: 1px solid #f4b4ae; color: var(--error); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); }
.form-status.is-error { background: #fef3f2; border: 1px solid #f4b4ae; color: #7a1a12; }
.form-status.is-sending { background: var(--fog); color: var(--ink); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ pie */
.site-footer { background: var(--ink); color: #c9d3de; padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer a:not(.btn) { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-h { font-size: 0.95rem; font-stretch: 100%; color: #fff; margin-bottom: 12px; }
.brand-invert { color: #fff; margin-bottom: 12px; }
.brand-invert:hover { color: #fff; }
.brand-invert .logo-mark rect { fill: #fff; }
.brand-invert .logo-mark path:first-of-type { stroke: var(--ink); }
.footer-base { border-top: 1px solid #2c3e52; margin-top: 40px; padding-top: 20px; font-size: 0.85rem; }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
}

/* WhatsApp: enlace en contacto y botón flotante */
.wa-link { display: inline-flex; align-items: center; gap: 6px; }
.wa-link .chat-icon { flex: none; }
.wa-float {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 650; font-size: var(--step--1);
  border-radius: 999px; box-shadow: 0 4px 14px rgba(19, 32, 46, 0.22);
}
.wa-float:hover { background: var(--wa-deep); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-footer .footer-base { padding-bottom: 72px; }
@media (max-width: 420px) {
  .wa-float { padding: 0; width: 52px; justify-content: center; }
  .wa-float-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa-float { display: none; } }

/* ---------- Portada orientada a cliente final (v5) ---------- */
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); margin: 0 0 0.75rem; }
.price-chip { margin: 1.1rem 0 0; }
.price-chip a { display: inline-block; background: var(--tag-soft); border: 1px solid #e6c766; color: var(--ink); font-weight: 650; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: var(--step--1); }
.price-chip a:hover { background: var(--tag); }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); display: inline-flex; align-items: center; gap: 8px; }
.btn-wa:hover { background: var(--wa-deep); border-color: var(--wa-deep); color: #fff; }
.btn-wa .chat-icon { flex: none; }
.assure { margin: 1.25rem 0 0; display: grid; gap: 4px; font-size: var(--step--1); color: var(--steel); }
.assure li { margin: 0; }
.section-tight-top { padding-top: clamp(24px, 4vw, 40px); }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 1.5rem; }
.who-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; background: var(--paper); }
.who-card h3 { font-size: var(--step-1); margin-top: 0; }
.who-card .ticks { margin: 0.5rem 0 1.25rem; }
.who-link { margin-top: auto; font-weight: 650; color: var(--blue); text-decoration: none; }
.who-link:hover { text-decoration: underline; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 1.5rem; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.price-card.is-main { border: 2px solid var(--blue); }
.price-card h3 { margin-top: 0; font-size: var(--step-0); }
.price { font-size: var(--step-3); font-weight: 750; color: var(--ink); margin: 0.25rem 0 0.5rem; line-height: 1.1; }
.price-from { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.price-unit { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.price-quote { font-size: var(--step-1); }
.price-card p:last-child { margin-bottom: 0; color: var(--steel); }
.price-note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--steel); max-width: 80ch; }
.req-note { max-width: 80ch; }
#precios .cta-pair { margin-top: 1.25rem; }
.aud-solo { border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.aud-solo .ticks { margin-top: 0; }
@media (max-width: 1060px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; } .aud-solo { grid-template-columns: 1fr; gap: 8px; } }

.aud-reforma { background: var(--tag-soft); border: 1px solid #e6c766; }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* Foto de perfil */
.brand-photo { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.me-card { display: flex; align-items: center; gap: 12px; margin-top: 1.25rem; }
.me-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--blue); flex: none; }
.me-card p { margin: 0; }
.me-title { font-weight: 700; color: var(--ink); }
.me-sub { font-size: var(--step--1); color: var(--steel); }
.profile-photo { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }
@media (max-width: 800px) { img.profile-photo { max-width: 320px; } }

/* ---------- Ilustraciones y dinamismo (v8) ---------- */
.illus { display: block; width: 100%; height: auto; }
.section-flush { padding-top: 0; }
.who-card { padding: 0; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.who-card > :not(.who-fig) { margin-left: 22px; margin-right: 22px; }
.who-card .who-link { margin-bottom: 22px; }
.who-fig { margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.who-fig .illus { border-radius: 0; }
.who-card:hover, .mat-card:hover, .price-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(19, 32, 46, .45); }
.price-card { transition: transform .25s ease, box-shadow .25s ease; }
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 12px 16px; transition: transform .25s ease, box-shadow .25s ease; }
.mat-card .illus { border-radius: 10px; margin-bottom: 12px; }
.mat-card h3 { font-size: var(--step-0); margin: 0 6px 4px; }
.mat-card p { margin: 0 6px; font-size: var(--step--1); color: var(--steel); }
@media (max-width: 900px) { .mat-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 520px) { .mat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .mat-card { padding: 8px 8px 12px; } .mat-card p { display: none; } .mat-card h3 { font-size: .95rem; } }
.ico { width: 28px; height: 28px; flex: none; color: var(--blue); }
.method-ico dt { display: flex; align-items: center; gap: 10px; }
.method-ico dd { padding-left: 38px; }
.steps-ico li::before { display: none; }
.step-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 10px; position: relative; }
.step-ico .ico { width: 28px; height: 28px; }
.steps-ico li { counter-increment: step; }
.steps-ico .step-ico::after { content: counter(step); position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.zones-ico li { display: inline-flex; align-items: center; gap: 6px; }
.zones-ico .ico { width: 16px; height: 16px; }
.situations dt { display: flex; align-items: center; gap: 10px; }
.situations dd { padding-left: 38px; }
.ph-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ph-fig .illus { border-radius: var(--radius-lg); box-shadow: 0 18px 40px -24px rgba(19, 32, 46, .45); }
@media (max-width: 860px) { .ph-grid { grid-template-columns: 1fr; } .ph-fig { max-width: 420px; } }
.svc-has-fig { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.svc-fig { position: sticky; top: 96px; }
.svc-fig .illus { border-radius: var(--radius-lg); }
@media (max-width: 900px) { .svc-has-fig { grid-template-columns: 1fr; } .svc-fig { position: static; max-width: 360px; } }
/* aparición al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .tled { animation: tled 2.4s ease-in-out infinite; }
  .tled.a1, .tled.b1 { animation-delay: .15s; } .tled.a2, .tled.b2 { animation-delay: .3s; } .tled.a3, .tled.b3 { animation-delay: .45s; }
  .tled.a4, .tled.b4 { animation-delay: .6s; } .tled.a5, .tled.b5 { animation-delay: .75s; } .tled.a6, .tled.b6 { animation-delay: .9s; } .tled.a7, .tled.b7 { animation-delay: 1.05s; }
}
@keyframes tled { 0%, 100% { opacity: .25; } 15%, 45% { opacity: 1; } }

.why-photo { width: 100%; max-width: 300px; height: auto; border-radius: var(--radius-lg); margin: 4px 0 16px; box-shadow: 0 18px 40px -24px rgba(19, 32, 46, .5); }
.svc-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.svc-tiles li { margin: 0; }
.svc-tiles a { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc-tiles a:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(19, 32, 46, .4); }
.svc-tiles strong { display: block; margin-bottom: 2px; }
.svc-tiles small { display: block; color: var(--steel); font-size: var(--step--1); line-height: 1.45; }
@media (max-width: 700px) { .svc-tiles { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price-card { padding: 14px; }
  .price-card h3 { font-size: .9rem; }
  .price { font-size: 1.6rem; }
  .price-card p:last-child { font-size: .85rem; }
  .price-unit { display: block; }
}
@media (max-width: 960px) { .why-photo { max-width: 220px; } }

.svc-top { display: grid; grid-template-columns: 1fr 300px; gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: 18px; }
.svc-sum { font-size: var(--step-1); color: var(--steel); margin: .3em 0 .6em; }
.svc-top .svc-fig .illus { border-radius: var(--radius-lg); }
@media (max-width: 760px) { .svc-top { grid-template-columns: 1fr; } .svc-top .svc-fig { max-width: 340px; order: -1; } }

/* --- Fotografías --------------------------------------------------------- */
img.photo { display: block; width: 100%; height: auto; object-fit: cover; background: #dfe5ea; }
.hero-figure img.photo { border-radius: var(--radius-lg); box-shadow: 0 24px 50px -28px rgba(19, 32, 46, .55); aspect-ratio: 3 / 2; }
.who-fig img.photo { aspect-ratio: 3 / 2; }
.mat-card img.photo { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 4 / 3; }
.ph-fig img.photo, .svc-fig img.photo { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; }
.aud-photo { grid-template-columns: 0.9fr 1.1fr 1fr; }
.aud-fig img.photo { border-radius: 12px; aspect-ratio: 3 / 2; }
.why-fig { margin: 4px 0 16px; max-width: 440px; }
.why-fig img.photo { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; box-shadow: 0 18px 40px -24px rgba(19, 32, 46, .5); }
.example img.photo { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; }
@media (max-width: 1100px) { .aud-photo { grid-template-columns: 1fr 1fr; } .aud-photo .aud-fig { grid-column: 1 / -1; max-width: 560px; } }
@media (max-width: 900px) { .aud-photo { grid-template-columns: 1fr; } }
.svc-tile-photo a { padding: 10px; align-items: center; }
.svc-thumb { flex: 0 0 118px; }
.svc-thumb img.photo { border-radius: 10px; aspect-ratio: 4 / 3; }
@media (max-width: 420px) { .svc-thumb { flex-basis: 92px; } }
