@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(assets/fonts/schibsted-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url(assets/fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(assets/fonts/schibsted-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 800; font-display: swap; src: url(assets/fonts/schibsted-grotesk-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-latin-400-italic.woff2) format('woff2'); }

/* Casi todo es tinta sobre papel. El color solo aparece como estado: verde resuelto, ámbar en curso, rojo fallo.
   Los registros son paneles oscuros porque son instrumentos, no decoración. La serif cursiva es la voz de Pedro.
   La mono solo aparece donde hay código o registros. Lo que se mueve explica algo. */
:root {
  color-scheme: only light;
  --paper: #f4f5f7;
  --paper-tint: #e9ecf1;
  --surface: #fcfcfd;
  --ink: #101828;
  --ink-soft: #2a3550;
  --graphite: #566174;
  --rule: #d3d8e0;
  --accent: #101828;
  --on-accent: #f4f5f7;
  --ok-ink: #0b7a53;
  --retry-ink: #946200;
  --fault-ink: #c0392b;
  --warm: #ff8a5b;
  --ok: #3fbf8f;
  --retry: #e0a03a;
  --fault: #ef6b5b;
  --log-bg: #0d1117;
  --log-ink: #d9dee5;
  --log-dim: #7d8794;
  --log-rule: #262c35;
  --log-edge: #0d1117;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --voz: 'Newsreader', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1120px;
}
/* Modo oscuro: solo si la persona lo elige con el botón (data-theme lo fija theme.js antes de pintar). El claro es el de siempre. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141618;
  --paper-tint: #1a1d20;
  --surface: #1c1f23;
  --ink: #eceef1;
  --ink-soft: #cfd3d9;
  --graphite: #a0a7b1;
  --rule: #2e3238;
  --accent: #eceef1;
  --on-accent: #141618;
  --ok-ink: #3fbf8f;
  --retry-ink: #e0a03a;
  --fault-ink: #ef6b5b;
  --log-bg: #0b0c0e;
  --log-edge: #2e3238;
}

/* Bloque invertido: mismas variables, valores cruzados */
.invert { --paper: #101828; --surface: #101828; --ink: #f4f5f7; --ink-soft: #d3d8e0; --graphite: #a9b2c0; --rule: #2a3550; --accent: #f4f5f7; --on-accent: #101828; background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .invert { --paper: #1f2328; --surface: #1f2328; --rule: #363b42; }

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--display); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 500; text-decoration: none; transition: top .2s ease; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.voz { font-family: var(--voz); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.top-inner { display: flex; align-items: center; gap: 12px; height: 64px; position: relative; scroll-target-group: auto; }
.brand { margin-right: auto; }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: none; color: var(--ink); cursor: pointer; transition: border-color .2s ease; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon, [data-theme-now="dark"] .theme-toggle .sun { display: block; }
.theme-toggle .sun, [data-theme-now="dark"] .theme-toggle .moon { display: none; }
.brand { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.125rem; }
.menu-toggle { font: 500 .875rem var(--display); background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 6px 12px; color: var(--ink); cursor: pointer; }
.nav { display: none; }
.nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 16px; right: 16px; padding: 8px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; transition: opacity .2s ease, translate .2s ease; }
@starting-style { .nav.open { opacity: 0; translate: 0 -8px; } }
.nav a { padding: 12px 0; text-decoration: none; color: var(--graphite); font-size: .9375rem; transition: color .2s ease; }
.nav a:hover, .nav a:target-current { color: var(--ink); }
.nav a.nav-cta { color: var(--ink); font-weight: 500; }
@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .nav { order: 1; }
  .theme-toggle { order: 2; }
  .nav, .nav.open { display: flex; flex-direction: row; gap: 32px; position: static; padding: 0; border: 0; background: none; }
  .nav a { padding: 0; position: relative; }
  .nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a:hover::after, .nav a:focus-visible::after, .nav a:target-current::after { transform: scaleX(1); }
  .nav { align-items: center; }
  .nav a.nav-cta { padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); transition: background-color .2s ease; }
  .nav a.nav-cta:hover { background: var(--ink-soft); }
  .nav a.nav-cta::after { display: none; }
}

