@font-face {
  font-family: "Hidayatullah";
  src: url("../fonts/hidayatullah.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agency FB";
  src: url("../fonts/AGENCYB.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agency FB";
  src: url("../fonts/AGENCYB.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, var(--color-crema), #ffffff);
  background-size: 18px 18px, auto;
  color: var(--color-cafe-oscuro);
  font-family: var(--font-textos);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-verde);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-crema);
  color: var(--color-cafe-oscuro);
  opacity: 1;
  visibility: visible;
  transition: opacity 460ms ease, visibility 460ms ease;
}

.page-loader::before {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  content: "";
}

.page-loader__content {
  display: grid;
  justify-items: center;
  gap: 1.35rem;
  width: min(100% - 3rem, 310px);
  text-align: center;
}

.page-loader__logo {
  width: clamp(92px, 22vw, 138px);
  height: auto;
  animation: loader-mark 1.8s ease-in-out infinite;
}

.page-loader__brand {
  font-family: var(--font-marca);
  font-size: clamp(2.2rem, 8vw, 3.3rem);
  line-height: 0.9;
}

.page-loader__status {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-loader__line {
  width: min(100%, 190px);
  height: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
}

.page-loader__line::after {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--color-cafe-oscuro);
  content: "";
  animation: loader-progress 1.35s ease-in-out infinite;
}

body:not(.is-ready) {
  overflow: hidden;
}

body.is-ready .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-leaving::after {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: var(--color-crema);
  content: "";
  animation: page-leave 420ms ease both;
  pointer-events: none;
}

body.is-leaving main,
body.is-leaving .site-header,
body.is-leaving .site-footer {
  animation: content-leave 420ms ease both;
}

@keyframes loader-mark {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.78; }
  50% { transform: translateY(-7px) scale(1.04); opacity: 1; }
}

@keyframes loader-progress {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(360%); }
}

@keyframes page-leave {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes content-leave {
  to { opacity: 0; transform: translateY(-8px); }
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--color-cafe-oscuro);
  color: var(--color-blanco);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-7);
}

.section--light {
  background: rgba(245, 245, 245, 0.9);
}

.section--earth {
  background: var(--color-cafe-oscuro);
  color: var(--color-crema);
}

.section__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--color-cafe);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section--earth .section__eyebrow {
  color: var(--color-beige);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-cafe-oscuro);
  font-family: var(--font-titulos);
  font-weight: 700;
  line-height: 1.08;
}

.section--earth h1,
.section--earth h2,
.section--earth h3 {
  color: var(--color-crema);
}

h1 {
  font-family: var(--font-marca);
  font-size: clamp(4.1rem, 17vw, 8.5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.9rem, 7vw, 3.45rem);
}

h3 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

p {
  margin: 0;
}

.lead {
  max-width: 780px;
  color: rgba(0, 0, 0, 0.82);
  font-size: clamp(1.08rem, 3vw, 1.35rem);
}

.section--earth .lead {
  color: rgba(255, 255, 255, 0.86);
}

.flow > * + * {
  margin-top: var(--space-4);
}

.reveal--ready {
  transform: translate3d(0, 24px, 0) scale(0.985);
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms), transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

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

  .reveal--ready {
    transform: none;
    opacity: 1;
  }
}
