.mussol-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  align-items: center;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background-image: url("./assets/fondo-hero.webp");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.mussol-home-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(13, 39, 65, 0.96) 0%,
    rgba(13, 39, 65, 0.9) 20%,
    rgba(13, 39, 65, 0.74) 35%,
    rgba(13, 39, 65, 0.45) 48%,
    rgba(13, 39, 65, 0.18) 60%,
    rgba(13, 39, 65, 0.04) 72%,
    rgba(13, 39, 65, 0) 82%
  );
}

.mussol-home-hero > * {
  min-width: 0;
  max-width: 100%;
}

.mussol-home-hero__content {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: clamp(124px, 15svh, 168px) clamp(18px, 2vw, 30px) clamp(54px, 9svh, 92px) clamp(84px, 9vw, 132px);
  box-sizing: border-box;
}

.mussol-home-hero__copy {
  flex-shrink: 0;
  width: calc(100% + clamp(90px, 7vw, 112px));
  max-width: 600px;
}

.mussol-home-hero__eyebrow {
  margin: 0 0 clamp(17px, 2.2svh, 25px);
  color: #ec642c;
  font-size: clamp(0.72rem, 0.8vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mussol-home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 3.75vw, 3.6rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.mussol-home-hero__description {
  max-width: 570px;
  margin: clamp(23px, 3.2svh, 34px) 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.65;
}

.mussol-home-hero__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: clamp(27px, 3.7svh, 40px);
}

.mussol-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mussol-home-hero__button:hover {
  color: #fff;
  transform: translateY(-2px);
}

.mussol-home-hero__button:focus-visible {
  outline: 3px solid rgba(250, 199, 33, 0.78);
  outline-offset: 3px;
}

.mussol-home-hero__button--primary {
  border-color: #ec642c;
  color: #fff;
  background: #ec642c;
}

.mussol-home-hero__button--primary:hover {
  border-color: #f27642;
  background: #f27642;
}

.mussol-home-hero__button--secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(13, 39, 65, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mussol-home-hero__button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.mussol-home-hero__visual {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: transparent;
  transform: translateX(-6%);
  transform-origin: center;
}

.mussol-home-hero__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  object-position: center right;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-mask-image:
    radial-gradient(ellipse 31% 13% at 17% 18%, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.15) 79%, rgba(0, 0, 0, 0.52) 88%, rgba(0, 0, 0, 0.84) 95%, #000 100%),
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 5%, rgba(0, 0, 0, 0.82) 12%, #000 19%, #000 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 6%, rgba(0, 0, 0, 0.86) 14%, #000 20%, #000 80%, rgba(0, 0, 0, 0.86) 86%, rgba(0, 0, 0, 0.38) 94%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    radial-gradient(ellipse 31% 13% at 17% 18%, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.15) 79%, rgba(0, 0, 0, 0.52) 88%, rgba(0, 0, 0, 0.84) 95%, #000 100%),
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 5%, rgba(0, 0, 0, 0.82) 12%, #000 19%, #000 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 6%, rgba(0, 0, 0, 0.86) 14%, #000 20%, #000 80%, rgba(0, 0, 0, 0.86) 86%, rgba(0, 0, 0, 0.38) 94%, transparent 100%);
  mask-composite: intersect, intersect;
}

@media (min-width: 1100px) and (max-width: 1350px) {
  .mussol-home-hero__button {
    padding-inline: 14px;
    font-size: 0.86rem;
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .mussol-home-hero {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    background-position: 62% center;
    /* En tablets altas (iPad, Surface Pro en vertical) la portada no ocupa toda la pantalla: sobraba mucho espacio arriba y abajo del texto. */
    min-height: min(100svh, 720px);
  }

  .mussol-home-hero__content {
    padding: 118px clamp(22px, 3vw, 34px) 52px clamp(36px, 5vw, 56px);
  }

  .mussol-home-hero__copy {
    width: calc(100% + clamp(48px, 6vw, 68px));
    max-width: 520px;
  }

  .mussol-home-hero__visual {
    transform: translateX(-3.5%);
  }

  .mussol-home-hero__video {
    -webkit-mask-image:
      radial-gradient(ellipse 32% 13.5% at 17% 18%, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.14) 79%, rgba(0, 0, 0, 0.5) 88%, rgba(0, 0, 0, 0.83) 95%, #000 100%),
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 5%, rgba(0, 0, 0, 0.82) 12%, #000 19%, #000 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 6%, rgba(0, 0, 0, 0.86) 14%, #000 20%, #000 80%, rgba(0, 0, 0, 0.86) 86%, rgba(0, 0, 0, 0.38) 94%, transparent 100%);
    mask-image:
      radial-gradient(ellipse 32% 13.5% at 17% 18%, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.14) 79%, rgba(0, 0, 0, 0.5) 88%, rgba(0, 0, 0, 0.83) 95%, #000 100%),
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 5%, rgba(0, 0, 0, 0.82) 12%, #000 19%, #000 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 6%, rgba(0, 0, 0, 0.86) 14%, #000 20%, #000 80%, rgba(0, 0, 0, 0.86) 86%, rgba(0, 0, 0, 0.38) 94%, transparent 100%);
  }

  .mussol-home-hero h1 {
    font-size: clamp(2.2rem, 4.45vw, 3.1rem);
    line-height: 1;
  }

  .mussol-home-hero__description {
    line-height: 1.55;
  }

  .mussol-home-hero__actions {
    flex-direction: column;
  }

  .mussol-home-hero__button {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .mussol-home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 100svh;
    background-position: 68% center;
  }

  .mussol-home-hero::before {
    background: linear-gradient(
      180deg,
      rgba(13, 39, 65, 0.98) 0%,
      rgba(13, 39, 65, 0.92) 30%,
      rgba(13, 39, 65, 0.68) 48%,
      rgba(13, 39, 65, 0.28) 65%,
      rgba(13, 39, 65, 0) 85%
    );
  }

  .mussol-home-hero__content {
    order: 1;
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    min-height: 0;
    padding: 112px clamp(20px, 6vw, 30px) 24px;
  }

  .mussol-home-hero__copy {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .mussol-home-hero h1 {
    font-size: clamp(2.25rem, 9.4vw, 3rem);
    line-height: 1;
  }

  .mussol-home-hero__description {
    margin-top: 22px;
    font-size: clamp(1rem, 4.2vw, 1.08rem);
    line-height: 1.58;
  }

  .mussol-home-hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 25px;
  }

  .mussol-home-hero__button {
    width: 100%;
    box-sizing: border-box;
  }

  .mussol-home-hero__visual {
    order: 2;
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    justify-content: center;
    min-height: clamp(260px, 72vw, 360px);
    padding-bottom: clamp(28px, 8vw, 46px);
    transform: none;
    box-sizing: border-box;
  }

  .mussol-home-hero__video {
    width: 100%;
    height: auto;
    max-height: none;
    object-position: center;
    -webkit-mask-image:
      radial-gradient(ellipse 34% 14% at 17% 18%, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.12) 79%, rgba(0, 0, 0, 0.46) 88%, rgba(0, 0, 0, 0.82) 95%, #000 100%),
      linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in, source-in;
    mask-image:
      radial-gradient(ellipse 34% 14% at 17% 18%, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.12) 79%, rgba(0, 0, 0, 0.46) 88%, rgba(0, 0, 0, 0.82) 95%, #000 100%),
      linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-composite: intersect, intersect;
  }
}

@media (max-width: 410px) {
  .mussol-home-hero__content {
    padding-inline: 20px;
  }

  .mussol-home-hero h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.45rem);
  }

  .mussol-home-hero__button {
    min-height: 49px;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mussol-home-hero__button {
    transition: none;
  }
}

@media (max-width: 1099px) {
  .mussol-site-nav {
    top: 10px !important;
    right: 22px !important;
    left: 22px !important;
    width: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .mussol-site-nav__inner {
    width: 100% !important;
    padding-inline: 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .mussol-site-nav {
    right: 16px !important;
    left: 16px !important;
  }

  .mussol-site-nav__inner {
    padding-inline: 18px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 375px) {
  .mussol-site-nav {
    right: 14px !important;
    left: 14px !important;
  }
}

/* Piloto «contacto por pais» (solo con ?c=ar): etiqueta de WhatsApp junto a «Tu aliado tecnológico». Sin numeros en la web. */
.mussol-home-hero__eyebrow:has(.mussol-home-hero__pais) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.mussol-home-hero__pais {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 5px 13px 5px 5px;
  border: 1px solid rgba(94, 224, 143, 0.45);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 39, 65, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  animation: mussol-pais-in 520ms 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mussol-home-hero__pais:hover {
  border-color: rgba(94, 224, 143, 0.85);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.mussol-home-hero__pais:focus-visible {
  outline: 3px solid rgba(250, 199, 33, 0.78);
  outline-offset: 3px;
}

.mussol-home-hero__pais-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #0b2a17;
  background: #5ee08f;
}

.mussol-home-hero__pais-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  line-height: 1.25;
}

.mussol-home-hero__pais-text small {
  color: #5ee08f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mussol-home-hero__pais-text strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.mussol-home-hero__pais-arrow {
  flex: none;
  opacity: 0.8;
  transition: transform 180ms ease;
}

.mussol-home-hero__pais:hover .mussol-home-hero__pais-arrow {
  transform: translateX(3px);
}

@keyframes mussol-pais-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mussol-home-hero__pais { animation: none; transition: none; }
  .mussol-home-hero__pais-arrow { transition: none; }
}
