/* Grupo Globaliza — landing
   Tokens tomados del Manual de Marca v1.0 (color, tipografía) y del diseño de la landing. */

/* Manrope variable (400–800), subconjunto latin, alojada en el sitio. Licencia OFL. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.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;
}

:root {
  --teal: #0F766E;
  --teal-deep: #0B5750;
  --graphite: #0F1720;
  --paper: #F7F6F3;
  --white: #FFFFFF;
  --text: #3D4643;
  --text-muted: #5A625F;
  --text-on-dark: #A7B2AF;
  --line: #E4E2DC;
  --line-input: #D9D6CE;
  --line-strong: #C9C5BB;

  --font: Manrope, Inter, system-ui, sans-serif;
  --container: 1120px;
  --gutter: 28px;
  --header-h: 67px;
  --radius: 3px;
}

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

html { scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol { margin: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--graphite);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Símbolo GG ---------- */

.gg {
  display: block;
  fill: none;
  stroke: var(--teal);
  stroke-width: var(--gg-w, 13);
  stroke-linejoin: miter;
  overflow: visible;
}
.gg--paper { stroke: var(--paper); }

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { border-top: 1px solid var(--line); }
.section--white { background: var(--white); }
.section--dark { background: var(--graphite); color: var(--paper); border-top: 0; }

.section__inner { padding-top: 88px; padding-bottom: 88px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}
.split--process { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.split--center { align-items: center; }

.stack-7, .stack-10, .stack-18, .stack-22 { display: flex; flex-direction: column; }
.stack-7 { gap: 7px; }
.stack-10 { gap: 10px; }
.stack-18 { gap: 18px; }
.stack-22 { gap: 22px; }

/* ---------- Tipografía ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: pretty;
}

.body-sm { font-size: 14px; line-height: 1.7; color: var(--text); }
.body-lg { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 460px; text-wrap: pretty; }
.section--dark .body-lg { color: var(--text-on-dark); }
.section--dark .eyebrow { color: #2DB5A8; } /* teal claro: 7.1:1 sobre graphite (el teal de marca da 3.3:1) */

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { display: block; width: 100%; padding: 15px; }

.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); color: var(--white); }

.btn--dark { background: var(--graphite); color: var(--paper); }
.btn--dark:hover { background: var(--teal); color: var(--paper); }

.btn--outline { border-color: var(--line-strong); color: var(--graphite); }
.btn--outline:hover { border-color: var(--graphite); color: var(--graphite); }

.btn:disabled { opacity: 0.7; cursor: default; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 243, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { color: inherit; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__grupo { font-size: 9px; font-weight: 500; letter-spacing: 0.3em; color: var(--text-muted); }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav__link { color: var(--text); }
.site-nav__link:hover { color: var(--teal); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 88px;
}

.hero__copy { display: flex; flex-direction: column; gap: 26px; }

.hero__title {
  font-size: clamp(38px, 5.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: pretty;
}

.hero__lead { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 500px; text-wrap: pretty; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--graphite);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}
.hero__mark .gg { width: 100%; height: 100%; max-width: 260px; }

/* ---------- Servicios ---------- */

.services { display: flex; flex-direction: column; gap: 48px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  background: var(--white);
}
.service__num { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); }
.service__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Proceso ---------- */

.steps { list-style: none; padding: 0; display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-size: 13px; font-weight: 700; color: var(--teal); }
.step__title { font-size: 18px; font-weight: 700; }

/* ---------- Nosotros ---------- */

.about__mark { display: flex; align-items: center; justify-content: center; }
.about__mark .gg { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; height: auto; opacity: 0.9; }

/* ---------- Contacto ---------- */

.contact__lead { max-width: 420px; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  font-size: 15px;
  color: var(--text);
}
.contact__email { font-weight: 700; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--teal); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B42318; }

.contact-form .btn { margin-top: 4px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 13px; line-height: 1.6; color: var(--text); }
.form-status:empty { display: none; }
.form-status.is-error { color: #B42318; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper); border-top: 1px solid var(--line); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  padding-bottom: 36px;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero,
  .split,
  .split--process { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero__mark { max-width: 360px; width: 100%; }

  .section__inner { padding-top: 64px; padding-bottom: 64px; }

  .about__mark .gg { max-width: 200px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .site-nav__link { display: none; }

  .hero__mark { display: none; }

  .services { gap: 32px; }
  .service { padding: 28px 24px; }

  .step { grid-template-columns: 40px 1fr; gap: 14px; }

  .about__mark { justify-content: flex-start; }
  .about__mark .gg { max-width: 120px; }

  .contact-form { padding: 24px 20px; }
}
