/* 07-oct · Multimedia y encuadre independiente para Diseño, Tallas y Preguntas. */

html body[data-ens-page] .guide-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3dfdc;
  border-radius: 18px;
  background: #fff;
  color: #171514;
}

html body[data-ens-page] .guide-media__stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

html body[data-ens-page] .guide-media--square .guide-media__stage {
  aspect-ratio: 1 / 1;
}

html body[data-ens-page] .guide-media__stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* El recorte enfoca la prenda folclórica y evita que el encuadre termine en el maniquí. */
html body[data-ens-page="guide-design"] .guide-media--design .guide-media__stage video[src*="diseno-folclorico.mp4"] {
  object-fit: cover;
  object-position: center 25%;
}

/* El video de preguntas ocupa el marco completo y centra la prenda. */
html body[data-ens-page="faq"] .guide-media--portrait .guide-media__stage video {
  object-fit: cover;
  object-position: center 25%;
}

html body[data-ens-page] .guide-media figcaption {
  margin: 0;
  padding: 12px 16px 14px;
  color: #514c49;
  font: 500 14px/1.45 var(--mk-body, "Archivo", sans-serif);
}

html body[data-ens-page] .guide-media__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 12px 0;
  background: #fff;
}

html body[data-ens-page] .guide-media__choices button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #c9c4c0;
  border-radius: 999px;
  background: #fff;
  color: #171514;
  font: 700 14px/1.2 var(--mk-body, "Archivo", sans-serif);
  cursor: pointer;
}

html body[data-ens-page] .guide-media__choices button[aria-pressed="true"] {
  border-color: #171514;
  background: #171514;
  color: #fff;
}

html body[data-ens-page] .guide-media__choices button:focus-visible,
html body[data-ens-page] .guide-media video:focus-visible {
  outline: 3px solid #e20613;
  outline-offset: 3px;
}

/* El control flotante no debe quedar encima del marco ni del copy de portada. */
html body[data-ens-page].guide-media-in-view .ens-chat-widgets {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Diseño: copy a la izquierda y una referencia completa, sin recortar el uniforme. */
html body[data-ens-page="guide-design"] main[data-guia="diseno"] .gd-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  width: min(1180px, calc(100% - 96px));
  padding: clamp(36px, 4.2vw, 60px) 0 clamp(40px, 5vw, 68px);
}

html body[data-ens-page="guide-design"] .gd-intro__copy {
  min-width: 0;
}

html body[data-ens-page="guide-design"] .gd-intro h1 {
  margin: 0;
  color: #171514;
  font: 400 clamp(46px, 4.4vw, 60px)/1 var(--mk-display, "Anton", sans-serif);
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Gana a las escalas heredadas antiguas que fuerzan H1 de casi 72 px. */
html body[data-ens-page="guide-design"] #main-content#main-content[data-guia="diseno"] .gd-intro h1:not(.ens-motion-eyebrow) {
  font-size: clamp(46px, 4.4vw, 60px) !important;
  line-height: 1 !important;
}

html body[data-ens-page="guide-design"] .gd-intro h1 .seo-tema {
  display: block !important;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px !important;
  font: 700 12px/1.35 var(--mk-body, "Archivo", sans-serif) !important;
  letter-spacing: .08em;
}

html body[data-ens-page="guide-design"] .gd-intro__title {
  display: block;
  max-width: 12ch;
}

html body[data-ens-page="guide-design"] .gd-intro__copy > p {
  max-width: 48ch;
  margin: 16px 0 0;
  color: #514c49;
  font: 400 clamp(16px, 1.35vw, 18px)/1.55 var(--mk-body, "Archivo", sans-serif);
  text-wrap: pretty;
}

html body[data-ens-page="guide-design"] .gd-terms h2,
html body[data-ens-page="guide-design"] .gd-bases h2,
html body[data-ens-page="guide-design"] .gd-faq h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.04;
  text-wrap: balance;
}

html body[data-ens-page="guide-design"] .guide-media--design {
  width: min(100%, 480px);
  justify-self: end;
}

html body[data-ens-page="guide-design"] .guide-media--design .guide-media__stage {
  aspect-ratio: 3 / 4;
}

html body[data-ens-page="guide-design"] .gd-wrap,
html body[data-ens-page="guide-design"] .gd-scroll {
  width: min(1180px, calc(100% - 96px));
}

