/* Noema — tokens de marca y componentes base */
@font-face {
  font-family: 'Noto Sans';
  src: url('fonts/NotoSans-latin.woff2') format('woff2');
  font-weight: 400 700;
  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: 'Noto Sans';
  src: url('fonts/NotoSans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Thomsan';
  src: url('fonts/Thomsan.woff2') format('woff2'), url('fonts/Thomsan.woff') format('woff');
  font-weight: 100 900;   /* un solo peso: evita negritas falsas */
  font-display: swap;
}

:root {
  /* Paleta oficial (brandbook sept. 2026) */
  --amarillo: #FFBD59;
  --cian: #29B5D0;
  --naranjo: #FF945D;
  --petroleo: #156474;
  --tinta: #1E1E1E;      /* negro de marca */
  /* Apoyo */
  --papel: #FFFDF7;      /* fondo de las láminas del brandbook */
  --niebla: #F3F1EA;
  --blanco: #FFFFFF;
  --gradiente: linear-gradient(90deg, #29B5D0 0%, #7CCBB8 38%, #FFBD59 74%, #FF945D 100%);

  --f-titulo: 'Thomsan', system-ui, sans-serif;
  --f-texto: 'Noto Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 20px;
  --max: 1240px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Logo: máscara del wordmark original, coloreable */
.logo {
  display: inline-block;
  aspect-ratio: 485 / 95.2;
  height: 26px;
  -webkit-mask: url('noema-logo.svg') center / contain no-repeat;
  mask: url('noema-logo.svg') center / contain no-repeat;
  background: var(--gradiente);
}
.logo--blanco { background: var(--blanco); }
.logo--cian { background: var(--cian); }
.logo--amarillo { background: var(--amarillo); }

/* Tipografía */
.display {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw + 0.6rem, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw + 0.9rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.kicker {
  font-family: var(--f-texto);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--petroleo);
  margin: 0;
  max-width: 34ch;
}
.lead { font-size: 1.0625rem; line-height: 1.65; max-width: 46ch; margin: 0; }
@media (min-width: 1024px) { .lead { font-size: 1.1875rem; } }

/* Botones: cápsulas */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font-family: var(--f-titulo); font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primario { background: var(--amarillo); color: var(--tinta); }
.btn--secundario { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--cian { background: var(--cian); color: var(--tinta); }
.btn--claro { background: transparent; color: var(--blanco); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
@media (hover: hover) and (pointer: fine) {
  .btn--primario:hover { background: #FFB23F; }
  .btn--secundario:hover { background: var(--niebla); }
  .btn--cian:hover { background: #3FC0DB; }
  .btn--claro:hover { box-shadow: inset 0 0 0 1.5px #fff; }
}

/* Barra superior */
.top {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.top nav { display: none; gap: 28px; font-family: var(--f-titulo); font-size: 0.9375rem; }
.top nav a { text-decoration: none; opacity: .85; }
@media (min-width: 1024px) { .top nav { display: flex; } .top { height: 88px; } .top .logo { height: 30px; } }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  background: var(--niebla); color: var(--tinta);
  transition: transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions .btn { display: none; min-height: 44px; padding: 0 18px; font-size: .9375rem; }
@media (min-width: 1024px) { .top-actions .btn { display: inline-flex; } .top-actions .menu { display: none; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
