/* AUSTER Estudio Digital · V1 · tokens y estilos */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca */
  --austral: #0f1b2d;
  --nieve: #f4f2ec;
  --lenga: #e0552b;
  --basalto: #5e6a73;
  --glaciar: #8cc9d3;

  /* Tipografía */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.25rem, 1.35rem + 3.4vw, 4rem);
  --fs-h1: clamp(2rem, 1.55rem + 1.6vw, 2.75rem);
  --fs-h2: clamp(1.625rem, 1.45rem + 0.6vw, 1.875rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --fs-eyebrow: 0.8125rem;
  --fs-mega: clamp(3.5rem, 1rem + 11vw, 13rem);

  /* Espacio */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;
  --section-y: clamp(var(--space-24), 10vw, 160px);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --header-h: 72px;

  /* Forma */
  --radius-sm: 4px; --radius-md: 6px; --radius-pill: 999px;

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.is-dark {
  --ground: var(--austral);
  --ink: var(--nieve);
  --ink-muted: #aab4bc;
  --surface: #16243a;
  --line: #2a3a50;
  --accent: var(--lenga);
  background: var(--ground);
  color: var(--ink);
}
.is-light {
  --ground: var(--nieve);
  --ink: var(--austral);
  --ink-muted: var(--basalto);
  --surface: #ffffff;
  --line: #dcd7cc;
  --accent: var(--lenga);
  background: var(--ground);
  color: var(--ink);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  background: var(--austral);
  color: var(--nieve);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lenga); color: var(--austral); }

:focus-visible {
  outline: 2px solid var(--lenga);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--lenga);
  color: var(--austral);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tipografía */
.t-display, .t-h1, .t-h2, .t-h3, .t-mega {
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.t-display { font-size: var(--fs-display); line-height: 1.05; }
.t-h1 { font-size: var(--fs-h1); line-height: 1.1; }
.t-h2 { font-size: var(--fs-h2); line-height: 1.15; }
.t-h3 { font-size: var(--fs-h3); line-height: 1.25; }
.t-mega { font-size: var(--fs-mega); line-height: 0.98; letter-spacing: -0.01em; }
.eyebrow {
  font-stretch: 125%;
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 18px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label {
  font-weight: 600;
  font-size: var(--fs-label);
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); max-width: 34em; }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.dot { color: var(--lenga); display: inline-block; }
.hl { color: var(--lenga); }

/* Botones y enlaces */
.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
  will-change: transform;
}
.btn--primary { --btn-bg: var(--lenga); --btn-ink: var(--austral); }
.btn--primary:hover { --btn-bg: #ea6a42; }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 var(--space-4); font-size: 0.9375rem; }

/* La ráfaga: barra lenga con punta redonda, se alarga al pasar */
.gust {
  position: relative;
  display: inline-block;
  flex: none;
  width: 22px;
  height: 7px;
  background: var(--lenga);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  transition: width .45s var(--ease-out);
}
.btn--primary .gust { background: var(--austral); }
a:hover .gust, button:hover .gust, a:focus-visible .gust { width: 34px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Encabezado */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--nieve);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 27, 45, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: #2a3a50;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 24px; width: auto; }
.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: var(--space-8); }
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #d5dbe0;
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--nieve); }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-2);
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--nieve);
}
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 10px; right: 6px; background: var(--lenga); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; right: 0; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .brand img { height: 26px; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + var(--space-8)) var(--gutter) var(--space-12);
  background: var(--austral);
  color: var(--nieve);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-out); }
.mobile-menu ul { display: grid; gap: var(--space-2); }
.mobile-menu a:not(.btn) {
  display: block;
  padding: var(--space-2) 0;
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: var(--space-6); }
.mobile-menu__foot .btn { width: 100%; }

/* Secciones */
.section { position: relative; padding-block: var(--section-y); }
.section-head { display: grid; gap: var(--space-6); margin-bottom: clamp(var(--space-12), 6vw, var(--space-24)); max-width: 46rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.wind {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero__inner {
  flex: 1;
  display: grid;
  align-content: center;
  gap: var(--space-12);
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: var(--space-12);
}
.hero__copy { display: grid; gap: var(--space-6); max-width: 46rem; }
.hero__title { max-width: 15em; }
.hero__lead { color: #c9d0d6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }
.hero__mark {
  justify-self: end;
  width: min(62vw, 280px);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero__mark svg { width: 100%; height: 100%; overflow: visible; }
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-height: 44px;
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 40px;
  background: #2a3a50;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--nieve);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { to { top: 110%; } }

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--space-8);
  }
  .hero__mark { width: min(36vw, 500px); justify-self: end; }
}

/* Dato */
.fact { border-top: 1px solid var(--line); }
.fact__grid { display: grid; gap: var(--space-12); }
.fact__title { max-width: 22em; }
.fact__title .hl { white-space: nowrap; }
.fact__aside { display: grid; gap: var(--space-8); align-content: start; }
.tally { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 14px); max-width: 520px; }
.tally li {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid #3b4d66;
}
.tally li.is-on { background: var(--lenga); border-color: var(--lenga); }
.fact__note { font-size: var(--fs-lead); line-height: 1.5; max-width: 26em; }
@media (min-width: 900px) {
  .fact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-16); }
}

