:root {
  --footer-bg: #090504;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.92);
  --button-bg: rgba(255, 255, 255, 0.075);
  --button-bg-hover: rgba(255, 255, 255, 0.16);
  --button-border: rgba(255, 255, 255, 0.22);
  --button-border-hover: rgba(255, 255, 255, 0.48);
  --shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  --font-main: "Albert Sans", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img,
svg {
  display: block;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background-image: url("assets/fondo-mobile.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.16) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: inherit;
  padding: clamp(34px, 7svh, 78px) 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  width: min(78vw, 560px);
  color: var(--white);
}

.brand__logo {
  width: 100%;
  height: auto;
}

.brand__tagline {
  width: 100%;
  height: auto;
  margin-top: clamp(8px, 1.35vw, 16px);
  overflow: visible;
}

.brand__tagline text {
  fill: currentColor;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 31px;
  letter-spacing: 0;
}

.hero__claim {
  margin: clamp(42px, 7.6svh, 92px) 0 0;
  color: var(--white);
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1.18;
  font-weight: 200;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 14px calc(17px + env(safe-area-inset-bottom));
}

.contact {
  width: min(100%, 1320px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact__link {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  box-shadow: var(--shadow);
  color: var(--white-soft);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(0.86rem, 3.25vw, 1.08rem);
  line-height: 1.22;
  letter-spacing: 0.005em;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.contact__link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.contact__link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact__link--address {
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto;
  border-radius: 999px;
  text-align: center;
  justify-content: center;
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--white);
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  transform: translateY(-1px);
  outline: none;
}

.contact__link:active {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 420px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    width: min(82vw, 520px);
  }

  .contact__link {
    width: fit-content;
    max-width: calc(100vw - 32px);
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: calc(100vh - 88px);
    min-height: calc(100svh - 88px);
    background-image: url("assets/fondo-desktop.webp");
    background-position: center bottom;
  }

  .hero::after {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0) 54%,
      rgba(0, 0, 0, 0.04) 100%
    );
  }

  .hero__content {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: clamp(50px, 10vh, 100px) 8.7vw 32px;
  }

  .brand {
    width: clamp(380px, 41vw, 575px);
  }

  .brand__tagline {
    margin-top: clamp(7px, 0.75vw, 12px);
  }

  .hero__claim {
    width: min(42vw, 560px);
    margin-top: clamp(58px, 10vh, 96px);
    font-size: clamp(2rem, 2.65vw, 3.15rem);
    line-height: 1.24;
    font-weight: 200;
    letter-spacing: 0.006em;
  }

  .footer {
    padding: 13px 24px 15px;
  }

  .contact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .contact__link {
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    font-size: clamp(0.82rem, 1.05vw, 1rem);
    padding: 10px 14px;
  }

  .contact__link--address {
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    text-align: center;
    justify-content: center;
  }
}

/* Tablet: mueve la foto más a la izquierda sin afectar a PC */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero {
    background-position: 82% bottom;
  }
}

@media (min-width: 1024px) {
  .contact__link {
    white-space: nowrap;
  }

  .contact__link--address span {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .hero {
    background-position: center bottom;
  }
}

@media (min-width: 1360px) {
  .hero__content {
    padding-left: 8.75vw;
  }

  .brand {
    width: clamp(430px, 42vw, 605px);
  }

  .hero__claim {
    font-size: clamp(2.15rem, 2.5vw, 3.1rem);
  }

  .contact {
    gap: 16px;
  }
}

@media (max-width: 880px) and (min-width: 768px) {
  .contact {
    flex-wrap: wrap;
  }

  .contact__link--address {
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    justify-content: center;
    text-align: center;
  }
}

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