:root {
  --paper: #f2ece1;
  --paper-deep: #e8e0d2;
  --cream: #ece4d5;
  --ink: #100f0f;
  --night: #0a0909;
  --red: #cf0a13;
  --red-bright: #d2171f;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --bar: 4.5rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

::selection {
  background: var(--red);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: min(86rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-top: 1.5rem; }

.eyebrow, .label, .desk a, .drawer a, .btn, .formatos, .kicker p, figcaption, .foot-bottom {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

a { color: inherit; }

.paper { position: relative; }
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}
.paper > .wrap { position: relative; z-index: 1; }

.label { display: flex; align-items: baseline; gap: 0.75rem; margin: 0; color: rgb(16 15 15 / 45%); }
.label span:first-child, .label.light span:first-child { color: var(--red); }
.label .tick { width: 1.5rem; height: 1px; align-self: center; background: rgb(16 15 15 / 25%); }
.label.light { color: rgb(236 228 213 / 45%); }
.label.light .tick { background: rgb(236 228 213 / 25%); }

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--bar);
  background: var(--paper);
  border-bottom: 1px solid rgb(16 15 15 / 12%);
}

.bar-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { flex: none; line-height: 0; }
.logo img { height: 1.5rem; width: auto; }

.desk { display: none; margin-left: auto; gap: 2rem; }
.desk a { color: rgb(16 15 15 / 60%); text-decoration: none; }
.desk a:hover { color: var(--ink); }

.wa {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
}
.wa:hover { background: var(--ink); }
.wa svg { width: 1rem; height: 1rem; fill: currentColor; }
.wa-word { display: none; }
.wa-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.burger {
  position: relative;
  margin-left: 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}
.burger span:nth-of-type(n + 3) {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s;
}
.when-closed, .when-open {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.when-open { display: none; }

/* El menú empuja el contenido; al saltar a una sección se queda arriba y no la tapa. */
.drawer {
  display: none;
  padding-top: var(--bar);
  background: var(--paper);
  border-bottom: 1px solid rgb(16 15 15 / 12%);
}
.drawer a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(16 15 15 / 10%);
  color: rgb(16 15 15 / 70%);
  text-decoration: none;
}
.drawer a:last-child { border-bottom: 0; }

.nav-check:focus-visible ~ .bar .burger { outline: 2px solid currentColor; outline-offset: 3px; }
.nav-check:checked ~ .drawer { display: block; }
.nav-check:checked ~ .bar .burger span:nth-of-type(3) { transform: translateY(3.5px) rotate(45deg); }
.nav-check:checked ~ .bar .burger span:nth-of-type(4) { transform: translateY(-3.5px) rotate(-45deg); }
.nav-check:checked ~ .bar .when-closed { display: none; }
.nav-check:checked ~ .bar .when-open { display: inline; }

/* Hero */
.hero {
  background: var(--night);
  color: var(--cream);
  padding: 7.5rem 0 3.5rem;
}
.kicker { display: flex; align-items: center; gap: 1rem; }
.kicker p { margin: 0; color: rgb(236 228 213 / 70%); }
.kicker .dim { color: rgb(236 228 213 / 45%); }
.dot { width: 0.5rem; height: 0.5rem; background: var(--red); flex: none; }
.line { height: 1px; flex: 1; background: rgb(236 228 213 / 15%); }

.hero-grid { margin-top: 3rem; }
.hero h1 span { color: rgb(236 228 213 / 50%); }
.lead { max-width: 36rem; margin: 2rem 0 0; color: rgb(236 228 213 / 75%); font-size: clamp(1.125rem, 2vw, 1.25rem); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  padding: 1rem 1.5rem;
}
.btn:hover { background: var(--red-bright); }
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.btn.ghost { background: transparent; color: rgb(236 228 213 / 80%); border: 1px solid rgb(236 228 213 / 25%); }
.btn.ghost:hover { border-color: rgb(236 228 213 / 60%); color: var(--cream); }

.hero-logo { position: relative; max-width: 26rem; margin: 3rem auto 0; aspect-ratio: 900 / 922; }
.hero-logo video, .hero-logo .still { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.hero-logo .still { display: none; }

.formatos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 3.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgb(236 228 213 / 15%);
  color: rgb(236 228 213 / 55%);
}

/* Servicios */
.band { padding: 6rem 0; }
.services { display: grid; gap: 3rem; }
.services-intro p:last-child { max-width: 24rem; margin: 1.5rem 0 0; color: rgb(16 15 15 / 65%); }
.services ol { list-style: none; margin: 0; padding: 0; }
.services li {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgb(16 15 15 / 14%);
}
.services li:first-child { border-top: 0; padding-top: 0; }
.services li > span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: rgb(16 15 15 / 30%);
  margin-top: 0.55rem;
}
.services li:hover > span { color: var(--red); }
.services h3 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.services li p { max-width: 36rem; margin: 0.75rem 0 0; color: rgb(16 15 15 / 65%); }

/* Proceso */
.process { border-top: 1px solid rgb(16 15 15 / 14%); background: var(--paper-deep); overflow: hidden; }
.mark {
  position: absolute;
  top: -5rem;
  right: -6rem;
  width: 26rem;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
.process h2 { max-width: 16ch; }
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; border-top: 1px solid rgb(16 15 15 / 14%); }
.steps li { padding: 2.5rem 0; border-bottom: 1px solid rgb(16 15 15 / 14%); }
.steps li:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: baseline; gap: 1rem; }
.step-head span { font-family: var(--display); font-weight: 700; font-size: 3rem; letter-spacing: -0.03em; line-height: 1; color: rgb(207 10 19 / 85%); }
.step-head h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(16 15 15 / 50%);
}
.steps p { max-width: 28rem; margin: 1.25rem 0 0; color: rgb(16 15 15 / 70%); }

