/**
 * Texto principal del hero
 * Referencia: docs/referencia-visual.png
 */

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--esac-hero-logo-copy-gap);
  padding-bottom: 0.35rem;
  min-height: 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 44%);
  align-items: start;
  gap: 0.5rem 1rem;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.hero__copy {
  max-width: 40rem;
  position: relative;
  z-index: auto;
  text-align: left;
  margin-right: auto;
  margin-left: 0;
  padding-top: 0;
}

.hero__copy .hero__title,
.hero__copy .hero__lead,
.hero__copy .hero__badge-wrap,
.hero__copy .hero__actions {
  position: relative;
  z-index: 3;
}

.hero__figure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0;
  margin-top: calc(var(--esac-hero-figure-gap) - var(--esac-hero-logo-copy-gap));
  align-self: start;
  pointer-events: none;
  min-height: 0;
  height: 100%;
  max-height: calc(100dvh - 12rem);
  overflow: visible;
}

.hero__subwoofer {
  position: absolute;
  left: -6%;
  top: -2%;
  bottom: auto;
  z-index: 2;
  display: block;
  width: min(66%, 21.5rem);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
}

.hero__amplifier {
  position: absolute;
  left: -40%;
  top: 36%;
  z-index: 1;
  display: block;
  width: min(96%, 31rem);
  height: auto;
  object-fit: contain;
  object-position: center center;
  transform: rotate(-4deg);
  transform-origin: center center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.7));
}

.hero__radio {
  position: absolute;
  left: -20%;
  top: 30%;
  z-index: 2;
  display: block;
  width: min(56%, 18rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.75));
}

.hero__instructor-wrap {
  position: relative;
  z-index: 3;
  display: block;
  width: min(125%, 44rem);
  max-height: min(calc(100dvh - 12rem), 37.5rem);
}

.hero__instructor {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  max-height: min(calc(100dvh - 12rem), 37.5rem);
  height: auto;
  object-fit: contain;
  object-position: top right;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 65%,
    rgba(0, 0, 0, 0.75) 80%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 65%,
    rgba(0, 0, 0, 0.75) 80%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
}

.hero__instructor-name {
  position: absolute;
  right: 6%;
  bottom: 11%;
  z-index: 4;
  margin: 0;
  color: #ffffff;
  font-family: var(--esac-font-family-signature);
  font-size: clamp(3.2rem, 4.6vw, 4.65rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.85;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transform: rotate(-10deg);
  transform-origin: center;
  pointer-events: none;
}

.hero__instructor-name-gap {
  display: inline-block;
  width: 0.025em;
}

.hero__instructor-name::after {
  content: "";
  display: block;
  width: 88%;
  height: 1px;
  margin: 0.08em 0.12em 0 auto;
  background: currentColor;
  opacity: 0.8;
  transform: rotate(-3deg);
  transform-origin: right center;
}

.hero__title {
  margin: 0 0 clamp(0.45rem, 1vh, 0.85rem);
  font-family: var(--esac-font-family-nav);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: visible;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.35rem, 4.1vw, 4.05rem);
  line-height: 1.08;
  white-space: nowrap;
  overflow: visible;
  padding: 0.05em 0 0.02em;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ececec 22%,
    #c4c4c4 55%,
    #8a8a8a 78%,
    #5e5e5e 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.hero__title-line + .hero__title-line {
  padding-top: 0.08em;
}

