:root {
  --ink: #16202a;
  --muted: #4a5762;
  --paper: #fbfaf7;
  --band: #f0eee8;
  --line: #d9d5ca;
  --accent: #febb02;      /* ámbar del logo, solo decorativo */
  --accent-dark: #7a5700; /* ámbar oscuro con contraste suficiente para texto */
  --max: 68rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

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

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 3rem; width: auto; }
nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
nav a:hover { text-decoration: underline; }

/* Sections */
section { padding: 4rem 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
section[id] { scroll-margin-top: 4.5rem; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.8rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); max-width: 22ch; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.hero { padding: 5rem 0 4.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 0.9rem; }
.lead { font-size: 1.2rem; max-width: 40rem; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.8rem; flex-wrap: wrap; }

.btn {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 4px; text-decoration: none; font-weight: 600;
}
.btn { border-bottom: 4px solid var(--accent); }
.btn:hover { background: #000; color: #fff; }
.link { font-weight: 600; }

.intro { max-width: 40rem; color: var(--muted); }

/* Services */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 1.8rem; }
.grid article { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 1.4rem; }
.grid article p:last-child { margin-bottom: 0; }

.sub { margin-top: 2.5rem; }

/* Steps */
.steps { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding: 0; margin: 1.8rem 0 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Hero facts */
.facts { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding: 1.5rem 0 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); max-width: 56rem; }
.facts li { color: var(--muted); font-size: 0.97rem; }
.facts strong { display: block; color: var(--ink); font-size: 1.1rem; }

/* Cases */
.cases { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 1.8rem; }
.cases article { border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 1.4rem; background: #fff; }
.role { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-dark); margin-bottom: 0.7rem; }
.cases article p:last-child { margin-bottom: 0; }
.cases h3 { margin-bottom: 0.5rem; }

/* Profile */
.two { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plain li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }


/* Contact */
.mail { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; margin: 1rem 0; }
.small { font-size: 0.92rem; color: var(--muted); }
.fine { list-style: none; padding: 1rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); max-width: 44rem; font-size: 0.82rem; color: var(--muted); }
.fine li { margin-bottom: 0.3rem; }

/* Docs */
.doc h1 { max-width: none; font-size: 2rem; }
.doc h2 { margin-top: 2rem; font-size: 1.25rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: 0.92rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }

@media (max-width: 40rem) {
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }
  .top { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .top, .skip, .actions { display: none; }
  body { background: #fff; }
}