/* La sección de condiciones queda en blanco y sus encabezados usan Anton. */
html body[data-ens-page="guide-design"] .gd-terms,
html body[data-ens-page="guide-design"] .gd-faq {
  background: #fff;
}

html body[data-ens-page="guide-design"] .gd-terms__rows .gd-terms__title {
  margin: 0 0 7px !important;
  color: #171514;
  font-family: "Anton", sans-serif !important;
  font-size: clamp(20px, 1.7vw, 24px) !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}

html body[data-ens-page="guide-design"] #main-content[data-guia="diseno"] .gd-terms__rows .gd-terms__title {
  font-family: "Anton", sans-serif !important;
  font-size: clamp(20px, 1.65vw, 24px) !important;
  line-height: 1.12 !important;
}

html body[data-ens-page="guide-design"] .gd-terms__rows article {
  padding: 20px;
}

html body[data-ens-page="guide-design"] .gd-terms__note {
  padding: 18px 20px;
}

/* Tallas: texto e imagen forman dos columnas amplias en desktop. */
html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia="tallaje"] .gx-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  column-gap: clamp(32px, 5vw, 72px);
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: clamp(40px, 5vw, 72px);
}

html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia="tallaje"] .gx-hero__texto {
  min-width: 0;
  width: 100%;
}

html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia="tallaje"] h1.gx-h1:not(.ens-motion-eyebrow) {
  max-width: 12ch;
  font-size: clamp(48px, 4.3vw, 62px) !important;
  line-height: 1.02 !important;
  text-wrap: balance;
}

html body[data-ens-page="guide-sizing"] .gx-hero .gx-lead {
  max-width: 40ch;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
}

html body[data-ens-page="guide-sizing"] .gx-hero__media {
  width: min(100%, 440px);
  justify-self: end;
}

html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia] h2.gx-h2 {
  font-size: clamp(38px, 3.4vw, 48px) !important;
}

/* Preguntas: búsqueda y respuestas conservan el mismo eje y aire lateral. */
html body[data-ens-page="faq"] .faq-hub__hero {
  padding-block: clamp(6.5rem, 8vw, 7.5rem) clamp(2.5rem, 4vw, 3.5rem);
}

html body[data-ens-page="faq"] .faq-hub__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  width: min(1120px, calc(100% - 96px));
}

html body[data-ens-page="faq"] .faq-hub__hero h1 {
  max-width: 15ch;
  margin: 0 0 16px;
  font-size: clamp(46px, 4.4vw, 60px);
  line-height: 1.02;
  text-wrap: balance;
}

html body[data-ens-page="faq"] #main-content#main-content .faq-hub__hero h1:not(.ens-motion-eyebrow) {
  font-size: clamp(46px, 4.4vw, 60px) !important;
  line-height: 1.02 !important;
}

html body[data-ens-page="faq"] .faq-hub__hero .faq-hub__title {
  display: block;
  max-width: 14ch;
}

html body[data-ens-page="faq"] .faq-hub__hero p.faq-hub__lead {
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}

html body[data-ens-page="faq"] .guide-media--portrait {
  width: min(100%, 420px);
  justify-self: end;
}

html body[data-ens-page="faq"] .faq-hub__tools,
html body[data-ens-page="faq"] .faq-hub__anchors,
html body[data-ens-page="faq"] .faq-hub__section .guide-container,
html body[data-ens-page="faq"] .faq-hub__empty {
  width: min(1120px, calc(100% - 96px));
}

html body[data-ens-page="faq"] .faq-hub__tools {
  margin-top: 32px;
}

html body[data-ens-page="faq"] .faq-hub__section {
  padding-block: clamp(48px, 5.2vw, 72px);
}

html body[data-ens-page="faq"] .faq-hub__section .guide-heading h2 {
  font-size: clamp(36px, 3.7vw, 48px);
  line-height: 1.05;
  text-wrap: balance;
}

@media (max-width: 899px) {
  html body[data-ens-page="guide-design"] main[data-guia="diseno"] .gd-intro,
  html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia="tallaje"] .gx-hero,
  html body[data-ens-page="faq"] .faq-hub__hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html body[data-ens-page="guide-design"] .guide-media--design,
  html body[data-ens-page="guide-sizing"] .gx-hero__media,
  html body[data-ens-page="faq"] .guide-media--portrait {
    width: min(100%, 460px);
    justify-self: start;
  }
}