/* Hero */
.hero { padding: 88px 0 48px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
/* El subrayado ondulado es el de un error. Nace rojo y pasa a verde cuando el registro de al lado se recupera. */
h1 .voz { display: inline-block; font-size: 1.06em; text-decoration: underline wavy var(--ok-ink); text-decoration-thickness: .055em; text-underline-offset: .14em; text-decoration-skip-ink: none; animation: mend .6s ease 3.5s both; }
@keyframes mend { from { text-decoration-color: var(--fault-ink); } }
.hero-intro { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.hero-photo { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.hero-intro .lead { margin-top: 0; }
@media (max-width: 480px) { .hero-intro { flex-direction: column; align-items: flex-start; } }
.lead { margin-top: 24px; max-width: 46ch; font-size: 1.1875rem; color: var(--graphite); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 8px; font: 500 1rem var(--display); text-decoration: none; cursor: pointer; border: 1px solid var(--rule); background: none; color: var(--ink); transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-quiet:hover { border-color: var(--ink); }
.hero-links { margin-top: 16px; color: var(--graphite); font-size: .9375rem; }
.hero-links a { color: var(--ink); text-underline-offset: 4px; }
.hero-links a:hover { text-decoration-thickness: 2px; }
.disponibilidad { margin-top: 24px; font-size: .9375rem; color: var(--ink); }
.hero-meta { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--graphite); }

/* Registro (elemento firma) */
.log { margin: 0; background: var(--log-bg); color: var(--log-ink); border: 1px solid var(--log-edge); border-radius: 12px; font: 400 .8125rem/1.5 var(--mono); overflow: hidden; }
.log-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--log-rule); color: var(--log-dim); }
.log-lines { list-style: none; margin: 0; padding: 16px; display: grid; gap: 8px; }
.log-lines::after { content: ''; width: .6em; height: 1.1em; margin-left: 8px; background: var(--log-dim); animation: blink 1s steps(1) infinite; }
.log-lines li { position: relative; display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 2px; padding: 8px; border-radius: 6px; }
.log-lines li:nth-child(2) { --i: 1; }
.log-lines li:nth-child(3) { --i: 2; }
.log-lines li:nth-child(4) { --i: 3; }
.log-lines li:nth-child(5) { --i: 4; }
.log-lines li:nth-child(6) { --i: 5; }
.log-lines li:nth-child(7) { --i: 6; }
.log-lines li:nth-child(8) { --i: 7; }
.log-lines li::before { content: ''; position: absolute; inset: 0; border-radius: 6px; opacity: 0; pointer-events: none; }
.log-lines .f-ok::before { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.log-lines .f-fault::before { background: color-mix(in srgb, var(--fault) 16%, transparent); }
.log-lines .f-ok { box-shadow: inset 2px 0 var(--ok); }
.log-lines .f-fault { box-shadow: inset 2px 0 var(--fault); }
.log-lines time { color: var(--log-dim); }
.log-lines code { font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-lines b { font-weight: 500; }
.log-lines span { grid-column: 2 / -1; color: var(--log-dim); }
.log-lines .log-sep { display: block; padding: 8px 8px 0; color: var(--log-ink); font-weight: 500; }
.log-lines .log-sep:not(:first-child) { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--log-rule); border-radius: 0; }
.s2 { color: var(--ok); }
.s3 { color: var(--retry); }
.s5 { color: var(--fault); }
@keyframes line { from { opacity: 0; translate: 0 6px; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes blink { 50%, 100% { opacity: 0; } }

/* Registro del hero: las líneas entran al cargar. Tras la primera pulsación el JS marca la lista como viva y solo se anima la línea nueva. */
#registro li { view-transition-name: match-element; view-transition-class: logline; animation: line .45s var(--ease) both; animation-delay: calc(400ms + var(--i, 0) * 700ms); }
#registro .f-ok::before, #registro .f-fault::before { animation: flash .65s ease-out both; animation-delay: calc(400ms + var(--i, 0) * 700ms); }
#registro.live li, #registro.live li::before { animation: none; }
#registro.live .fresh::before { animation: flash .65s ease-out both; }
#registro.live.no-vt .fresh { animation: line .45s var(--ease) both; }
::view-transition-group(.logline) { animation-duration: .35s; animation-timing-function: var(--ease); }
.log-foot { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--log-rule); }
.log-tally { color: var(--log-dim); }
.log-tally b { display: inline-block; color: var(--log-ink); font-weight: 500; }
.log-tally b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.log-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.log-btn { font: 500 .8125rem var(--mono); color: var(--log-ink); background: color-mix(in srgb, var(--log-ink) 6%, transparent); border: 1px solid var(--log-rule); border-radius: 6px; padding: 8px 12px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .15s ease; }
.log-btn::before { content: '\25B8'; margin-right: 8px; color: var(--ok); }
.log-btn-fault::before { color: var(--fault); }
.log-btn:hover { border-color: var(--log-dim); background: color-mix(in srgb, var(--log-ink) 10%, transparent); }
.log-btn:active { transform: scale(.97); }
.log-btn[aria-disabled='true'] { opacity: .5; cursor: progress; }
.log-hint { color: var(--log-dim); font-size: .75rem; }

/* Bloques */
.block { padding: 96px 0; }
.block-tint { background: var(--paper-tint); }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.block-head .say { margin-bottom: 0; }
.say { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 40px; max-width: 24ch; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }

/* Servicios desplegables */
.svc-list { display: grid; gap: 12px; }
.svc { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); transition: border-color .25s ease; }
.svc[open] { border-color: var(--ink); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 20px 24px; font-weight: 700; font-size: 1.125rem; border-radius: 12px; }
.svc summary span { grid-column: 1; justify-self: start; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: '+'; grid-column: 2; grid-row: 1; font: 500 1.25rem var(--mono); color: var(--accent); transition: transform .25s var(--ease); }
.svc[open] summary::after { transform: rotate(45deg); }
.svc-sub { font-size: .9375rem; font-weight: 400; color: var(--graphite); }
.svc-body { padding: 0 24px 20px; display: grid; gap: 12px; }
.svc[open] .svc-body { animation: unfold .35s var(--ease) both; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.svc-body p { max-width: 65ch; color: var(--graphite); }
.svc-body strong { color: var(--ink); }
.svc-body p:last-child { padding-left: 12px; border-left: 2px solid var(--ink); }
.svc summary .tag-soon { font-size: .8125rem; font-weight: 500; color: var(--retry-ink); border: 1px solid currentColor; border-radius: 999px; padding: 1px 10px; }

/* Trabajo: dos proyectos, cada uno con sus problemas */
.proj + .proj { margin-top: 72px; }
.proj-head { display: grid; gap: 12px; max-width: 68ch; margin-bottom: 24px; }
.proj-head h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.proj-head p { color: var(--graphite); }
.proj-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; color: var(--ink); }
.proj-steps li::marker { font-weight: 700; }
.case { display: grid; gap: 16px; padding: 32px 0; border-top: 1px solid var(--rule); }
.case:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .case { grid-template-columns: 240px 1fr; gap: 48px; } }
.case-tag { font: 400 .8125rem/1.6 var(--mono); color: var(--graphite); padding-top: 4px; }
.case-intro { margin-top: 8px; color: var(--graphite); max-width: 68ch; }
.case h4 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.015em; }
.case-steps { display: grid; gap: 16px; margin: 20px 0 0; }
@media (min-width: 860px) { .case-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.case-steps dt { font-size: .875rem; font-weight: 500; color: var(--graphite); margin-bottom: 4px; }
.case-steps dd { margin: 0; font-size: 1rem; }
.case-steps div:last-child dd { color: var(--ok-ink); font-weight: 500; }

/* Antes y después de cada caso: un <details> nativo. Al abrirlo, el registro se reproduce línea a línea solo con CSS. */
.replay { margin-top: 24px; }
.replay summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 8px; font-size: .9375rem; font-weight: 500; transition: border-color .2s ease; }
.replay summary::-webkit-details-marker { display: none; }
.replay summary::before { content: '\25B8'; font: 400 .8125rem var(--mono); color: var(--accent); transition: transform .25s var(--ease); }
.replay[open] summary::before { transform: rotate(90deg); }
.replay summary:hover { border-color: var(--ink); }
.replay .log { margin-top: 16px; max-width: 640px; }
.replay .log-lines code { white-space: normal; }
.replay[open] .log-lines li { animation: line .45s var(--ease) both; animation-delay: calc(150ms + var(--i, 0) * 450ms); }
.replay[open] .f-ok::before, .replay[open] .f-fault::before { animation: flash .65s ease-out both; animation-delay: calc(150ms + var(--i, 0) * 450ms); }

