:root {
  --ink: #744d44;
  --button: #987c75;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Century Gothic", Montserrat, Arial,
    sans-serif;
}

.landing {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 3.625rem 1.5rem;
  background:
    linear-gradient(rgb(238 233 227 / 18%), rgb(238 233 227 / 18%)),
    url("assets/fondo-seda.jpg") center 43% / cover no-repeat;
}

.card {
  display: flex;
  width: min(68.75rem, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 24.9375rem;
  height: auto;
}

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

.tagline {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Arial Nova", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
  transform: translate(0, 5rem);
}

.message {
  margin-top: 1rem;
}

.message,
.promise,
.contact {
  font-family: "Plus Jakarta Sans", "Arial Nova", Arial, sans-serif;
}

.services {
  max-width: 65rem;
  margin: 0;
  padding: 0 9rem;
  font-size: 1.8rem;
  font-weight: 200;
  line-height: 1.25;
}

.promise {
  margin: 2.2rem 0 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.contact {
  margin-top: 2rem;
}

.contact h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-link {
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.5625rem;
  background: var(--button);
  color: var(--white);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-link:hover {
  background: #846860;
  box-shadow: 0 0.5625rem 1.5rem rgb(84 55 48 / 20%);
  transform: translateY(-4px);
}

.contact-link:focus-visible {
  outline: 0.1875rem solid var(--white);
  outline-offset: 0.25rem;
}

.contact-link i {
  font-size: 2.1875rem;
  line-height: 1;
}

@media (max-width: 43.75rem) {
  .landing {
    min-height: 100svh;
    padding: max(1.875rem, env(safe-area-inset-top)) 1.375rem
      max(1.875rem, env(safe-area-inset-bottom));
    background-position: 48% center;
    place-items: start center;
    padding-top: 4rem;
  }

  .hero {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .brand img {
    width: min(74.52vw, 20.775rem);
  }

  .tagline {
    font-size: 2rem;
    line-height: 1.08;
    text-align: center;
    transform: none;
  }

  .message {
    width: min(100%, 26.875rem);
    margin-top: 2.1875rem;
  }

  .services {
    padding: 0 0 0 1.5rem;
    font-size: 1.5625rem;
    line-height: 1.25;
    text-align: left;
    text-wrap: pretty;
    hyphens: auto;
  }

  .promise {
    padding: 0 1rem;
    max-width: 20.625rem;
    margin: 1.5625rem auto 0;
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .contact {
    margin-top: 1.34375rem;
  }

  .contact h2 {
    margin-bottom: 0.4375rem;
    font-size: 1rem;
    letter-spacing: 0.08rem;
  }

  .contact-links {
    gap: 0.53125rem;
  }

  .contact-link {
    width: 2.46875rem;
    border-radius: 0.46875rem;
  }

  .contact-link i {
    font-size: 1.59375rem;
  }
}

@media (max-height: 47.5rem) and (max-width: 43.75rem) {
  .landing {
    padding-block: 1.25rem;
  }

  .hero {
    gap: 1.5rem;
  }

  .brand {
    transform: scale(0.86);
    margin-block: -12px;
  }

  .message {
    margin-top: 1.5rem;
  }

  .promise {
    margin-top: 1.125rem;
  }

  .contact {
    margin-top: 0.8125rem;
  }
}

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

/* Temporal: guías visuales para revisar las cajas del layout. */
/*.landing,
.card,
.message,
.services,
.promise,
.contact,
.contact-links,
.contact-link {
  outline: 0.0625rem solid red;
}