@media (max-width: 767px) {
  html body[data-ens-page="guide-design"] main[data-guia="diseno"] .gd-intro,
  html body[data-ens-page="guide-design"] .gd-wrap,
  html body[data-ens-page="guide-design"] .gd-scroll {
    box-sizing: border-box;
    width: calc(100% - 48px) !important;
    margin-inline: auto !important;
  }

  html body[data-ens-page="guide-design"] main[data-guia="diseno"] .gd-intro {
    gap: 24px;
    padding-block: 30px 38px;
  }

  html body[data-ens-page="guide-design"] #main-content#main-content[data-guia="diseno"] .gd-intro h1:not(.ens-motion-eyebrow) {
    font-size: clamp(40px, 10.6vw, 48px) !important;
    line-height: 1.02 !important;
  }

  html body[data-ens-page="guide-design"] .guide-media--design {
    width: 100%;
  }

  html body[data-ens-page="guide-design"] .guide-media--design .guide-media__stage {
    aspect-ratio: 4 / 5;
  }

  html body[data-ens-page="guide-design"] .gd-terms,
  html body[data-ens-page="guide-design"] .gd-bases,
  html body[data-ens-page="guide-design"] .gd-faq {
    padding-block: 48px;
  }

  html body[data-ens-page="guide-design"] .gd-terms h2,
  html body[data-ens-page="guide-design"] .gd-bases h2,
  html body[data-ens-page="guide-design"] .gd-faq h2 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.05;
    text-wrap: balance;
  }

  html body[data-ens-page="guide-design"] .gd-terms__rows article {
    padding: 18px;
  }

  html body[data-ens-page="guide-design"] #main-content[data-guia="diseno"] .gd-terms__rows .gd-terms__title {
    font-family: "Anton", sans-serif !important;
    font-size: clamp(18px, 5vw, 20px) !important;
  }

  html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia="tallaje"] .gx-hero {
    box-sizing: border-box;
    width: calc(100% - 48px) !important;
    margin-inline: auto !important;
    padding-block: 34px 40px;
  }

  html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia="tallaje"] h1.gx-h1:not(.ens-motion-eyebrow) {
    max-width: 14ch;
    font-size: clamp(40px, 10.5vw, 48px) !important;
    line-height: 1.06 !important;
  }

  html body[data-ens-page="guide-sizing"] #main-content#main-content[data-guia] h2.gx-h2 {
    font-size: clamp(29px, 7.8vw, 35px) !important;
    line-height: 1.12 !important;
  }

  html body[data-ens-page="guide-sizing"] .gx-hero__media {
    width: 100%;
  }

  html body[data-ens-page="guide-sizing"] .gx-wrap {
    box-sizing: border-box;
    width: calc(100% - 48px) !important;
    margin-inline: auto !important;
  }

  html body[data-ens-page="faq"] .faq-hub__hero {
    padding-block: 6.25rem 2rem;
  }

  html body[data-ens-page="faq"] .faq-hub__hero-grid,
  html body[data-ens-page="faq"] .faq-hub__tools,
  html body[data-ens-page="faq"] .faq-hub__anchors,
  html body[data-ens-page="faq"] .faq-hub__section .guide-container,
  html body[data-ens-page="faq"] .faq-hub__empty {
    box-sizing: border-box;
    width: calc(100% - 48px) !important;
    margin-inline: auto !important;
  }

  html body[data-ens-page="faq"] .faq-hub__hero-grid {
    gap: 24px;
  }

  html body[data-ens-page="faq"] #main-content#main-content .faq-hub__hero h1:not(.ens-motion-eyebrow) {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 12px;
    font-size: clamp(40px, 10.4vw, 48px) !important;
    line-height: 1.03 !important;
  }

  html body[data-ens-page="faq"] #main-content#main-content .faq-hub__hero .faq-hub__title {
    max-width: none !important;
  }

  html body[data-ens-page="faq"] .faq-hub__hero .guide-kicker.seo-tema[data-seo="pf-h1"] {
    font-size: 11px !important;
  }

  html body[data-ens-page="faq"] .guide-media--portrait {
    width: 100%;
  }

  html body[data-ens-page="faq"] .faq-hub__tools {
    margin-top: 24px;
  }

  html body[data-ens-page="faq"] .faq-hub__section {
    padding-block: 48px;
  }

  html body[data-ens-page="faq"] .faq-hub__section .guide-heading h2 {
    font-size: clamp(30px, 8vw, 36px);
  }
}