/* Servicios */
.services { border-bottom: 1px solid var(--line); counter-reset: svc; }
.service {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}
.service__rule {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}
.service__num { color: var(--ink-muted); }
.service__title { display: flex; align-items: center; }
.service__title .gust { width: 0; height: 9px; margin-right: 0; transition: width .5s var(--ease-out), margin-right .5s var(--ease-out); }
.service:hover .service__title .gust { width: 34px; margin-right: var(--space-4); }
.service__body { display: grid; gap: var(--space-4); max-width: 34em; }
.service__body p { color: var(--ink-muted); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--ink);
}
@media (min-width: 900px) {
  .service {
    grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-8);
    align-items: start;
  }
  .service__num { padding-top: 10px; }
  .service__title { font-size: var(--fs-h1); }
}

/* Proceso */
.process { overflow: hidden; }
.process__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-12); }
.process__progress {
  position: relative;
  height: 2px;
  background: var(--line);
  margin-bottom: var(--space-12);
  display: none;
}
.process__bar { position: absolute; inset: 0; background: var(--lenga); transform-origin: left center; transform: scaleX(0); }
.steps { display: grid; gap: var(--space-12); }
.step { position: relative; display: grid; gap: var(--space-4); padding-left: var(--space-8); border-left: 1px solid var(--line); }
.step__num {
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #6b7c8f;
  transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s;
}
.step.is-active .step__num { color: var(--nieve); -webkit-text-stroke-color: var(--nieve); }
.step__title { display: flex; align-items: center; gap: var(--space-3); }
.step__title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .4s;
}
.step.is-active .step__title::before { background: var(--lenga); }
.step p { color: var(--ink-muted); max-width: 26em; }

@media (min-width: 960px) {
  .process.is-horizontal { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + var(--space-8)) var(--space-12); }
  .process.is-horizontal .process__progress { display: block; }
  .process.is-horizontal .process__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 92%, transparent 100%);
  }
  .process.is-horizontal .steps {
    display: flex;
    gap: clamp(var(--space-12), 6vw, var(--space-24));
    width: max-content;
    will-change: transform;
  }
  .process.is-horizontal .step { width: min(500px, 38vw); border-left: 0; padding-left: 0; }
  .process:not(.is-horizontal) .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Campaña */
.campaign { padding-block: clamp(var(--space-24), 12vw, 200px); overflow: hidden; }
.campaign .t-mega { padding-inline: var(--gutter); }
.campaign__line { display: block; white-space: nowrap; will-change: transform; }
.campaign__line + .campaign__line { margin-top: 0.08em; }
.campaign__line--b { padding-left: 18vw; }
html:not(.motion) .campaign__line { white-space: normal; padding-left: 0; }
html:not(.motion) .campaign .t-mega { font-size: clamp(2.5rem, 1rem + 6vw, 6rem); }

/* Preguntas */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: var(--space-12); }
.faq__side { display: grid; gap: var(--space-6); align-content: start; }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
  padding-block: var(--space-4);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 18px; height: 18px; }
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); background: var(--lenga); }
.qa__a { padding-bottom: var(--space-6); max-width: 36em; color: var(--ink-muted); overflow: hidden; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); }
  .faq__side { position: sticky; top: calc(var(--header-h) + var(--space-8)); }
}

/* Contacto */
.contact { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(var(--space-24), 12vw, 200px); }
.contact__head { display: grid; gap: var(--space-6); margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.contact__title { font-size: clamp(2.125rem, 0.4rem + 7.6vw, 8.5rem); line-height: 1; text-wrap: nowrap; }
.contact__grid { display: grid; gap: var(--space-12); }
.contact__copy { display: grid; gap: var(--space-6); align-content: start; }
.contact__list { display: grid; border-top: 1px solid var(--line); }
.contact__item {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.contact__item a, .contact__item span:last-child { font-size: 1.125rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact__item a { display: inline-flex; align-items: center; min-height: 44px; }
.contact__item a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-16); }
}

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-16) var(--space-8); }
.footer__top { display: grid; gap: var(--space-12); padding-bottom: var(--space-12); }
.footer__brand { display: grid; gap: var(--space-8); align-content: start; }
.footer__brand img { width: min(100%, 420px); height: auto; }
@media (min-width: 900px) { .footer__brand img { width: clamp(320px, 30vw, 420px); } }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.footer__nav h2 { margin-bottom: var(--space-3); }
.footer__nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: #d5dbe0; }
.footer__nav a:hover { color: var(--nieve); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* Estados previos a la animación (solo si hay JS y movimiento permitido) */
.motion [data-hero] { opacity: 0; }
.motion .hero__mark .mark-a { fill-opacity: 0; }
.motion .hero__mark .mark-gust { opacity: 0; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scroll-cue__line::after { display: none; }
}
