/* ───────── Fuentes (Fontshare, autoalojadas) ───────── */
@font-face { font-family: "Clash Grotesk"; src: url("./fonts/clash-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("./fonts/clash-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("./fonts/clash-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("./fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("./fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("./fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ───────── Tokens ───────── */
:root {
  --ink: #111111;
  --ink-2: #1c1c1c;
  --paper: #fafaf6;
  --paper-2: #f1f0ea;
  --line: #dddcd4;
  --muted: #5d5d58;
  --muted-light: #a9a9a2;
  --yellow: #fce045;
  --amber: #fdb241;

  --display: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Satoshi", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--yellow); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: .7rem; height: .7rem; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }
.eyebrow--center { display: flex; justify-content: center; }

/* ───────── Botones ───────── */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  text-decoration: none; border: 2px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--dark:hover { box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 2px var(--ink); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); border-color: var(--paper); }
.btn--ghost-light:hover { box-shadow: 4px 4px 0 var(--yellow); }
.btn--yellow:hover { box-shadow: 4px 4px 0 var(--paper); }
.btn--lg { font-size: 1.125rem; padding: 1.1rem 2rem; }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--pad);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(250, 250, 246, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: .6rem; }
.nav__logo img { width: 92px; height: auto; color: var(--ink); }
.nav__links { display: none; gap: 2rem; margin-left: auto; }
.nav__links a { font-family: var(--display); font-weight: 500; text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__toggle { margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: var(--pad);
}
.menu-movil[hidden] { display: none; }
.menu-movil a:not(.btn) { font-family: var(--display); font-size: 2.5rem; font-weight: 600; text-decoration: none; }
.menu-movil .btn { align-self: flex-start; margin-top: 1rem; }
body.menu-open .nav { background: transparent; box-shadow: none; }
body.menu-open .nav__logo { visibility: hidden; }
body.menu-open .nav__toggle { border-color: var(--paper); }

/* ───────── Hero ───────── */
.hero {
  min-height: 100svh;
  max-width: var(--max); margin: 0 auto;
  padding: 7.5rem var(--pad) 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__kicker { font-family: var(--display); font-weight: 500; color: var(--muted); margin-bottom: 1.25rem; }
.hero__title { font-size: clamp(3.4rem, 14vw, 12.5rem); font-weight: 700; line-height: .92; letter-spacing: -.03em; }
.hero__title .line { display: block; clip-path: inset(-1em -1em -.06em -1em); padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; position: relative; }
.hero__crown {
  position: absolute; width: .62em; height: auto; top: -.3em; right: -.5em;
  transform: rotate(14deg); animation: crown 5s ease-in-out infinite;
  filter: drop-shadow(5px 6px 0 rgba(17, 17, 17, .12));
}
@keyframes crown { 0%, 100% { transform: rotate(14deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-6px); } }
.hero__bottom { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38ch; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ───────── Banda ───────── */
.band { background: var(--ink); color: var(--paper); overflow: hidden; padding: 1.1rem 0; transform: rotate(-2deg); margin: 1rem -2vw 0; width: 104vw; max-width: none; border-block: 2px solid var(--ink); }
.band__track { display: flex; align-items: center; gap: 1.75rem; width: max-content; animation: marquee 32s linear infinite; }
.band span { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -.03em; line-height: 1; }
.band span.o { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.band i { width: .9rem; height: .9rem; border-radius: 50%; background: var(--yellow); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Secciones ───────── */
section { position: relative; }
.section-head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4rem); padding: 0 var(--pad); }
.section-head h2 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); letter-spacing: -.035em; }
.section-head--light .eyebrow::before { border-color: var(--paper); }

/* Intro */
.intro { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 10vw, 8.5rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.intro__grid { display: grid; gap: 2rem; }
.intro__title { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; line-height: 1.05; max-width: 14ch; }
.intro__copy { display: grid; gap: 1.1rem; color: var(--ink-2); max-width: 52ch; font-size: 1.125rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(3rem, 6vw, 5rem); }
.stats li { background: var(--paper); padding: 1.5rem 1.25rem; display: grid; gap: .25rem; }
.stats strong { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .95rem; }

/* Trabajo */
.work { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper-2); border-block: 2px solid var(--ink); }
.filters { max-width: var(--max); margin: 0 auto 2.5rem; padding: 0 var(--pad); display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 500 .95rem var(--display); padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--yellow); }
.chip.is-active { background: var(--ink); color: var(--paper); }
.work__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); align-items: start; grid-auto-flow: dense; }
.card { display: grid; gap: 1rem; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card.is-hidden { display: none; }
.card.card--wide-off { grid-column: auto; }
.card.card--wide-off .card__frame img { aspect-ratio: 16 / 10; }
.card__frame {
  position: relative; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card__frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.card--feature .card__frame img { aspect-ratio: auto; }
.card:hover .card__frame { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 2px var(--ink); }
.card:hover .card__frame img { transform: scale(1.025); }
.card__meta { display: grid; gap: .15rem; }
.card__meta h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.card__meta p { color: var(--muted); }
.tags { font-size: .85rem; font-weight: 500; color: var(--ink); margin-top: .35rem; }

/* Rubros */
.sectors { padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad); text-align: center; }
.sectors__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; max-width: 1100px; margin: 0 auto; }
.sectors__list li { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.15; }
.sectors__list li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* Servicios */
.services { background: var(--ink); color: var(--paper); padding: clamp(4.5rem, 9vw, 8rem) 0; border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
.services__list { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.service { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; row-gap: .5rem; padding: 1.75rem 0; border-top: 1px solid #333; transition: padding .35s var(--ease); }
.service:last-child { border-bottom: 1px solid #333; }
.service__n { font-family: var(--display); font-weight: 500; color: var(--yellow); padding-top: .35rem; grid-row: span 2; }
.service h3 { font-size: clamp(1.45rem, 3.4vw, 2.75rem); transition: color .3s; overflow-wrap: break-word; hyphens: auto; }
.service p { color: var(--muted-light); max-width: 56ch; }
.service:hover h3 { color: var(--yellow); }

/* Proceso */
.process { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.steps { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; gap: 1.25rem; counter-reset: s; }
.step { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.75rem; background: var(--paper); display: grid; gap: .6rem; align-content: start; transition: background .3s, transform .3s var(--ease); }
.step:hover { background: var(--yellow); transform: rotate(-1deg); }
.step__n { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 700 1.1rem var(--display); margin-bottom: .5rem; }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--ink-2); }

/* Testimonios */
.quotes { padding: 0 var(--pad) clamp(4.5rem, 9vw, 8rem); }
.quotes__grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.25rem; }
.quote { margin: 0; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius); background: var(--ink); color: var(--paper); display: grid; gap: 1.5rem; align-content: space-between; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; letter-spacing: -.01em; }
.quote figcaption { font-size: .95rem; color: var(--muted-light); }
.quote--yellow { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); }
.quote--yellow figcaption { color: var(--ink-2); }

/* FAQ */
.faq { padding: clamp(4.5rem, 9vw, 8rem) 0; border-top: 2px solid var(--ink); }
.faq__list { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 500; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details p { padding: 0 0 1.75rem; max-width: 70ch; color: var(--ink-2); }

/* Contacto */
.contact { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(5rem, 11vw, 9rem) var(--pad); overflow: hidden; }
.contact .eyebrow::before { border-color: var(--paper); }
.contact__crown { width: clamp(90px, 12vw, 150px); margin: 0 auto 1.5rem; transform: rotate(-8deg); animation: crown 5s ease-in-out infinite; }
.contact__title { font-size: clamp(2.2rem, 9.5vw, 7.5rem); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
.contact__title .hl { background: none; color: var(--yellow); }
.contact__lead { margin: 1.5rem auto 2.5rem; color: var(--muted-light); font-size: 1.15rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.contact .btn--yellow { border-color: var(--yellow); }
@media (max-width: 479px) {
  .contact__actions .btn { width: 100%; white-space: normal; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 0 var(--pad) 2rem; }
.footer__top { max-width: var(--max); margin: 0 auto; padding: 2.5rem 0; border-top: 1px solid #333; display: grid; gap: 1.75rem; justify-items: start; }
.footer__logo { width: 92px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer nav a { text-decoration: none; color: var(--muted-light); transition: color .2s; display: inline-flex; align-items: center; min-height: 44px; }
.footer nav a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #444; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.footer__social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer__bottom { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--muted-light); font-size: .9rem; }

/* WhatsApp flotante */
.whatsapp-btn {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* ───────── Animaciones de entrada ───────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js.is-loaded .hero__title .line > span { transform: none; }

/* ───────── Responsive ───────── */
@media (min-width: 768px) {
  .intro__grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li { padding: 2rem 1.75rem; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
  .card.card--wide-off { grid-column: auto; }
  .service { grid-template-columns: 5rem 1fr 1fr; align-items: baseline; padding: 2.25rem 0; }
  .service__n { grid-row: auto; }
  .service:hover { padding-left: 1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes__grid { grid-template-columns: 1.1fr 1fr; }
  .footer__top { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer nav { justify-content: center; }
}
@media (min-width: 1024px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3n+2) { transform: translateY(2.5rem); }
  .step:nth-child(3n+2):hover { transform: translateY(2.5rem) rotate(-1deg); }
  .steps { padding-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero__title .line > span { opacity: 1; transform: none; }
}
