/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
  overflow-x: hidden;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background-image: url("fondo.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* =========================================
   OVERLAY
========================================= */

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );

  z-index: 1;

  pointer-events: none;
}

/* =========================================
   HEADER
========================================= */

.header {
  position: relative;

  z-index: 2;

  width: 100%;

  display: flex;
  align-items: flex-start;

  padding: 35px 4% 0;

  gap: 32px;
}

/* =========================================
   LOGO
========================================= */

.logo-link {
  display: block;

  flex: 0 0 auto;

  text-decoration: none;
}

.logo {
  display: block;

  width: 180px;
  height: auto;

  object-fit: contain;
}

/* =========================================
   TITULO
========================================= */

.header-content {
  flex: 1;

  min-width: 300px;

  padding-top: 15px;
}

h1 {
  margin: 0;

  font-size: clamp(30px, 3vw, 52px);

  line-height: 1.08;

  font-weight: 900;

  letter-spacing: 0.5px;

  color: #fff;

  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

/* =========================================
   NAVEGACIÓN
========================================= */

.navigation {
  display: flex;

  align-items: center;

  gap: 16px;

  padding-top: 52px;

  flex-shrink: 0;
}

/* =========================================
   BOTONES
========================================= */

.btn {
  display: flex;

  align-items: center;
  justify-content: center;

  min-width: 150px;
  height: 66px;

  padding: 0 25px;

  border-radius: 15px;

  background: #ff2f35;

  color: #fff;

  text-decoration: none;

  font-size: 25px;
  font-weight: 400;

  white-space: nowrap;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background: #e9262c;

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(0);
}

/* =========================================
   SUBTÍTULO
========================================= */

.hero-content {
  position: relative;

  z-index: 2;

  width: 100%;

  margin-top: 25px;

  padding: 0 4%;
}

.subtitle {
  display: inline-block;

  font-size: clamp(22px, 2.1vw, 38px);

  line-height: 1.2;

  font-weight: 700;

  color: #fff;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* =========================================
   MENSAJE INFERIOR
========================================= */

.bottom-message {
  position: absolute;

  right: 0;
  bottom: 10px;

  z-index: 3;

  width: min(46%, 570px);

  padding: 16px 35px;

  background: rgba(0, 0, 0, 0.92);

  border-radius: 20px 0 0 20px;

  color: #fff;

  text-align: center;

  font-size: clamp(18px, 1.5vw, 27px);

  line-height: 1.25;

  font-weight: 400;
}

/* =========================================
   LAPTOP
========================================= */

@media (max-width: 1350px) {
  .header {
    padding: 30px 3% 0;

    gap: 22px;
  }

  .logo {
    width: 155px;
  }

  .header-content {
    min-width: 260px;
  }

  h1 {
    font-size: clamp(28px, 2.8vw, 44px);
  }

  .navigation {
    gap: 12px;

    padding-top: 42px;
  }

  .btn {
    min-width: 125px;

    height: 58px;

    padding: 0 18px;

    font-size: 21px;
  }
}

/* =========================================
   TABLET GRANDE
========================================= */

@media (max-width: 1050px) {
  .header {
    flex-wrap: wrap;

    padding: 25px 4% 0;

    gap: 20px;
  }

  .logo {
    width: 145px;
  }

  .header-content {
    flex: 1;

    min-width: 0;
  }

  h1 {
    font-size: clamp(28px, 4vw, 40px);
  }

  .navigation {
    width: 100%;

    justify-content: center;

    gap: 15px;

    padding-top: 5px;
  }

  .btn {
    min-width: 150px;

    height: 55px;

    font-size: 21px;
  }

  .hero-content {
    margin-top: 20px;
  }
}

/* =========================================
   MÓVIL / TABLET
========================================= */

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;

    background-position: center center;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.42) 55%,
      rgba(0, 0, 0, 0.75) 100%
    );
  }

  .header {
    flex-direction: column;

    flex-wrap: nowrap;

    align-items: center;

    padding: 22px 20px 0;

    gap: 10px;
  }

  .logo {
    width: 135px;
  }

  .header-content {
    width: 100%;

    padding-top: 5px;

    text-align: center;
  }

  h1 {
    font-size: clamp(27px, 8vw, 42px);

    line-height: 1.05;
  }

  .navigation {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    padding-top: 15px;
  }

  .btn {
    width: 100%;

    min-width: 0;

    height: 50px;

    padding: 0 10px;

    border-radius: 11px;

    font-size: 17px;
  }

  .hero-content {
    margin-top: 18px;

    padding: 0 20px;

    text-align: center;
  }

  .subtitle {
    font-size: 20px;

    line-height: 1.25;
  }

  .bottom-message {
    right: 0;
    bottom: 0;

    width: 100%;

    border-radius: 0;

    padding: 14px 20px;

    font-size: 17px;
  }
}

/* =========================================
   MÓVIL PEQUEÑO
========================================= */

@media (max-width: 480px) {
  .header {
    padding: 18px 14px 0;
  }

  .logo {
    width: 110px;
  }

  h1 {
    font-size: 24px;
  }

  .navigation {
    gap: 6px;

    padding-top: 10px;
  }

  .btn {
    height: 46px;

    padding: 0 5px;

    border-radius: 9px;

    font-size: 14px;
  }

  .hero-content {
    margin-top: 14px;
  }

  .subtitle {
    font-size: 17px;
  }

  .bottom-message {
    font-size: 15px;

    padding: 12px 15px;
  }
}

/* =========================================
   MÓVIL MUY PEQUEÑO
========================================= */

@media (max-width: 360px) {
  .navigation {
    grid-template-columns: 1fr;

    width: 85%;

    gap: 7px;
  }

  .btn {
    height: 42px;

    font-size: 15px;
  }

  h1 {
    font-size: 22px;
  }

  .subtitle {
    font-size: 16px;
  }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

.btn:focus-visible {
  outline: 3px solid #fff;

  outline-offset: 4px;
}

/* =========================================
   REDUCIR ANIMACIONES
========================================= */

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
