* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #0a2418;
  color: #ffffff;
}

body {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;

  background:
    url("background-novergy.png")
    center center / cover
    no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    180deg,
    rgba(0, 18, 10, 0.04) 0%,
    rgba(0, 18, 10, 0.08) 55%,
    rgba(0, 18, 10, 0.20) 100%
  );
}

.hero-content {
  width: min(92vw, 900px);
  padding: 0 24px;
  text-align: center;

  transform: translateY(-4vh);

  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo {
  display: block;

  width: min(48.6vw, 423px);
  height: auto;

  margin: 0 auto 26px;

  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.32))
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));
}

.descriptor {
  margin: 0;

  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.03em;

  color: #ffffff;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.80),
    0 5px 18px rgba(0, 0, 0, 0.48);
}

.contact {
  position: relative;

  /* CTA BAJADO AL CENTRO DEL CONECTOR ROSCADO */
  top: 155px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 11px 20px;

  border-radius: 999px;

  color: #ffffff;
  text-decoration: none;

  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  font-weight: 600;

  background: rgba(0, 135, 82, 0.86);

  border: 1px solid rgba(255, 255, 255, 0.40);

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.26);

  transition:
    transform 160ms ease,
    background 160ms ease;
}

.contact:hover,
.contact:focus-visible {
  transform: translateY(-1px);
  background: rgba(0, 157, 95, 0.96);
}

.contact:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));

  padding: 0 16px;

  text-align: center;
  font-size: 0.82rem;

  color: rgba(255, 255, 255, 0.90);

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.75);
}


/* TABLETS */
@media (max-width: 900px) {

  .hero-content {
    width: 94vw;
    padding: 0 20px;
    transform: translateY(-3vh);
  }

  .logo {
    width: min(58vw, 390px);
    margin-bottom: 22px;
  }

  .descriptor {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
  }

  .contact {
    top: 145px;
    font-size: 1rem;
  }
}


/* MÓVILES */
@media (max-width: 640px) {

  .hero {
    min-height: 100svh;
    background-position: 50% center;
  }

  .hero-content {
    width: 94vw;
    padding: 0 18px;
    transform: translateY(-1vh);
  }

  .logo {
    width: min(64vw, 285px);
    margin: 0 auto 16px;

    filter:
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.34))
      drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  }

  .descriptor {
    margin: 0;

    font-size:
      clamp(0.98rem, 4.7vw, 1.22rem);

    line-height: 1.22;
    letter-spacing: 0.01em;

    padding: 0 12px;
  }

  .contact {
    top: clamp(140px, 11vh, 175px);

    max-width: 86vw;
    min-height: 42px;

    padding: 9px 16px;

    font-size:
      clamp(0.88rem, 3.8vw, 0.98rem);

    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .footer {
    bottom:
      max(10px, env(safe-area-inset-bottom));

    font-size: 0.70rem;
  }
}


/* MÓVILES MUY ESTRECHOS */
@media (max-width: 390px) {

  .hero-content {
    width: 96vw;
    padding: 0 12px;

    transform: translateY(-0.5vh);
  }

  .logo {
    width: min(66vw, 270px);
    margin-bottom: 14px;
  }

  .descriptor {
    font-size:
      clamp(0.95rem, 5vw, 1.12rem);
  }

  .contact {
    top: clamp(130px, 10vh, 160px);

    max-width: 90vw;
    padding: 9px 14px;

    font-size: 0.88rem;
  }

  .footer {
    font-size: 0.66rem;
  }
}


/* TELÉFONOS EN HORIZONTAL */
@media (max-height: 520px) and (orientation: landscape) {

  .hero-content {
    transform: translateY(-1vh);
  }

  .logo {
    width: min(34vw, 250px);
    margin-bottom: 8px;
  }

  .descriptor {
    font-size: 0.95rem;
  }

  .contact {
    top: 45px;

    min-height: 38px;
    padding: 7px 14px;

    font-size: 0.86rem;
  }

  .footer {
    bottom: 5px;
    font-size: 0.62rem;
  }
}


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

  .contact {
    transition: none;
  }
}
