:root {
  --white: #ffffff;
  --yellow: #fdc400;
  --red: #ea5153;
  --dark: #34393b;
  --mx: 50%;
  --my: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(253, 196, 0, .16), transparent 24rem),
    linear-gradient(120deg, rgba(234, 81, 83, .08), transparent 34%),
    linear-gradient(180deg, #34393b 0%, #262a2b 100%);

  overflow: hidden;
}

/* ==========================
   EFECTOS DE FONDO
========================== */

body::after {
  content: "";
  position: fixed;
  width: 44vmin;
  aspect-ratio: 1;
  left: calc(var(--mx) - 22vmin);
  top: calc(var(--my) - 22vmin);
  background:
    radial-gradient(
      circle,
      rgba(234,81,83,.18),
      rgba(253,196,0,.12) 45%,
      transparent 85%
    );
  filter: blur(34px);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
  transition:
    left .35s ease,
    top .35s ease;
}

.noise {
  position: fixed;
  inset: -40%;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.42'/%3E%3C/svg%3E");

  opacity: .11;
  mix-blend-mode: multiply;
  animation: grain 8s steps(9) infinite;

  pointer-events: none;
  z-index: 4;
}

.ambient {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52,57,59,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(52,57,59,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image:
    radial-gradient(circle at 50% 50%, black, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================
   SÍMBOLO FLOTANTE
========================== */

.symbol-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  perspective: 900px;
}

.symbol {
  position: absolute;
  width: clamp(19rem, 42vw, 40rem);
  top: 50%;
  left: 65%;
  transform-origin: center;
}

.symbol-main {
  opacity: .095;
  filter:
    invert(72%)
    sepia(83%)
    saturate(1420%)
    hue-rotate(356deg)
    brightness(104%)
    contrast(98%);
  animation: floatFree 25s ease-in-out infinite;
}

.symbol-shadow {
  opacity: .06;
  filter:
    invert(33%)
    sepia(33%)
    saturate(1530%)
    hue-rotate(315deg)
    brightness(96%)
    contrast(90%);
  animation: floatFreeShadow 35s ease-in-out infinite;
}

/* ==========================
   LAYOUT
========================== */

.site {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.5rem, 4vw, 4.6rem);
}

.nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
}

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-block: 8vh;
}

h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3.7rem, 9vw, 9rem);
  line-height: .85;
  letter-spacing: -.05em;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
  color: #ffffff;
}

h2 {
  margin: clamp(1.25rem, 3vw, 2.4rem) 0 0;
  font-size: clamp(1.15rem, 1vw, 2rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -.055em;
  color: #fdc400;
  text-align: center;
}

.footer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  font-size: .83rem;
}

.reconocimientos {
	text-align: center;
	align-content: center;
	margin-bottom: 25px;
}

.reconocimientos img{
	max-height: 78px;
	width: auto;
}

.reconocimientos picture {
	display: block;
	max-width: 100%;
}

.footer small {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 550;
}

.footer address {
  margin: 0;
  font-style: normal;
  font-weight: 750;
  text-align: right;
  color: #fdc400;
}

/* ==========================
   ANIMACIONES
========================== */

@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-7%,5%); }
  40% { transform: translate(5%,-8%); }
  60% { transform: translate(8%,7%); }
  80% { transform: translate(-4%,-6%); }
}

@keyframes floatFree {
  0%,100% {
    transform:
      translate(-50%, -50%)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      rotate(12deg);
  }

  25% {
    transform:
      translate(-44%, -57%)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      rotate(18deg);
  }

  50% {
    transform:
      translate(-58%, -46%)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      rotate(6deg)
      scale(1.035);
  }

  75% {
    transform:
      translate(-48%, -60%)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      rotate(14deg);
  }
}

@keyframes floatFreeShadow {
  0%,100% {
    transform:
      translate(calc(-50% - 2rem), calc(-50% + 2rem))
      rotate(-7deg)
      scale(.84);
  }

  50% {
    transform:
      translate(calc(-50% + 1rem), calc(-50% - 1rem))
      rotate(-18deg)
      scale(.92);
  }
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 760px) {

  body {
    overflow: auto;
  }

  .site {
    padding: 1.25rem;
  }

  .hero {
    padding-block: 13vh;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 6.4rem);
  }

  .symbol {
    width: 105vw;
    left: 72%;
  }

  .ambient {
    background-size: 48px 48px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer address {
    justify-self: center;
    text-align: center;
  }

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

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}