/* Archivo variable (peso + ancho), autoalojada. Licencia OFL. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Creax — estilo editorial claro (referencia: Altreo). Contenido centrado a 1140px, titulares anchos, botones píldora negros. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #0e0e0e;
  --muted: #3d3d39;
  --subtle: #5c5b55;
  --line: #d8d7d2;
  --accent: #c8261f;
  --dark: #0e0e0e;
  --dark-2: #161614;
  --dark-line: #34342f;
  --on-dark: #ffffff;
  --on-dark-muted: #b5b4ad;
  --wa: #1f9d55;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1140px;
  --gutter: clamp(16px, 5vw, 40px);
  --section: clamp(88px, 11vw, 150px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Tipografía */
.display { margin: 0; font-weight: 700; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.display--xl { font-size: clamp(42px, 6.2vw, 80px); }
.display--lg { font-size: clamp(36px, 5vw, 72px); line-height: 1; }
.display--md { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.05; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lead { margin: 0; font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 36em; }
.body { margin: 0; font-size: 18px; color: var(--muted); max-width: 36em; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; font: 700 18px/1 var(--font); font-stretch: 115%; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--accent); color: var(--on-dark); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--on-dark); }
.btn--sm { min-height: 46px; padding: 0 24px; font-size: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 4px; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand__name { font-size: 36px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; }
.brand__tagline { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 18px; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.nav .btn { color: var(--on-dark); }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 110px) clamp(64px, 8vw, 100px); }
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__copy .eyebrow { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 4px; }
/* Collage 2×2 con anchos alternados, como en la referencia */
.hero__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 19vw, 260px)); grid-template-areas: "a a a b b" "c c d d d"; gap: 16px; min-width: 0; }
.tile { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.tile--1 { grid-area: a; } .tile--2 { grid-area: b; } .tile--3 { grid-area: c; } .tile--4 { grid-area: d; }

/* Franja */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; width: auto; max-width: var(--max); margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); padding: 32px 0; border-block: 1px solid var(--line); }
.strip > * { margin: 0; }
.strip__stat { display: flex; align-items: baseline; gap: 14px; color: var(--muted); font-size: 18px; }
.strip__num { font-size: clamp(48px, 5vw, 64px); font-weight: 700; font-stretch: 125%; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.strip__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 21px; font-weight: 600; font-stretch: 115%; }
.strip__tags li + li::before { content: "·"; color: var(--accent); margin-right: 36px; }

/* Secciones */
.section { padding-top: var(--section); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__head > div { min-width: 0; flex: 1 1 520px; }
.section__intro { margin: 0; flex: 0 1 420px; color: var(--muted); font-size: 18px; }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 420px); gap: 12px 32px; align-items: center; padding-block: 30px; border-top: 1px solid var(--ink); }
.service__num { font-size: 17px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.service__title { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; font-stretch: 120%; letter-spacing: -0.025em; line-height: 1.1; }
.service__text { margin: 0; color: var(--muted); }

/* Trabajo */
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--dark); }
.work__item { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--dark-line); }
.work__item:last-child { border-right: 0; }
.work__img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--dark-2); }
.work__label { padding: 24px 24px 28px; color: var(--on-dark); font-size: clamp(20px, 1.9vw, 27px); font-weight: 700; font-stretch: 115%; line-height: 1.15; }

/* Nosotros */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.about__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.about__copy .eyebrow { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--subtle); }
.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; font-stretch: 115%; line-height: 1.25; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; cursor: pointer; list-style: none; font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; font-stretch: 112%; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0; padding: 0 48px 26px 0; color: var(--muted); max-width: 40em; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(40px, 6vw, 80px); align-items: center; padding-bottom: var(--section); }
.contact__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contact__copy .eyebrow { margin: 0; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-weight: 600; }
.contact__direct a { text-decoration: underline; text-underline-offset: 4px; }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: 20px; background: var(--dark-2); color: var(--on-dark); min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form label { font-size: 14px; color: var(--on-dark-muted); }
.form input, .form textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 2px solid transparent; border-radius: 10px; background: var(--surface); color: var(--ink); font: 16px/1.4 var(--font); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__note { font-size: 15px; color: var(--on-dark-muted); }
.form__error { margin: 0; color: #ff8f86; font-size: 15px; }
.form__done { margin: 0; font-size: 15px; color: var(--on-dark-muted); }
.form__done a { color: var(--on-dark); border-bottom: 1px solid currentColor; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark); }
.footer__inner { padding-block: clamp(64px, 8vw, 96px) 40px; display: flex; flex-direction: column; gap: 56px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.footer__grid > * { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer a { color: var(--on-dark); overflow-wrap: anywhere; }
.footer a:hover { color: #ff8f86; }
.footer__name { font-size: 52px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; line-height: 1; }
.footer__brand p { margin: 8px 0 0; color: var(--on-dark-muted); max-width: 26em; }
.footer__social { display: flex; gap: 20px; margin-top: 6px; }
.footer__social a { border-bottom: 1px solid currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 15px; color: var(--on-dark-muted); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 999px; background: var(--wa); color: var(--on-dark); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.wa-float:hover { color: var(--on-dark); transform: translateY(-2px); }

/* Tablet */
@media (max-width: 999px) {
  .hero, .about, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { grid-template-rows: repeat(2, clamp(150px, 32vw, 280px)); }
  .service { grid-template-columns: 56px minmax(0, 1fr); }
  .service__text { grid-column: 2; }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__item { border-bottom: 1px solid var(--dark-line); }
  .work__item:nth-child(2n) { border-right: 0; }
  .work__item:last-child { grid-column: 1 / -1; }
  .work__item:last-child .work__img { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Menú móvil */
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); z-index: 30; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgb(0 0 0 / .12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a[aria-current="page"] { border-bottom: 0; background: var(--bg); }
  .nav .btn { margin-top: 6px; }
}

/* Teléfono */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .brand__name { font-size: 30px; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__tagline { font-size: 10px; }
  .hero__actions .btn { width: 100%; }
  .strip__tags { gap: 6px 20px; font-size: 18px; }
  .strip__tags li + li::before { margin-right: 20px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 24px; }
  .service__text { grid-column: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .wa-float { width: 54px; height: 54px; }
}
