@font-face { font-family: 'Archivo'; src: url('fonts/archivo-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F4F3EF; --surface: #FFFFFF; --ink: #16191C; --steel: #24394A; --steel-2: #4F6475;
  --muted: #5E666C; --line: #D5D6D1; --signal: #E2A72E; --error: #B3261E;
  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 2px;
  --ease: .15s cubic-bezier(.4, 0, .2, 1);
}

/* Reset */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); accent-color: var(--steel); caret-color: var(--steel); scrollbar-color: var(--steel-2) var(--paper); }
body { min-width: 320px; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--steel); color: var(--surface); }
:where(a, button, input, select, textarea):focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--steel); }

/* Base */
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
section[id] { scroll-margin-top: 5.5rem; }
.section { padding-block: 5rem; border-top: 1px solid var(--line); }
h1, h2 { font-weight: 800; text-wrap: balance; }
.title { max-width: 40rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.lead { margin-top: 1.25rem; max-width: 38rem; font-size: 1.0625rem; line-height: 1.75rem; color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 500; font-size: .8125rem; line-height: 1.25rem; letter-spacing: .02em; color: var(--steel-2); }
.note { margin-top: 1rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; border: 1px solid var(--steel); border-radius: var(--radius); background: var(--steel); color: var(--surface); padding: .75rem 1.5rem; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; transition: background-color var(--ease), border-color var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: none; color: var(--steel); }
.btn-ghost:hover { background: var(--surface); border-color: var(--steel); }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .875rem; }

/* Header */
.demo-bar { background: var(--ink); color: var(--paper); padding: .5rem 1.25rem; text-align: center; font-size: .75rem; line-height: 1rem; font-weight: 600; }
.demo-bar a { text-decoration: underline; text-underline-offset: 2px; }
.demo-bar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; height: 4.5rem; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; min-width: 0; }
.brand img { width: auto; height: 2.75rem; }
.nav-desktop { display: none; align-items: center; gap: 1.5rem; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; }
.nav-desktop a:not(.btn) { color: var(--muted); transition: color var(--ease); }
.nav-desktop a:not(.btn):hover { color: var(--ink); }
.menu-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); }
.menu-toggle[aria-expanded="true"] .icon-menu, .menu-toggle[aria-expanded="false"] .icon-close { display: none; }
.nav-mobile { display: flex; flex-direction: column; gap: .25rem; border-top: 1px solid var(--line); padding: 1rem 1.25rem; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; }
.nav-mobile a { border-radius: var(--radius); padding: .75rem; }
.nav-mobile a:hover { background: var(--surface); }
.nav-mobile .nav-cta { margin-top: .5rem; background: var(--steel); color: var(--surface); text-align: center; }
.nav-mobile .nav-cta:hover { background: var(--ink); }

/* Hero */
.hero { padding-block: 4rem 3rem; }
.hero-copy { max-width: 50rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.03em; }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { margin-top: 3rem; border-top: 3px solid var(--signal); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { margin-top: .5rem; }

/* Nosotros */
.about { display: grid; gap: 3rem; }
.services { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.services li { display: grid; gap: .25rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.services h3 { font-size: 1.125rem; font-weight: 600; }
.services p { color: var(--muted); }
.sheet { margin-top: 2.5rem; display: grid; border: 1px solid var(--ink); background: var(--surface); font-variant-numeric: tabular-nums; }
.sheet div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; align-items: baseline; padding: .75rem 1rem; }
.sheet div + div { border-top: 1px solid var(--ink); }
.sheet dd { font-weight: 600; }
.about-media { width: 100%; max-width: 30rem; aspect-ratio: 4 / 5; object-fit: cover; }

/* Proyectos */
.projects { margin-top: 3rem; display: grid; gap: 3rem 1.5rem; }
.project { border-top: 1px solid var(--ink); padding-top: 1rem; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project h3 { margin-top: 1rem; font-size: 1.375rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.project h3 + .mono { margin-top: .25rem; font-variant-numeric: tabular-nums; }
.project p:last-child { margin-top: .75rem; color: var(--muted); }

/* Contacto */
.contact { display: grid; gap: 3rem; }
.contact-data { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.contact-data div { display: grid; gap: .25rem; border-bottom: 1px solid var(--line); padding-block: 1rem; }
.form { display: grid; gap: 1.25rem; align-content: start; border: 1px solid var(--line); background: var(--surface); padding: 1.5rem 1.25rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 2.75rem; border: 1px solid var(--steel-2); border-radius: var(--radius); background: var(--surface); padding: .625rem .75rem; }
.field textarea { resize: vertical; }
.field :user-invalid { border-color: var(--error); }
.form-status a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.form .btn { justify-self: start; }
.form .note { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { display: flex; flex-direction: column; gap: 2rem; padding-block: 2.5rem; }
.footer-note { margin-top: .75rem; max-width: 26rem; font-size: .875rem; line-height: 1.5rem; color: var(--muted); }
.footer-meta { max-width: 30rem; font-size: .875rem; line-height: 1.5rem; color: var(--muted); }
.footer-meta p + p { margin-top: 1rem; }
.footer-meta a { text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--ink); }

@media (min-width: 40rem) {
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile { display: none; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet div { grid-template-columns: 1fr; gap: .25rem; }
  .sheet div + div { border-top: 0; border-left: 1px solid var(--ink); }
  .form { padding: 2rem; }
  .footer-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width: 48rem) {
  .hero { padding-top: 5rem; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .hero { padding-top: 2.5rem; }
  .hero-media { margin-top: 2rem; }
  .hero-media img { aspect-ratio: 8 / 3; }
  .about { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4rem; align-items: start; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
