:root {
  --blue: #005072;
  --orange: #e59b19;
  --white: #fff;
  --gutter: clamp(1.25rem, 6vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hero a pantalla completa */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* Oscurece arriba y a la izquierda para que el texto se lea sobre las islas */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 48, 70, .62) 0%, rgba(0, 48, 70, .28) 45%, rgba(0, 48, 70, 0) 72%),
    linear-gradient(180deg, rgba(0, 48, 70, .4) 0%, rgba(0, 48, 70, 0) 26%);
}

.hero__header {
  padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.75rem);
}

.hero__logo {
  display: block;
  width: clamp(190px, 21vw, 320px);
  height: auto;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  /* Reserva el espacio de las olas para que el contenido nunca las pise */
  padding: 1.5rem var(--gutter) clamp(7rem, 15vw, 12rem);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 8.4vw, 5.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-shadow: 0 2px 28px rgba(0, 48, 70, .35);
}

.hero__text {
  max-width: 34rem;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 1px 14px rgba(0, 48, 70, .5);
}

.hero__text a {
  color: inherit;
  text-decoration: none;
}

.hero__text a:hover {
  text-decoration: underline;
}

.hero__badge {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: .75em 1.6em;
  border-radius: 999px;
  background: var(--orange);
  color: #00354c;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
  line-height: 1;
}

/* Las olas nunca bajan de 1100px para mantener su grosor en móvil */
.hero__waves {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 1100px);
  height: auto;
  opacity: .42;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Entrada suave del contenido */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo,
  .hero__title,
  .hero__text,
  .hero__badge {
    animation: rise .8s cubic-bezier(.22, 1, .36, 1) both;
  }

  .hero__title { animation-delay: .1s; }
  .hero__text { animation-delay: .2s; }
  .hero__badge { animation-delay: .3s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}
