/* Archivo variable (anchura 62–125, peso 100–900), autoalojada. Licencia OFL. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Prototipo de diseño · franhurtado.me
   Tokens → base → componentes → secciones. Sin librerías. */

:root {
  /* Color: derivado del logo FH (pizarra + naranja) */
  --calco: #f1f3f5;       /* papel de calco, gris frío */
  --calco-2: #e6e9ed;
  --tinta: #18222e;       /* pizarra muy oscura */
  --pizarra: #475569;     /* F del logo */
  --naranja: #ff8115;     /* H del logo: solo rellenos y gráficos */
  --naranja-texto: #b04a00; /* naranja legible sobre claro (AA) */
  --linea: #c5ccd5;
  --cota: #6b7888;
  --blanco: #fff;

  /* Tipografía: una familia con eje de anchura */
  --f: "Archivo", system-ui, sans-serif;

  /* Escala (1.25) */
  --t-s: clamp(.875rem, .85rem + .1vw, .95rem);
  --t-m: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --t-l: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --t-xl: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --t-xxl: clamp(2.2rem, 1.1rem + 3.5vw, 3.9rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--calco);
  color: var(--tinta);
  font: 400 var(--t-m)/1.6 var(--f);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--tinta); color: #fff; padding: .75rem 1rem; z-index: 99; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Titulares: anchura expandida y peso alto, cerrados de tracking */
.display {
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h2.display { font-size: var(--t-xl); }
h3 { font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.lead { font-size: var(--t-l); line-height: 1.45; max-width: 36ch; }
.measure { max-width: 62ch; }
.muted { color: var(--pizarra); }

/* Botones: planos, sin relieve */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 var(--t-m)/1 var(--f); font-stretch: 108%;
  padding: 1.1rem 1.6rem; border: 2px solid var(--naranja);
  background: var(--naranja); color: var(--tinta); text-decoration: none;
  border-radius: 999px; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--tinta); border-color: var(--tinta); color: var(--calco); }
.btn--ghost { background: transparent; border-color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--calco); }
.inv .btn:hover { background: var(--calco); border-color: var(--calco); color: var(--tinta); }
.inv .btn--ghost { border-color: var(--calco); color: var(--calco); }

.link { color: var(--naranja-texto); font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: 2px; }
.inv .link { color: var(--naranja); }

/* ───────── Cabecera ───────── */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--calco) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem; text-decoration: none; }
.brand img { display: block; height: 1.55rem; width: auto; }
.brand small { font: 400 .62rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--pizarra); white-space: nowrap; }
@media (max-width: 36rem) { .brand small { display: none; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: var(--t-s); }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--naranja); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.nav .btn { padding: .65rem 1.15rem; font-size: var(--t-s); }
.lang { font-size: var(--t-s); color: var(--pizarra); }
.lang b { color: var(--tinta); }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--tinta); padding: .55rem .8rem; font: 700 var(--t-s) var(--f); cursor: pointer; border-radius: 2px; }
@media (max-width: 52rem) {
  .menu-btn { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem var(--gutter) 1.75rem; background: var(--calco); border-bottom: 1px solid var(--linea); display: none; margin: 0; }
  .nav.open { display: flex; }
}

/* ───────── Hero ───────── */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--t-xxl); }
.hero .answer { margin-top: 1.5rem; font-size: var(--t-m); max-width: 52ch; color: var(--pizarra); }
.hero .answer strong { color: var(--tinta); font-weight: 600; }
.hero .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }
.hero .reassure { margin-top: 1.1rem; font-size: var(--t-s); color: var(--pizarra); }
@media (max-width: 62rem) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero .portrait { order: -1; max-width: 18rem; justify-self: start; margin: 0 0 2.75rem; } }

/* Retrato: bloque de color plano detrás, sin pie de foto */
.portrait { position: relative; margin: 0; isolation: isolate; }
.portrait::before { content: ""; position: absolute; z-index: -1; background: var(--naranja); inset: 12% -6% -6% 14%; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.05); }
.hero .portrait { max-width: 30rem; justify-self: end; margin-right: 6%; }

