html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

.yes-video-hero {
  --yes-accent: #F9F5EF;
  --yes-text: #fff;
  position: relative;
  isolation: isolate;
  display: grid;
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw);
  min-height: 90vh;
  min-height: 90svh;
  overflow-x: hidden !important;
  overflow-y: hidden;
  color: var(--yes-text);
  background: #5C4336;
  font-family: var(--body-font, "Montserrat", sans-serif);
}

/* El título usa la tipografía de títulos; no se fuerza "inherit" sobre el h1. */
.yes-video-hero button,
.yes-video-hero a,
.yes-video-hero p {
  font-family: inherit;
}

.yes-video-hero--fallback {
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 245, 239, .4), transparent 32%),
    linear-gradient(135deg, #B7A49C, #5C4336 70%);
}

.yes-video-hero--fallback .yes-video-hero__media { display: none; }

.yes-video-hero__media,
.yes-video-hero__fallback,
.yes-video-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yes-video-hero__fallback {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center;
}

.yes-video-hero__media {
  z-index: -2;
  display: block;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.yes-video-hero { grid-template-rows: 1fr auto; }

/* Overlay: lectura garantizada a la izquierda y al pie, sin apagar el video */
.yes-video-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 21, 16, .78) 0%, rgba(30, 21, 16, .46) 38%, rgba(30, 21, 16, .08) 70%, transparent 100%),
    linear-gradient(0deg, rgba(30, 21, 16, .6), transparent 38%);
  pointer-events: none;
}

.yes-video-hero__inner {
  align-self: end;
  box-sizing: border-box;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(96px, 12vw, 160px) clamp(20px, 6vw, 88px) clamp(36px, 5vw, 64px);
}

/* Etiqueta tipo "chip" de vidrio */
.yes-video-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 2vw, 26px);
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .08);
  font: 600 11px/1.2 var(--body-font, "Montserrat", sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.yes-video-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E8DBD1;
  box-shadow: 0 0 0 4px rgba(232, 219, 209, .22);
}

/* Título editorial: serif, minúsculas y acento en itálica */
.yes-video-hero__title {
  max-width: 13ch;
  margin: 0;
  color: inherit;
  font: 400 clamp(46px, 7vw, 108px)/.94 var(--heading-font, "Montserrat", sans-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.yes-video-hero__title em {
  display: block;
  color: #E8DBD1;
  font-style: italic;
}

.yes-video-hero__text {
  max-width: 44ch;
  margin: clamp(18px, 2vw, 28px) 0 0;
  color: inherit;
  font: 400 clamp(15px, 1.25vw, 18px)/1.6 var(--body-font, "Montserrat", sans-serif);
  opacity: .9;
}

.yes-video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.yes-video-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 16px 26px;
  border: 1px solid #F9F5EF;
  border-radius: 999px;
  color: #5C4336;
  background: #F9F5EF;
  font: 600 14px/1 var(--body-font, "Montserrat", sans-serif);
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.yes-video-hero__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.yes-video-hero__cta:hover,
.yes-video-hero__cta:focus-visible {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6);
}

.yes-video-hero__cta:hover svg,
.yes-video-hero__cta:focus-visible svg { transform: translateX(4px); }

.yes-video-hero__cta--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--yes-text);
  background: transparent;
  box-shadow: none;
}

.yes-video-hero__cta--ghost:hover,
.yes-video-hero__cta--ghost:focus-visible {
  border-color: #fff;
  color: var(--yes-text);
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

/* Barra de beneficios en vidrio, al pie del hero */
.yes-video-hero__perks {
  --yes-hero-gutter: clamp(20px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 max(var(--yes-hero-gutter), calc((100% - 1440px) / 2 + var(--yes-hero-gutter)));
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(30, 21, 16, .32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.yes-video-hero__perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 1.8vw, 24px) clamp(14px, 2vw, 28px);
}

.yes-video-hero__perks li:first-child { padding-left: 0; }
.yes-video-hero__perks li + li { border-left: 1px solid rgba(255, 255, 255, .16); }

.yes-video-hero__perks svg {
  flex: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #E8DBD1;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yes-video-hero__perks span {
  display: grid;
  gap: 3px;
  font: 400 12.5px/1.35 var(--body-font, "Montserrat", sans-serif);
  opacity: .78;
}

.yes-video-hero__perks strong {
  font-size: 14px;
  font-weight: 600;
  opacity: 1;
  color: #fff;
}

.yes-video-hero__cta:focus-visible,
.yes-video-hero__control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Controles del video: arriba a la derecha para no competir con la barra */
.yes-video-hero__controls {
  position: absolute;
  top: clamp(16px, 3vw, 36px);
  right: clamp(16px, 3vw, 40px);
  display: flex;
  gap: 10px;
}

.yes-video-hero__control {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 21, 16, .28);
  cursor: pointer;
  place-items: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, border-color .2s ease;
}

.yes-video-hero__control:hover { border-color: #fff; background: rgba(30, 21, 16, .5); }

.yes-video-hero__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.yes-video-hero__icon--play,
.yes-video-hero__icon--sound,
.yes-video-hero__control.is-paused .yes-video-hero__icon--pause,
.yes-video-hero__control.is-sound-on .yes-video-hero__icon--muted {
  display: none;
}

.yes-video-hero__control.is-paused .yes-video-hero__icon--play,
.yes-video-hero__control.is-sound-on .yes-video-hero__icon--sound {
  display: block;
}

@media (max-width: 1023px) {
  .yes-video-hero__perks span { font-size: 0; gap: 0; }
  .yes-video-hero__perks strong { font-size: 13px; }
}

@media (max-width: 767px) {
  .yes-video-hero {
    min-height: 92vh;
    min-height: 92svh;
  }

  .yes-video-hero__media { object-position: center; }

  .yes-video-hero__overlay {
    background: linear-gradient(0deg, rgba(30, 21, 16, .86) 0%, rgba(30, 21, 16, .55) 45%, rgba(30, 21, 16, .1) 80%);
  }

  .yes-video-hero__inner { padding: 96px 20px 28px; }

  .yes-video-hero__eyebrow { font-size: 10px; letter-spacing: .12em; }

  .yes-video-hero__eyebrow-more { display: none; }

  .yes-video-hero__title { font-size: clamp(44px, 13vw, 62px); }

  .yes-video-hero__text { max-width: 34ch; }

  .yes-video-hero__actions { flex-direction: column; align-items: stretch; }

  .yes-video-hero__cta { width: 100%; }

  .yes-video-hero__perks {
    grid-template-columns: 1fr;
    padding: 4px 20px;
  }

  .yes-video-hero__perks li,
  .yes-video-hero__perks li:first-child { padding: 12px 0; }

  .yes-video-hero__perks li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }

  .yes-video-hero__perks svg { width: 22px; height: 22px; }
}

@media (min-width: 768px) {
  .yes-video-hero {
    min-height: 92vh;
    min-height: 92svh;
  }

  .yes-video-hero__media {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yes-video-hero__media { display: none; }

  .yes-video-hero__cta,
  .yes-video-hero__cta svg,
  .yes-video-hero__control { transition: none; }

  .yes-video-hero__controls { display: none; }
}
