/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;

  min-height: 100vh;
  min-height: 100svh;

  overflow: clip;

  background-image: url("/assets/images/home/RV-camion-3200px.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  font-family: Arial, Helvetica, sans-serif;
}

/* =========================================
   OVERLAY
========================================= */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(5, 28, 45, 0.92) 0%,
    rgba(5, 28, 45, 0.78) 38%,
    rgba(5, 28, 45, 0.42) 68%,
    rgba(5, 28, 45, 0.18) 100%
  );
}

/* =========================================
   CONTAINER
========================================= */

.hero-container {
  position: relative;
  z-index: 1;

  width: min(1380px, 100%);
  min-height: inherit;

  margin-inline: auto;
  padding: 110px 40px 35px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

/* =========================================
   CONTENT
========================================= */

.hero-content {
  width: 100%;
  max-width: 820px;

  margin-block: auto;
  min-width: 0;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 11px;

  margin-bottom: clamp(16px, 2vw, 25px);

  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================
   TITLE
========================================= */

.hero h1 {
  margin: 0;
  max-width: 100%;

  color: #fff;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.99;
  font-weight: 400;
  letter-spacing: -0.055em;

  overflow-wrap: normal;
  word-break: normal;
}

.hero h1 span {
  font-weight: 700;
}

/* =========================================
   DESCRIPTION
========================================= */

.hero-description {
  max-width: 590px;
  margin: clamp(20px, 2.2vw, 30px) 0 0;

  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  font-weight: 400;
}

/* =========================================
   BUTTONS
========================================= */

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  margin-top: clamp(24px, 2.7vw, 37px);
}

.hero-button {
  box-sizing: border-box;
  min-height: 54px;
  max-width: 100%;
  padding: 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  border: 1px solid transparent;
  border-radius: 4px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;

  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease, transform 0.3s ease;
}

.hero-button-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.button-chevron {
  flex: 0 0 8px;

  width: 8px;
  height: 8px;

  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;

  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.hero-button-primary:hover {
  background-color: #3f895f;
  transform: translateY(-2px);
}

.hero-button:hover .button-chevron {
  transform: rotate(45deg) translate(2px, -2px);
}

.hero-button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-button-secondary:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* =========================================
   BOTTOM
========================================= */

.hero-bottom {
  width: 100%;
  flex-shrink: 0;

  padding-top: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-capabilities {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;

  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-capabilities i {
  flex: 0 0 4px;

  width: 4px;
  height: 4px;

  border-radius: 50%;
  background-color: var(--color-accent);
}

/* =========================================
   ENTRANCE ANIMATION
========================================= */

.hero-reveal {
  opacity: 0;
  transform: translateY(20px);

  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal-1 {
  animation-delay: 0.15s;
}
.hero-reveal-2 {
  animation-delay: 0.3s;
}
.hero-reveal-3 {
  animation-delay: 0.45s;
}
.hero-reveal-4 {
  animation-delay: 0.6s;
}
.hero-reveal-5 {
  animation-delay: 0.8s;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   LAPTOP / SHORT WINDOWS
========================================= */

@media (max-width: 1100px) {
  .hero-container {
    padding-inline: 32px;
  }

  .hero-content {
    max-width: 740px;
  }

  .hero h1 {
    font-size: clamp(44px, 6.2vw, 68px);
  }
}

/* La altura importa tanto como el ancho en notebooks. */
@media (min-width: 761px) and (max-height: 760px) {
  .hero {
    min-height: 700px;
    min-height: max(700px, 100svh);
  }

  .hero-container {
    padding-top: 105px;
    padding-bottom: 28px;
    gap: 28px;
  }

  .hero-content {
    margin-block: 25px;
  }

  .hero h1 {
    font-size: clamp(44px, 5.2vw, 66px);
  }

  .hero-description {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 24px;
  }
}

/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    background-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(5, 28, 45, 0.92) 0%,
      rgba(5, 28, 45, 0.8) 100%
    );
  }

  .hero-container {
    width: 100%;
    min-height: 100svh;

    padding: 125px 24px 28px;

    gap: 35px;
  }

  .hero-content {
    max-width: 560px;
    margin-block: 25px auto;
  }

  .hero-tag {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: clamp(40px, 8.5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .hero-description {
    max-width: 500px;
    margin-top: 22px;

    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;

    margin-top: 26px;
  }

  .hero-button {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
  }

  .hero-bottom {
    padding-top: 18px;
  }

  .hero-capabilities {
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.07em;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {
  .hero-container {
    padding-inline: 20px;
    padding-top: 115px;
    padding-bottom: 24px;
  }

  .hero-content {
    margin-top: 18px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.04;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-capabilities {
    gap: 8px;
    font-size: 8px;
  }
}

/* =========================================
   VERY SHORT MOBILE LANDSCAPE
========================================= */

@media (max-width: 760px) and (max-height: 600px) {
  .hero,
  .hero-container {
    min-height: 720px;
  }

  .hero-container {
    padding-top: 105px;
    padding-bottom: 24px;
  }

  .hero-content {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-button,
  .button-chevron {
    transition: none;
  }
}

