/* Tipografías guardadas dentro del sitio: no dependen de otros servidores. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
}

/* Layout: portada de petróleo a todo el ancho con el esquema del negocio; cuerpo claro con la
   tabla "lo que pasa / lo que hago", el método en tres pasos y las aplicaciones; cierre de
   contacto otra vez en petróleo. Un solo look, claro y sobrio, elegido a propósito. */
:root {
  color-scheme: light;
  --paper: #f4f6f5;
  --white: #fcfdfc;
  --ink: #14262b;
  --muted: #4e6166;
  --line: #d5dddc;
  --teal: #0b7566;
  --petrol: #0f2e36;
  --petrol-2: #173d47;
  --petrol-line: #2c525c;
  --on-petrol: #eef5f3;
  --on-petrol-muted: #a9c2c1;
  --mint: #5fd6be;
  --mint-hover: #7be0cc;
  --on-mint: #082a2b;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--mint); }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 72px; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.1; color: var(--ink); max-width: 22ch; }
.section-lead { color: var(--muted); max-width: 58ch; margin-top: 12px; }

.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 8px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-mint { background: var(--mint); color: var(--on-mint); }
.btn-mint:hover { background: var(--mint-hover); }
.btn-ghost-dark { color: var(--on-petrol); border-color: var(--petrol-line); background: none; }
.btn-ghost-dark:hover { background: var(--petrol-2); }
.btn-outline { color: var(--teal); border-color: var(--teal); background: none; }
.btn-outline:hover { background: #e4f0ed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Portada */
.hero { background: var(--petrol); color: var(--on-petrol); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; border-bottom: 1px solid var(--petrol-line); }
.brand { color: var(--on-petrol); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand span { color: var(--mint); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.nav a { color: var(--on-petrol-muted); text-decoration: none; }
.nav a:hover { color: var(--on-petrol); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; line-height: 1.02; color: var(--on-petrol); }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-copy p { color: var(--on-petrol-muted); font-size: 18.5px; max-width: 46ch; }

/* Esquema del negocio */
.map { display: block; width: 100%; max-width: 100%; height: auto; min-width: 0; }
.map .link { stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 4 8; fill: none; animation: flow 1.8s linear infinite; }
.map .node { fill: var(--petrol-2); stroke: var(--petrol-line); stroke-width: 1; }
.map .hub { fill: var(--mint); }
.map text { font-family: var(--font-body); font-size: 15.5px; font-weight: 500; fill: var(--on-petrol); text-anchor: middle; dominant-baseline: central; }
.map .hub-text { font-family: var(--font-display); font-weight: 700; font-size: 18px; fill: var(--on-mint); }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* Experiencia en una línea */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin-block: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; padding-block: 20px; font-size: 15.5px; color: var(--muted); }
.proof strong { color: var(--ink); font-weight: 600; }

/* Lo que pasa / lo que hago */
.pairs { margin-top: 36px; border-top: 2px solid var(--ink); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 40px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.pair h3 { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.pair p { color: var(--muted); }
.pairs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }

/* Cómo trabajo */
.white { background: var(--white); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: grid; gap: 8px; min-width: 0; }
.steps .n { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--teal); }
.steps h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.steps p { color: var(--muted); font-size: 16px; }

/* Aplicaciones */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; align-items: start; margin-top: 8px; }
.app { display: grid; gap: 10px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.app h3 { font-size: 24px; font-weight: 700; color: var(--ink); }
.app p { color: var(--muted); font-size: 16px; }
.app .actions { padding-top: 6px; }
.app .btn { font-size: 15px; padding: 9px 16px; }
.apps-intro { min-width: 0; }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 48px; }
.about-text { display: grid; gap: 14px; min-width: 0; }

/* Contacto */
.contact { background: var(--petrol); color: var(--on-petrol); }
.contact h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.05; color: var(--on-petrol); max-width: 18ch; }
.contact p.lead { color: var(--on-petrol-muted); margin-top: 12px; max-width: 52ch; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.email { font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; color: var(--on-petrol); text-decoration-color: var(--mint); overflow-wrap: anywhere; user-select: all; }
.copy-note { color: var(--on-petrol-muted); font-size: 14.5px; min-height: 1.4em; margin-top: 8px; }
.foot { border-top: 1px solid var(--petrol-line); margin-top: 48px; padding-top: 18px; font-size: 14.5px; color: var(--on-petrol-muted); }

@media (max-width: 860px) {
  .band { padding-block: 52px; }
  .hero-grid, .pair, .about, .apps, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 40px 48px; gap: 32px; }
  .pairs-head { display: none; }
  .steps { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map .link { animation: none; }
}
