@font-face {
  font-family: Gotham;
  src: url("assets/fonts/gotham/Gotham-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url("assets/fonts/gotham/Gotham-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url("assets/fonts/gotham/Gotham-BookItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url("assets/fonts/gotham/Gotham-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url("assets/fonts/gotham/Gotham-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url("assets/fonts/gotham/Gotham-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #007197;
  --teal-deep: #0a3d4d;
  --teal-soft: #6baec9;
  --gold: #ea960d;
  --red: #c5110f;
  --sand: #f4f1ec;
  --paper: #fafaf9;
  --ink: #3a4549;
  --ink-soft: #5c6b70;
  --heading: #4a5a60;
  --white: #ffffff;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --radius-pill: 999px;
  --shadow: 0 16px 40px rgb(10 61 77 / 0.1);
  --max: 1180px;
  --font: Gotham, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --type-ratio: 1.25;
  --text-md: 1rem;
  --text-sm: calc(var(--text-md) / var(--type-ratio));
  --text-xs: calc(var(--text-sm) / var(--type-ratio));
  --text-lg: calc(var(--text-md) * var(--type-ratio));
  --text-xl: calc(var(--text-lg) * var(--type-ratio));
  --text-2xl: calc(var(--text-xl) * var(--type-ratio));
  --text-3xl: calc(var(--text-2xl) * var(--type-ratio));
  --text-4xl: calc(var(--text-3xl) * var(--type-ratio));
  --text-5xl: calc(var(--text-4xl) * var(--type-ratio));
  --leading-display: 0.8;
  --leading-heading: 0.92;
  --leading-tight: 1.02;
  --leading-body: 1.18;
}

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

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--sand);
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: var(--leading-heading);
}

p,
li {
  line-height: var(--leading-body);
}

#contenido,
#quienes-somos,
#requisitos,
#transparencia,
#productos,
#sucursales,
#cantera-movil,
#herramientas {
  scroll-margin-top: 4.5rem;
}

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

a {
  color: var(--teal);
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--white);
  padding: 0.4rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.8rem;
}

.top,
.hero,
.cards,
.foot-slab {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.2rem;
  padding-block: 1.1rem 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-deep);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 2.6rem;
  border: 1.5px solid var(--teal-deep);
  border-radius: 4px;
  background: var(--white);
}

.brand-mark img {
  width: 2.05rem;
  height: auto;
}

.brand-name {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 9.5rem;
  line-height: var(--leading-tight);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.05rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: var(--leading-tight);
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .top {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--teal-deep);
    background: var(--white);
    color: var(--teal-deep);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.9rem;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-toggle:active {
    transform: scale(0.97);
  }

  .nav {
    display: none;
    width: 100%;
    padding-bottom: 0.6rem;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
  }
}
