:root {
  --reference-width: 1350;
  --reference-height: 940;
  --text-color: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: #4f4234;
  color: var(--text-color);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(31, 24, 18, 0.30), rgba(31, 24, 18, 0.30)),
    url("assets/fondo-madera.jpg") center center / cover no-repeat;
}

/* Velo general y oscurecimiento suave de la franja inferior. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(20, 16, 12, 0.08) 0%,
      rgba(20, 16, 12, 0.06) 70%,
      rgba(25, 18, 13, 0.20) 76%,
      rgba(25, 18, 13, 0.27) 100%
    );
}

.brand {
  position: absolute;
  top: 22.23%;
  left: 50%;
  width: min(29.85vw, 403px);
  transform: translateX(-50%);
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.presentation {
  position: absolute;
  top: 48.3%;
  left: 50%;
  width: min(760px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
}

.presentation__title {
  margin: 0;
  font-size: clamp(27px, 2.72vw, 39px);
  line-height: 1.56;
  font-weight: 300;
  letter-spacing: -0.018em;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.26);
}

.contact {
  position: absolute;
  inset-inline: 0;
  bottom: 9.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__address {
  margin: 0;
  font-size: clamp(13px, 1.10vw, 16px);
  line-height: 1.40;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.91);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.contact__phone {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(13px, 1.10vw, 16px);
  line-height: 1;
  font-weight: 300;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.contact__phone:hover,
.contact__phone:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 700px) {
  .brand {
    top: 19%;
    width: min(72vw, 403px);
  }

  .presentation {
    top: 46%;
    width: calc(100% - 34px);
  }

  .presentation__title {
    font-size: clamp(23px, 7vw, 32px);
    line-height: 1.45;
  }

  .contact {
    bottom: 7%;
  }

  .contact__phone {
    margin-top: 22px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .brand {
    top: 10%;
    width: min(30vw, 300px);
  }

  .presentation {
    top: 49%;
  }

  .presentation__title {
    font-size: clamp(23px, 3.2vw, 31px);
    line-height: 1.35;
  }

  .contact {
    bottom: 4.5%;
  }

  .contact__phone {
    margin-top: 13px;
  }
}
