/* system.css: fuentes, variables, reset y tipografía base */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-var.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;
}

@font-face {
  font-family: 'Jost Fallback';
  src: local('Arial');
  size-adjust: 96.7%;
  ascent-override: 111%;
  descent-override: 39%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptserif-400.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;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ptserif-700.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;
}

@font-face {
  font-family: 'PT Serif Fallback';
  src: local('Georgia');
  size-adjust: 100.5%;
  ascent-override: 103%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  --a1: #15171C;
  --a2: #1E2128;
  --a3: #2E323B;
  --a4: #ECEEF2;
  --a5: #9AA0AB;
  --a6: #D98A4E;
  --a7: #8F5A33;

  --g1: 8px;
  --g2: 16px;
  --g3: 24px;
  --g4: 40px;
  --g5: 64px;
  --g6: 104px;

  --r1: 10px;
  --r2: 8px;
  --s1: 0 1px 2px #00000073, 0 18px 36px -14px #000000A6;

  --f1: 'Jost', 'Jost Fallback', Arial, sans-serif;
  --f2: 'PT Serif', 'PT Serif Fallback', Georgia, serif;

  --w1: 1180px;
  --h1: 108px; /* altura total de la cabecera fija: franja de datos 44 + fila de marca 64 */
}

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

html {
  scroll-padding-top: calc(var(--h1) + 16px);

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;

  font-family: var(--f2);
  font-size: 1.0625rem;
  line-height: 1.65;

  color: var(--a4);
  background: var(--a1);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

address {
  font-style: normal;
}

h1,
h2,
h3 {
  font-family: var(--f1);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance; /* evita una palabra sola en la última línea */
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 1.9vw, 2.75rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 400;
}

p + p {
  margin-top: var(--g2);
}

a {
  color: var(--a4);
  text-decoration-color: var(--a7);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: var(--a6);
  text-decoration-color: currentColor;
}

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

strong,
b {
  font-weight: 700;
  color: var(--a4);
}

html [hidden] {
  display: none;
}

.salta {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 120;

  padding: 12px 18px;

  font-family: var(--f1);

  color: var(--a1);
  background: var(--a6);
}

.salta:focus {
  top: 12px;
}

.wrap {
  max-width: var(--w1);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* etiqueta con marcador inclinado: el sello de la marca */
.lb {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  font-family: var(--f1);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  color: var(--a5);
}

.lb::before {
  content: '';

  width: 22px;
  height: 10px;

  background: var(--a7);
  transform: skewX(-24deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--a6);
  border-radius: 0;

  font-family: var(--f1);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;

  color: var(--a1);
  background: var(--a6);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  color: var(--a6);
  background: transparent;
}

.arw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;

  font-family: var(--f1);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;

  color: var(--a4);
}

.arw::after {
  content: '\2192';

  transition: transform 0.2s;
}

.arw:hover,
.arw:focus-visible {
  color: var(--a6);
}

.arw:hover::after {
  transform: translateX(4px);
}

.num {
  font-family: var(--f1);
  font-weight: 300;
  font-variant-numeric: lining-nums;

  color: var(--a6);
}

/* revelado al hacer scroll: solo se oculta lo que queda por debajo del pliegue */
.rv {
  opacity: 0;
  translate: 0 18px;

  transition: opacity 0.6s ease, translate 0.6s ease;
}

.rv.live {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .rv {
    transition: none;
  }

  .btn,
  .arw::after {
    transition: none;
  }
}