/* ───────── Servicios ───────── */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head p { color: var(--pizarra); max-width: 48ch; }
@media (max-width: 52rem) { .head { grid-template-columns: minmax(0, 1fr); } }

.svc-list { border-top: 2px solid var(--tinta); }
.svc { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr) 12.5rem; gap: 1.5rem 2.5rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--linea); text-decoration: none; position: relative; }
.svc::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--tinta); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; z-index: -1; }
.svc { z-index: 0; }
.svc:hover, .svc:focus-visible { color: var(--calco); }
.svc:hover::before, .svc:focus-visible::before { transform: scaleY(1); }
.svc:focus-visible { outline-offset: -3px; }
.svc .ico { width: 7.5rem; }
.svc .problem { font-size: var(--t-s); color: var(--pizarra); margin-bottom: .35rem; transition: color .2s; }
.svc:hover .problem, .svc:focus-visible .problem { color: #b4bfcb; }
.svc h3 { font-size: var(--t-l); }
.svc .desc { font-size: var(--t-s); line-height: 1.55; max-width: 44ch; }
.svc .terms { text-align: right; font-weight: 700; font-stretch: 108%; white-space: nowrap; line-height: 1.35; }
.svc .terms small { display: block; font-weight: 400; font-stretch: 100%; font-size: var(--t-s); color: var(--pizarra); transition: color .2s; }
.svc:hover .terms small, .svc:focus-visible .terms small { color: #b4bfcb; }
.svc .terms span { color: var(--naranja-texto); transition: color .2s; }
.svc:hover .terms span, .svc:focus-visible .terms span { color: var(--naranja); }
@media (max-width: 62rem) {
  .svc { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem 1.25rem; }
  .svc .ico { width: 5rem; grid-row: span 3; }
  .svc .terms { text-align: left; grid-column: 2; }
}
.also { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; font-size: var(--t-s); }
.also span.l { margin-right: .5rem; font-weight: 700; }
.also a { border: 1px solid var(--linea); padding: .35rem .7rem; border-radius: 2px; text-decoration: none; background: var(--blanco); }
.also a:hover { border-color: var(--tinta); }

/* Iconos de servicio: estado estático completo, animan con hover/foco */
.ico svg { width: 100%; height: auto; overflow: visible; }
.ico .s { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ico .o { fill: var(--naranja); stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.ico .dash { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* MVP: bloques que caen y bandera */
  .svc:hover .b1, .svc:focus-visible .b1 { animation: drop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
  .svc:hover .b2, .svc:focus-visible .b2 { animation: drop .5s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
  .svc:hover .b3, .svc:focus-visible .b3 { animation: drop .5s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
  .svc:hover .flag, .svc:focus-visible .flag { animation: raise .4s ease .6s both; transform-origin: 66px 22px; }
  /* Velocidad: aguja del medidor */
  .svc:hover .needle, .svc:focus-visible .needle { animation: sweep 1s cubic-bezier(.3, 0, .2, 1) both; }
  /* Seguridad: el escudo se traza y el aviso se tacha */
  .svc:hover .shield, .svc:focus-visible .shield { animation: trace 0.7s ease both; }
  .svc:hover .tick, .svc:focus-visible .tick { animation: trace .4s ease .6s both; }
  /* Auditoría: la moneda cae por la fuga */
  .svc:hover .coin, .svc:focus-visible .coin { animation: leak 1s ease-in infinite; }
  .svc:hover .bar, .svc:focus-visible .bar { animation: grow .6s ease both; transform-box: fill-box; transform-origin: bottom; }
  .svc:hover .bar:nth-of-type(2), .svc:focus-visible .bar:nth-of-type(2) { animation-delay: .12s; }
  .svc:hover .bar:nth-of-type(3), .svc:focus-visible .bar:nth-of-type(3) { animation-delay: .24s; }
}
@keyframes drop { from { transform: translateY(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes raise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sweep { from { transform: rotate(-70deg); } to { transform: rotate(40deg); } }
@keyframes grow { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes leak { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
.needle { transform-origin: 60px 78px; transform: rotate(40deg); }

/* ───────── Tira de prueba (cita grande) ───────── */
.proof { background: var(--blanco); border-block: 1px solid var(--linea); }
.proof .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1.5rem 4rem; align-items: start; }
.proof blockquote { margin: 0; }
.proof blockquote p { font-size: var(--t-l); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }
.proof cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: var(--t-s); color: var(--pizarra); }
.proof cite b { color: var(--tinta); }
.proof .num { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 52rem) { .proof .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ───────── MVP Factory (inverso) ───────── */
.inv { background: var(--tinta); color: var(--calco); }
.inv .muted, .inv .head p { color: #b4bfcb; }
.factory .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: center; }
.factory .tag { display: inline-block; font-size: var(--t-s); font-weight: 600; border: 1px solid #5d6b7c; padding: .3rem .7rem; border-radius: 2px; margin-bottom: 1.25rem; }
.factory p.big { font-size: var(--t-m); max-width: 46ch; margin-top: 1.25rem; color: #d3dae2; }
.factory ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; font-size: var(--t-s); }
.factory li { display: flex; gap: .7rem; align-items: baseline; }
.factory li::before { content: ""; flex: none; width: .55rem; height: .55rem; background: var(--naranja); transform: translateY(.0em); }
.factory .doc { background: var(--calco); color: var(--tinta); padding: 1.25rem; border: 2px solid var(--calco); font-size: var(--t-s); transform: rotate(1.2deg); }
.factory .doc header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--tinta); padding-bottom: .6rem; margin-bottom: .9rem; font-weight: 700; font-stretch: 108%; }
.factory .doc header span { font-weight: 400; color: var(--pizarra); font-size: .8rem; }
.factory .row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--linea); }
.factory .row b { font-weight: 600; }
.factory .bars { display: flex; align-items: flex-end; gap: .5rem; height: 4.5rem; margin-top: 1rem; }
.factory .bars i { flex: 1; background: var(--pizarra); display: block; }
.factory .bars i:nth-child(3) { background: var(--naranja); }
@media (max-width: 52rem) { .factory .wrap { grid-template-columns: minmax(0, 1fr); } .factory .doc { transform: none; } }

/* ───────── Proceso (sí es secuencia) ───────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.35rem; height: 2px; background: var(--tinta); }
.steps li { counter-increment: s; padding: 0 1.5rem 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.7rem; height: 2.7rem; background: var(--calco); border: 2px solid var(--tinta); font-weight: 800; font-stretch: 118%; margin-bottom: 1.25rem; position: relative; }
.steps li:last-child::before { background: var(--naranja); }
.steps h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.steps p { font-size: var(--t-s); color: var(--pizarra); line-height: 1.55; }
@media (max-width: 62rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps::before { left: 1.35rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li { padding: 0 0 0 4rem; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ───────── Proyectos ───────── */
.proj-list { display: grid; gap: 0; border-top: 2px solid var(--tinta); }
.proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding: 2.25rem 0; border-bottom: 1px solid var(--linea); align-items: center; }
.proj:nth-child(even) .shot { order: 2; }
.proj .shot { border: 2px solid var(--tinta); background: var(--blanco); overflow: hidden; }
.proj .shot img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.proj .kind { font-size: var(--t-s); color: var(--pizarra); margin-bottom: .4rem; }
.proj h3 { font-size: var(--t-l); margin-bottom: .75rem; }
.proj p { font-size: var(--t-s); line-height: 1.6; max-width: 52ch; }
.proj .tech { margin-top: 1rem; font-size: .8rem; color: var(--pizarra); }
.proj .code { background: var(--tinta); color: #cfe3ff; padding: 1rem 1.1rem; font: 400 .72rem/1.55 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; white-space: pre; aspect-ratio: 3 / 1; }
.proj .code b { color: var(--naranja); font-weight: 400; }
@media (max-width: 52rem) { .proj { grid-template-columns: minmax(0, 1fr); } .proj:nth-child(even) .shot { order: 0; } }

/* ───────── Sobre mí ───────── */
.about .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.about .photo { position: sticky; top: 6rem; }
.about .body > * + * { margin-top: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem !important; border: 2px solid var(--tinta); background: var(--blanco); }
.facts div { padding: 1rem; border-left: 1px solid var(--tinta); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: 2rem; font-weight: 800; font-stretch: 118%; letter-spacing: -.04em; line-height: 1; }
.facts span { font-size: .78rem; color: var(--pizarra); line-height: 1.3; display: block; margin-top: .35rem; }
@media (max-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--tinta); } }
.career { list-style: none; padding: 0; margin: 2rem 0 0 !important; border-top: 2px solid var(--tinta); }
.career li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--linea); font-size: var(--t-s); }
.career .y { color: var(--pizarra); }
.career b { font-weight: 700; }
@media (max-width: 52rem) { .about .wrap { grid-template-columns: minmax(0, 1fr); } .about .photo { position: relative; top: auto; max-width: 20rem; margin: 0 0 3rem; } }

/* ───────── Testimonios ───────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--tinta); }
.quotes figure { margin: 0; padding: 1.75rem 1.75rem 1.75rem 0; border-right: 1px solid var(--linea); }
.quotes figure + figure { padding-left: 1.75rem; }
.quotes figure:last-child { border-right: 0; }
.quotes blockquote { margin: 0; font-size: var(--t-s); line-height: 1.65; }
.quotes figcaption { margin-top: 1rem; font-size: var(--t-s); color: var(--pizarra); }
.quotes figcaption b { color: var(--tinta); display: block; }
@media (max-width: 62rem) { .quotes { grid-template-columns: minmax(0, 1fr); } .quotes figure, .quotes figure + figure { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--linea); } }

/* ───────── FAQ ───────── */
.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.faq details { border-top: 1px solid var(--linea); }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 700; font-stretch: 105%; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .9rem; height: .9rem; background: linear-gradient(var(--tinta), var(--tinta)) center / 100% 2px no-repeat, linear-gradient(var(--tinta), var(--tinta)) center / 2px 100% no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.4rem 0; font-size: var(--t-s); line-height: 1.7; color: var(--pizarra); max-width: 62ch; }
@media (max-width: 52rem) { .faq .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Contacto ───────── */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h2 { font-size: var(--t-xxl); }
.contact .lead { margin-top: 1.5rem; color: #d3dae2; }
.contact .direct { margin-top: 2rem; font-size: var(--t-s); color: #b4bfcb; display: grid; gap: .5rem; }
.contact .direct a { color: var(--calco); }
form { display: grid; gap: 1.25rem; }
label { display: grid; gap: .45rem; font-size: var(--t-s); font-weight: 600; }
input, select, textarea { font: 400 var(--t-m)/1.4 var(--f); color: inherit; background: #212d3b; border: 2px solid #4a5a6d; border-radius: 2px; padding: .85rem 1rem; width: 100%; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--calco) 50%), linear-gradient(135deg, var(--calco) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - .95rem) 55%; background-size: .4rem .4rem; background-repeat: no-repeat; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--naranja); outline-offset: 0; border-color: var(--naranja); }
.hp { position: absolute; left: -999px; }
form .note { font-size: .8rem; color: #9aa7b5; }
@media (max-width: 52rem) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Pie ───────── */
.site-footer { background: var(--tinta); color: #b4bfcb; border-top: 1px solid #2d3a4a; padding-block: 2rem; font-size: var(--t-s); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--calco); }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ───────── El hilo: línea naranja que une las secciones (solo pantallas anchas) ───────── */
main { position: relative; }
.thread, .node { display: none; }
@media (min-width: 84rem) {
  .thread { display: block; position: absolute; z-index: 1; top: 5rem; bottom: 4rem; left: calc(50% - var(--max) / 2 - 2.75rem); width: 2px; background: var(--naranja); transform-origin: top; pointer-events: none; }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .thread { animation: thread linear both; animation-timeline: scroll(root); }
    }
  }
  .head, .about .body, .faq .wrap > div:first-child, .contact .wrap > div:first-child { position: relative; }
  .node { display: block; position: absolute; left: -3.05rem; top: .55em; width: .8rem; height: .8rem; background: var(--calco); border: 2px solid var(--naranja); border-radius: 50%; }
  .inv .node { background: var(--tinta); }
}
@keyframes thread { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ───────── Blog y páginas de texto ───────── */
.wrap.narrow { width: min(100% - 2 * var(--gutter), 46rem); }
.article-head { padding-block: clamp(2.5rem, 6vw, 5rem) 1.5rem; }
.article-head .kind { font-size: var(--t-s); color: var(--pizarra); margin-bottom: 1rem; }
.article-head .kind a { text-decoration: none; }
.article-head .kind a:hover { text-decoration: underline; }
.article-head h1 { font-size: var(--t-xl); }
.article-head .meta { margin-top: 1.25rem; font-size: var(--t-s); color: var(--pizarra); }

.tldr { border-left: 4px solid var(--naranja); background: var(--blanco); padding: 1.1rem 1.4rem; margin: 1rem 0 2.25rem; }
.tldr-label { font-weight: 800; font-stretch: 112%; font-size: var(--t-s); margin-bottom: .35rem; }
.tldr p:last-child { font-size: var(--t-m); line-height: 1.55; }

.prose { font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; font-size: var(--t-l); line-height: 1.2; margin-top: 2.2em; text-wrap: balance; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose a { color: var(--naranja-texto); text-underline-offset: .2em; text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 4px solid var(--tinta); font-weight: 500; }
.prose img, .prose figure { max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.prose th, .prose td { border: 1px solid var(--linea); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--calco-2); }
.prose pre, .prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
.prose pre { background: var(--tinta); color: #dbe7f5; padding: 1rem 1.2rem; overflow-x: auto; }
.prose details { border: 1px solid var(--linea); padding: .8rem 1rem; background: var(--blanco); }
.prose summary { font-weight: 700; cursor: pointer; }

.author { padding-bottom: 4rem; display: flex; gap: 1.25rem; align-items: center; margin: 3rem 0 0; padding-top: 2rem; border-top: 2px solid var(--tinta); font-size: var(--t-s); }
.author img { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; object-position: top; filter: grayscale(1); flex: none; }
.author-title { font-weight: 800; font-stretch: 112%; margin-bottom: .25rem; }

.post-list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--tinta); }
.post-item { border-bottom: 1px solid var(--linea); }
.post-link { display: grid; gap: .5rem; padding: 1.6rem 0; text-decoration: none; }
.post-link:hover h2, .post-link:hover h3 { text-decoration: underline; text-decoration-color: var(--naranja); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.post-link h2, .post-link h3 { font-size: var(--t-l); max-width: 30ch; }
.post-link .kind, .post-link .excerpt { font-size: var(--t-s); color: var(--pizarra); max-width: 62ch; }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; font-weight: 700; }
.nav-links a, .nav-links span { padding: .4rem .8rem; border: 2px solid var(--tinta); border-radius: 999px; text-decoration: none; }
.nav-links .current { background: var(--tinta); color: var(--calco); }
.cta-band { text-align: left; }
.cta-band .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.cta-band h2 { font-size: var(--t-xl); }
.cta-band p { max-width: 52ch; color: #d3dae2; }
.related { background: var(--calco-2); }

.form-msg { padding: .9rem 1rem; border-left: 4px solid var(--naranja); background: #212d3b; font-size: var(--t-s); }
.form-msg.err { border-left-color: #ff6b6b; }
.btn[aria-busy="true"] { cursor: progress; opacity: .9; }
.btn[aria-busy="true"]::after { content: ""; display: inline-block; width: .95em; height: .95em; margin-left: .65em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.12em; animation: fh-spin .7s linear infinite; }
@keyframes fh-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::after { animation-duration: 2.5s; } }

/* ───────── Landings de servicio ───────── */
.lp-hero .wrap { align-items: center; }
.lp-hero .assure { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: var(--t-s); font-weight: 600; }
.lp-hero .assure li { display: flex; align-items: center; gap: .55rem; }
.lp-hero .assure li::before { content: ""; width: .55rem; height: .55rem; background: var(--naranja); flex: none; }
.lp-art { position: relative; isolation: isolate; width: 100%; max-width: 23rem; aspect-ratio: 6 / 5; justify-self: center; display: grid; place-items: center; padding: 2rem; color: var(--tinta); }
/* Detrás, el marco blanco; delante, el bloque naranja que lleva el icono centrado */
.lp-art::before { content: ""; position: absolute; inset: -1.4rem 1.4rem 1.4rem -1.4rem; z-index: -2; background: var(--blanco); border: 2px solid var(--tinta); }
.lp-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--naranja); }
.lp-art svg { width: 78%; height: auto; max-height: 100%; overflow: visible; }
.lp-art .s { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lp-art .o { fill: var(--blanco); stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.lp-art .needle { transform: rotate(10deg); }
@media (max-width: 62rem) { .lp-art { order: -1; max-width: 15rem; justify-self: start; margin: 1.4rem 0 1rem 1.4rem; } }

.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); border-top: 2px solid var(--tinta); }
.rows--tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-item { padding: 1.5rem 0; border-bottom: 1px solid var(--linea); }
.row-item h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.row-item p { font-size: var(--t-s); line-height: 1.65; color: var(--pizarra); max-width: 52ch; }
.row-item .link { display: inline-block; margin-top: .75rem; font-size: var(--t-s); }
.rows--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-item:target { background: var(--blanco); }
@media (max-width: 52rem) { .rows, .rows--tight, .rows--more { grid-template-columns: minmax(0, 1fr); } }

@media (min-width: 62.01rem) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps .when { font-size: var(--t-s); color: var(--naranja-texto); font-weight: 700; margin-bottom: .35rem; }

.plans { display: grid; gap: 1.5rem; align-items: stretch; }
.plans--1 { grid-template-columns: minmax(0, 28rem); }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; background: var(--blanco); border: 2px solid var(--tinta); }
.plan--featured { background: var(--tinta); color: var(--calco); }
.plan h3 { font-size: 1.1rem; }
.plan .price { font-size: 1.9rem; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1.1; margin-top: .5rem; }
.plan .per { font-size: var(--t-s); color: var(--pizarra); }
.plan--featured .per { color: #b4bfcb; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; font-size: var(--t-s); flex: 1; }
.plan li { display: flex; gap: .65rem; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: .5rem; height: .5rem; background: var(--naranja); }
.plan--featured .btn:hover { background: var(--calco); border-color: var(--calco); color: var(--tinta); }
.guarantee { margin-top: 1.5rem; font-weight: 700; font-stretch: 108%; }
@media (max-width: 62rem) { .plans--2, .plans--3 { grid-template-columns: minmax(0, 1fr); } }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.case { border: 2px solid var(--calco); padding: 1.75rem; }
.case .kind { font-size: var(--t-s); color: #b4bfcb; margin-bottom: .35rem; }
.case h3 { font-size: var(--t-l); margin-bottom: .75rem; }
.case h4 { margin: 1.25rem 0 .4rem; font-size: var(--t-s); font-weight: 800; font-stretch: 112%; }
.case ul { padding-left: 1.1rem; font-size: var(--t-s); line-height: 1.6; color: #d3dae2; }
.case .result { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #4a5a6d; font-weight: 700; color: var(--naranja); }
@media (max-width: 62rem) { .cases { grid-template-columns: minmax(0, 1fr); } }