/* Cómo trabajo */
.rules { display: grid; gap: 32px 48px; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rule { padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.rule h3 { font-size: 1.25rem; }
.rule p { color: var(--graphite); max-width: 48ch; }

/* Método: cada paso acaba en algo que el cliente recibe */
.method { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.step { counter-increment: paso; display: grid; grid-template-columns: 2.25rem 1fr; gap: 6px 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before { content: counter(paso); grid-row: 1 / span 3; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--graphite); max-width: 60ch; }
.step .step-out { color: var(--ink); }
.step .step-out b { color: var(--ok-ink); font-weight: 700; }
@media (min-width: 860px) {
  .step { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .step::before { grid-row: 1 / span 2; }
  .step h3 { grid-column: 2; }
  .step p { grid-column: 2; }
  .step .step-out { grid-column: 3; grid-row: 1 / span 2; align-self: center; padding-left: 16px; border-left: 2px solid var(--ok-ink); }
}

/* Portfolio */
.filters { display: flex; gap: 8px; }
.chip { font: 500 .875rem var(--display); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule); background: none; color: var(--graphite); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.projects { display: grid; }
.project { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--rule); view-transition-name: match-element; }
.project:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) {
  .project { grid-template-columns: 240px 1fr; column-gap: 48px; }
  .project > * { grid-column: 2; }
  .project .project-state { grid-column: 1; grid-row: 1 / span 6; padding-top: 4px; }
}
.project[hidden] { display: none; }
.project p { color: var(--graphite); max-width: 64ch; }
.project .project-state { font-size: .875rem; font-weight: 500; color: var(--retry-ink); }
.project .project-state.is-live { color: var(--ok-ink); }
.vt-candidaturas { view-transition-name: caso-candidaturas; }
.stack { font: 400 .8125rem var(--mono); margin-top: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.project .links a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.project .links a:hover { text-decoration-thickness: 2px; }
.project-shot { width: 100%; max-width: 520px; height: auto; border: 1px solid var(--rule); border-radius: 8px; }
::view-transition-group(*) { animation-duration: .3s; }

/* Sobre mí: registro personal, tono cálido */
.about { display: grid; gap: 48px; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 360px 1fr; gap: 64px; } }
.about-side { display: grid; gap: 24px; max-width: 360px; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.log-warm { border-color: color-mix(in srgb, var(--warm) 30%, var(--log-rule)); }
.log-warm .log-head span:first-child { color: var(--warm); }
.now-lines { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; }
.now-lines li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.now-lines .k { color: var(--warm); }
.about-text { max-width: 60ch; display: grid; gap: 16px; }
.about-lead { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; margin-bottom: 8px; }
.about-text > p { color: var(--graphite); }
.experiencia { margin-top: 32px; }
.experiencia h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--graphite); margin-bottom: 12px; }
.experiencia ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.experiencia li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.experiencia li span { color: var(--graphite); font-size: .9375rem; }

/* Certificaciones, dentro de Sobre mí */
.certs-block { margin-top: 32px; }
.certs-block h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--graphite); margin-bottom: 12px; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 760px) { .certs { grid-template-columns: repeat(2, 1fr); } }
.certs li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.certs .cert-main { grid-column: 1 / -1; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; padding: 0 0 16px; border-bottom: 2px solid var(--accent); }

/* Contacto */
.contact-mail { display: inline-block; font-size: clamp(1.25rem, 6.2vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .35s ease; }
.contact-mail:hover { background-size: 100% 3px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: paso; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: paso; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--graphite); }
.steps li::before { content: counter(paso) '.'; display: block; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.contact-note { margin-top: 32px; color: var(--graphite); max-width: 60ch; font-size: .9375rem; }

.foot { padding: 32px 0; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--graphite); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-links { display: flex; gap: 16px; }
.foot a:hover { color: var(--ink); }

/* Página 404 */
.notfound { min-height: 100vh; display: grid; align-content: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.notfound .log { max-width: 520px; }
.notfound .lead { margin-top: 0; }
.notfound .actions { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