/* Oscuro */
.dark { background: var(--night); color: var(--cream); }
.quote { max-width: 52rem; margin: 0; }
.quote::before { content: ""; display: block; width: 1px; height: 2.5rem; background: var(--red); margin-bottom: 2rem; }
.quote p { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(1.9rem, 4.6vw, 3.6rem); margin: 0; }
.still-studio { margin: 4rem 0 0; }
.still-studio img { display: block; width: 100%; max-width: 64rem; }
.still-studio figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; color: rgb(236 228 213 / 40%); }
.still-studio figcaption span { width: 2rem; height: 1px; background: rgb(236 228 213 / 25%); }

.cities { border-top: 1px solid rgb(236 228 213 / 15%); }
.board {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 3rem 0 0;
  padding: 0;
  background: rgb(236 228 213 / 16%);
  border: 1px solid rgb(236 228 213 / 16%);
}
.board li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1rem 1rem 1.15rem;
  background: var(--night);
  align-content: space-between;
}
.board li:last-child { grid-column: 1 / -1; }
.board li:hover { background: #120f0f; }
.board li:hover .code { color: var(--cream); }
.idx, .code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
.idx { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--red); }
.code {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 7vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgb(236 228 213 / 88%);
  transition: color 0.2s;
}
.city {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(236 228 213 / 50%);
}
.board li::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgb(236 228 213 / 35%);
}
.board li:hover::after { background: var(--red); border-color: var(--red); }
.note { max-width: 36rem; margin: 3rem 0 0; color: rgb(236 228 213 / 60%); }

/* Contacto */
.contact { display: grid; gap: 3.5rem; }
.contact h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.blurb { max-width: 32rem; margin: 1.75rem 0 0; color: rgb(16 15 15 / 65%); }
.wa-card {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  padding: 1.25rem 1.75rem;
}
.wa-card:hover { background: var(--ink); }
.wa-card svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.wa-card .eyebrow { display: block; color: rgb(236 228 213 / 70%); }
.number { display: block; margin-top: 0.25rem; font-size: 1.5rem; }
.muted { color: rgb(16 15 15 / 45%); margin: 0; }
.redes { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid rgb(16 15 15 / 14%); }
.redes a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(16 15 15 / 14%);
  text-decoration: none;
}
.redes a:hover { color: var(--red); }
.redes a span:first-child { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.redes a span:nth-child(2) { color: rgb(16 15 15 / 45%); font-size: 1rem; }
.redes a:hover span:nth-child(2) { color: rgb(207 10 19 / 70%); }
.redes svg {
  margin-left: auto;
  align-self: center;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: rgb(16 15 15 / 30%);
}
.redes a:hover svg { color: var(--red); }

/* Pie */
.foot { padding: 4rem 0; }
.foot img { height: 5rem; width: auto; }
.foot-top p { max-width: 20rem; margin: 2rem 0 0; color: rgb(236 228 213 / 55%); font-size: 1rem; }
.foot-links { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.foot .eyebrow { color: rgb(236 228 213 / 40%); margin: 0; }
.foot .display { display: block; margin-top: 0.75rem; font-size: 1.25rem; text-decoration: none; }
.foot .display:hover { color: var(--red); }
.foot ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.foot li { margin: 0.35rem 0; }
.foot li a { color: rgb(236 228 213 / 70%); text-decoration: none; font-size: 1rem; }
.foot li a:hover { color: var(--red); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(236 228 213 / 15%);
  color: rgb(236 228 213 / 35%);
}
.foot-bottom p { margin: 0; }
.foot-bottom p:last-child { margin-left: auto; }

@media (min-width: 26rem) {
  .logo img { height: 1.75rem; }
  .wa { padding: 0.6rem 1rem; }
  .wa-word {
    display: inline;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .wa-sr { display: none; }
}

@media (min-width: 40rem) {
  .wrap { width: min(86rem, calc(100% - 4rem)); }
  .logo img { height: 2rem; }
  .hero { padding: 8.5rem 0 4rem; }
  .band, .dark { padding: 8rem 0; }
  .services li { gap: 2.5rem; padding: 2.5rem 0; }
  .foot img { height: 6rem; }
  .foot-links { flex-direction: row; gap: 4rem; }
  .board li { min-height: 11rem; padding: 1.25rem 1.25rem 1.4rem; }
  .board li::after { top: 1.25rem; right: 1.25rem; }
  .code { margin-top: 2rem; }
}

@media (min-width: 64rem) {
  .desk { display: flex; }
  .wa { margin-left: 0; }
  .burger { display: none; }
  .drawer, .nav-check:checked ~ .drawer { display: none; }
  .hero-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; align-items: center; gap: 2.5rem; margin-top: 4rem; }
  .hero-logo { max-width: none; margin: 0; }
  .services { grid-template-columns: 4fr 8fr; gap: 2.5rem; align-items: start; }
  .services-intro { position: sticky; top: 8rem; }
  .mark { width: 38rem; }
  .steps { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 0; margin-top: 5rem; }
  .steps li { border-bottom: 0; border-left: 1px solid rgb(16 15 15 / 14%); padding: 0 2rem; }
  .steps li:first-child { border-left: 0; padding-left: 0; }
  .step-head span { font-size: 3.75rem; }
  .board { grid-template-columns: repeat(6, 1fr); }
  .board li { grid-column: span 2; min-height: 14rem; padding: 1.5rem; }
  .board li:nth-child(n + 4), .board li:last-child { grid-column: span 3; }
  .board li::after { top: 1.5rem; right: 1.5rem; }
  .contact { grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: start; }
  .foot-top { display: flex; align-items: end; justify-content: space-between; }
  .foot-links { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo video { display: none; }
  .hero-logo .still { display: block; }
}