.hero__title-accent {
  background: linear-gradient(
    180deg,
    #ff201e 0%,
    #ea1210 24%,
    #c80e0c 48%,
    var(--esac-color-primary) 68%,
    #6a0807 86%,
    #3a0303 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 10px rgba(232, 18, 16, 0.28));
}

.hero__lead {
  margin: 0;
  max-width: 32rem;
  color: #ffffff;
  font-family: var(--esac-font-family-lead);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* Badge — CONVIERTE TU PASIÓN EN UNA PROFESIÓN
   Derecha: punta de diamante
   Izquierda: silueta angular */
.hero__badge-wrap {
  --badge-tip: clamp(2.1rem, 2.7vw, 2.6rem);
  display: inline-block;
  margin-top: clamp(0.85rem, 1.8vh, 1.5rem);
  margin-left: 0;
  margin-right: auto;
  padding: 3px;
  background: linear-gradient(
    135deg,
    #ffe066 0%,
    #f5c518 30%,
    #e89a0a 65%,
    #c87808 100%
  );
  clip-path: polygon(
    4.5% 0%,
    calc(100% - var(--badge-tip)) 0%,
    100% 50%,
    calc(100% - var(--badge-tip)) 100%,
    5.5% 100%,
    2.5% 86%,
    2.5% 55%,
    0% 47.5%,
    4.5% 0%
  );
  filter:
    drop-shadow(0 0 8px rgba(255, 190, 40, 0.9))
    drop-shadow(0 0 18px rgba(245, 140, 10, 0.65))
    drop-shadow(0 0 28px rgba(200, 100, 0, 0.35));
}

.hero__badge {
  margin: 0;
  padding: clamp(2.2rem, 4.35vh, 3.0rem) clamp(1.8rem, 2.8vw, 2.8rem) clamp(2.3rem, 4.45vh, 3.1rem) clamp(1.5rem, 2.2vw, 2.2rem);
  text-align: center;
  background: #000000;
  clip-path: polygon(
    5% 0.8%,
    calc(100% - var(--badge-tip) + 2px) 0.8%,
    calc(100% - 3px) 50%,
    calc(100% - var(--badge-tip) + 2px) 99.2%,
    6% 99.2%,
    3.2% 86%,
    3.2% 55%,
    1.2% 47.5%,
    5% 0.8%
  );
}

.hero__badge-line {
  display: block;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__badge-line--top {
  font-size: clamp(1.18rem, 1.95vw, 1.65rem);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e6e6e6 50%,
    #b0b0b0 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.hero__badge-line--bottom {
  margin-top: 0.2rem;
  font-size: clamp(1.58rem, 2.75vw, 2.35rem);
  background: linear-gradient(
    180deg,
    #ffe566 0%,
    #f5c518 40%,
    #e89a0a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 190, 40, 0.65));
}

/* Botones CTA del hero */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.75rem, 1vw, 1.15rem);
  margin-top: clamp(0.85rem, 1.8vh, 1.5rem);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  box-sizing: border-box;
  width: clamp(11.25rem, 14vw, 13rem);
  min-width: clamp(11.25rem, 14vw, 13rem);
  height: clamp(2.85rem, 4.8vh, 3.25rem);
  min-height: clamp(2.85rem, 4.8vh, 3.25rem);
  padding: 0 1.45rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: clamp(0.82rem, 1.02vw, 0.95rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.hero__btn:hover,
.hero__btn:focus-visible {
  transform: translateY(-1px);
}

.hero__btn--primary {
  color: #fff;
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
  color: #fff;
}

.hero__btn-chevron {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1.05em;
  font-weight: 800;
  line-height: 1;
  transform: scaleX(0.85);
}

.hero__btn--outline {
  color: #fff;
}

.hero__btn--outline:hover,
.hero__btn--outline:focus-visible {
  color: #fff;
}

.hero__btn-play {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
  color: #fff;
}

.hero__btn-play .bi {
  margin-left: 1px;
}

/* Desktop (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero__layout {
    gap: 0.5rem 0.75rem;
  }

  .hero__instructor-wrap {
    width: min(120%, 38rem);
    max-height: min(calc(100dvh - 12rem), 34rem);
  }

  .hero__instructor {
    max-height: min(calc(100dvh - 12rem), 34rem);
  }

  .hero__title-line {
    font-size: clamp(2.15rem, 3.8vw, 3.4rem);
  }

  .hero__badge-wrap {
    margin-top: clamp(0.65rem, 1.4vh, 1.15rem);
  }
}

/* Tablet & pantallas intermedias (<= 991.98px) */
@media (max-width: 991.98px) {
  .hero__content {
    justify-content: flex-start;
    padding-top: calc(var(--esac-hero-logo-copy-gap) * 0.75);
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero__figure {
    order: -1;
    justify-content: center;
    max-height: 16rem;
    min-height: 16rem;
    margin-top: 0;
    height: auto;
    overflow: hidden;
    opacity: 0.35;
  }

  .hero__subwoofer {
    left: 8%;
    top: 0;
    bottom: auto;
    width: min(55.2%, 11.5rem);
    z-index: 2;
  }

  .hero__amplifier {
    left: -8%;
    top: 42%;
    width: min(80.2%, 18.11rem);
    transform: rotate(-3deg);
  }

  .hero__radio {
    left: -5%;
    top: 42%;
    width: min(47.6%, 10.58rem);
  }

  .hero__instructor-wrap {
    width: min(100%, 20rem);
    max-height: 16rem;
  }

  .hero__instructor {
    width: 100%;
    max-height: 16rem;
    object-position: center top;
  }

  .hero__instructor-name {
    right: 10%;
    bottom: 10%;
    font-size: clamp(2.73rem, 6.25vw, 3.33rem);
  }

  .hero__copy {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    text-align: center;
    width: 100%;
  }

  .hero__title-line {
    text-align: center;
  }

  .hero__lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badge-wrap {
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  .hero__actions {
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }
}

/* Mobile (<= 575.98px) */
@media (max-width: 575.98px) {
  .hero__figure {
    display: none;
  }

  .hero__copy {
    text-align: center;
    align-items: center;
  }

  .hero__title {
    text-align: center;
  }

  .hero__title-line {
    font-size: clamp(2.05rem, 11.25vw, 2.8rem);
    text-align: center;
  }

  .hero__lead {
    font-size: 0.95rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
  }

  .hero__badge-wrap {
    --badge-tip: 1.85rem;
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    max-width: 100%;
  }

  .hero__badge {
    padding: 1.25rem 1.4rem 1.4rem 1.2rem;
  }

  .hero__badge-line--top {
    font-size: clamp(1.15rem, 5.2vw, 1.55rem);
    text-align: center;
  }

  .hero__badge-line--bottom {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 21rem;
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  .hero__btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   Pantallas grandes y Proyección (>= 1400px / 1920x1080)
   Ajuste de proporciones centrales alineadas al contenedor sin sobresalir
   ========================================================================== */

@media (min-width: 1400px) {
  /* El contenedor mantiene la misma cuadrícula del header y la barra de beneficios */
  .hero__content {
    justify-content: flex-start;
    padding-top: clamp(0.35rem, 1vh, 0.75rem);
    padding-bottom: 0;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 47%);
    gap: 0.5rem 1.5rem;
    align-items: start;
  }

  .hero__copy {
    max-width: 44rem;
    padding-top: clamp(0.25rem, 0.8vh, 0.65rem);
    margin-left: 0;
    margin-right: auto;
  }

  .hero__title {
    margin: 0 0 clamp(0.75rem, 1.5vh, 1.25rem);
  }

  .hero__title-line {
    font-size: clamp(2.85rem, 3.65vw, 4.15rem);
    line-height: 1.06;
  }

  .hero__lead {
    font-size: clamp(1.1rem, 1.25vw, 1.25rem);
    max-width: 33rem;
    line-height: 1.48;
  }

  .hero__badge-wrap {
    --badge-tip: 2.85rem;
    margin-top: clamp(1.4rem, 2.5vh, 2.25rem);
  }

  .hero__badge {
    padding: clamp(2.4rem, 4vh, 3rem) clamp(1.9rem, 2.3vw, 2.7rem) clamp(2.5rem, 4.1vh, 3.1rem) clamp(1.6rem, 1.8vw, 2.2rem);
  }

  .hero__badge-line--top {
    font-size: clamp(1.25rem, 1.6vw, 1.65rem);
  }

  .hero__badge-line--bottom {
    margin-top: 0.25rem;
    font-size: clamp(1.75rem, 2.3vw, 2.45rem);
  }

  .hero__actions {
    gap: clamp(0.85rem, 1.1vw, 1.25rem);
    margin-top: clamp(1.4rem, 2.5vh, 2.25rem);
  }

  .hero__btn {
    width: clamp(12.25rem, 13.5vw, 13.75rem);
    min-width: clamp(12.25rem, 13.5vw, 13.75rem);
    height: clamp(3.2rem, 4.8vh, 3.6rem);
    min-height: clamp(3.2rem, 4.8vh, 3.6rem);
    font-size: 0.98rem;
  }

  .hero__figure {
    max-height: min(calc(100dvh - 13rem), 44rem);
    height: 100%;
    align-self: start;
    justify-content: flex-end;
  }

  .hero__instructor-wrap {
    width: 100%;
    max-width: 32rem;
    max-height: min(calc(100dvh - 13rem), 44rem);
  }

  .hero__instructor {
    width: 100%;
    max-height: min(calc(100dvh - 13rem), 44rem);
    object-position: top right;
  }

  .hero__subwoofer {
    left: -12%;
    top: -1%;
    width: min(66%, 22rem);
  }

  .hero__amplifier {
    left: -44%;
    top: 35%;
    width: min(96%, 31rem);
  }

  .hero__radio {
    left: -20%;
    top: 30%;
    width: min(56%, 18rem);
  }

  .hero__instructor-name {
    right: 4%;
    bottom: 11%;
    font-size: clamp(3.4rem, 4.2vw, 4.6rem);
  }
}

