.store-page .product-card .card-copy:has(.card-ingredient) {
  grid-template-rows: auto auto 1fr auto;
}
.card-ingredient {
  display: block;
  padding-bottom: 14px;
  color: #50617b;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.card-ingredient::first-letter, .detail-ingredient::first-letter { text-transform: uppercase; }

html:has(.product-dialog[open]) { overflow: hidden; }
.dialog.product-dialog {
  width: min(1000px, calc(100% - 36px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 36px));
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid #687a99;
  border-radius: 15px;
  background: #fafbfe;
  color: #10192d;
  box-shadow: 0 30px 100px #030b2099;
  transform-origin: var(--detail-origin, 50%) 52%;
}
.product-dialog[open] { display: flex; flex-direction: column; animation: detail-enter .34s cubic-bezier(.18,.74,.25,1) both; }
.product-dialog::backdrop { background: #071020bd; }
@keyframes detail-enter {
  from { opacity: 0; transform: perspective(1100px) translateY(20px) rotateX(3deg) scale(.955); }
  to { opacity: 1; transform: none; }
}
.detail-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 3px 10px 3px clamp(17px, 3.2vw, 38px);
  background: #101a30;
  color: #d6e6ff;
  font-size: 13px;
  font-weight: 660;
}
#detail-reference { display: inline-flex; align-items: center; gap: 10px; }
#detail-reference::before { content: ""; width: 14px; height: 3px; background: #6ca9ff; }
.detail-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 30px/1 var(--body);
}
.detail-close:is(:hover,:focus-visible) { background: #23375a; }
.product-dialog :focus-visible { outline: 3px solid #3482f8; outline-offset: 2px; }
#detail-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#detail-content { padding: clamp(19px, 3.4vw, 38px); }
.detail-kicker { font-size: 13px; font-weight: 700; color: #315291; }
.detail-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 24px;
}
.detail-heading > div:first-child { min-width: 0; }
.detail-heading h2 { font-size: clamp(44px, 5.8vw, 72px); overflow-wrap: anywhere; margin: 6px 0 0; }
.detail-purchase { display: grid; justify-items: end; gap: 5px; flex: none; }
.detail-price { color: #444; font: 650 13px/1.35 var(--body); }
.detail-cart-feedback { max-width: 210px; margin: 0; color: #951e16; font-size: 13px; }
.detail-layout { display: grid; grid-template-columns: 1.13fr 1fr; align-items: start; gap: clamp(22px, 3.2vw, 40px); }
.detail-layout > * { min-width: 0; }
.detail-player { background: #0b1527; color: #fff; border-radius: 9px; overflow: hidden; }
.detail-player video, .detail-fallback {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0b1527;
}
.detail-player video:focus-visible { outline-offset: -4px; }
.detail-play {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 15px;
  min-height: 50px; border: 0; background: #1b45cb; color: #fff; font-weight: 730; text-align: left;
}
.detail-play:hover { background: #1239b6; }
.detail-play:focus-visible { outline-offset: -4px; outline-color: #a8deff; }
.play-symbol { border-block: 6px solid transparent; border-left: 9px solid currentColor; }
.play-length { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; }
.detail-player [data-video-error] { padding: 12px 16px; font-size: 14px; }
.detail-fallback { display: grid; place-items: center; border-radius: 9px; color: #fff; }
.detail-fallback img { width: 100%; height: 100%; object-fit: contain; }
.detail-transcript { margin-top: 7px; font-size: 14px; color: #3c4e69; }
.detail-transcript summary { padding-block: 11px; min-height: 44px; width: fit-content; cursor: pointer; font-weight: 650; }
.detail-transcript p { padding-bottom: 8px; }
.detail-notes { display: grid; gap: 16px; font-size: 16px; line-height: 1.55; }
.detail-block + .detail-block { padding-top: 14px; border-top: 1px solid #d9e2ef; }
.detail-block h3 { font: 700 14px/1.4 var(--body); margin: 0 0 4px; color: #364e79; }
.detail-block .detail-ingredient { font-weight: 670; }
.detail-source {
  display: inline-block; margin-top: 8px; padding-block: 4px; color: #2349ad; text-decoration: underline;
  text-underline-offset: 3px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .dialog.product-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .detail-heading { display: grid; gap: 9px; margin-bottom: 16px; }
  .detail-purchase { justify-items: stretch; }
  .detail-cart-feedback { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog.product-dialog[open] { animation: none; }
}

/* Avatar de la ficha */
.product-presenter {
  margin: 0 0 18px;
  min-width: 0;
  overflow: hidden;
  color: #2b251a;
  border: 1px solid #d5c8ad;
  border-radius: 9px;
  background: #fffdf7;
}
.product-presenter h3 {
  margin: 0;
  padding: 12px 15px;
  font: 700 clamp(23px, 2.5vw, 30px)/1.05 var(--title);
  letter-spacing: -.02em;
}
.presenter-screen { background: #211e18; }
.presenter-screen video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: contain; background: #211e18;
}
.presenter-screen video:focus-visible { outline-offset: -4px; }
.presenter-tools { display: grid; padding: 4px 14px; }
.presenter-start {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; max-width: 100%; min-height: 44px; margin-block: 8px;
  padding: 8px 16px; border: 1px solid #4f4025; border-radius: 24px;
  background: #3e321e; color: #fff9ea; font: 680 15px/1.3 var(--body);
  cursor: pointer;
}
.presenter-start:hover { background: #5b492a; }
.presenter-start > span { border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.presenter-status { margin: 0 0 7px; color: #633f27; font-size: 14px; }
.presenter-text { color: #59472b; font-size: 14px; line-height: 1.5; }
.presenter-text summary { width: fit-content; min-height: 44px; padding-block: 11px; cursor: pointer; font-weight: 680; }
.presenter-text p { margin: 0 0 4px; color: #3b3428; white-space: pre-line; overflow-wrap: anywhere; }
.presenter-text a { display: inline-block; min-height: 44px; padding-block: 10px; color: #71511d; text-decoration: underline; text-underline-offset: 3px; }
.product-presenter [hidden] { display: none; }

.product-presenter .presenter-switch {
  display: inline-flex; align-items: stretch; gap: 2px; min-width: 0;
  margin: 0 14px 12px; padding: 2px; border: 1px solid #c8c3b8; border-radius: 3px;
}
.product-presenter .presenter-switch legend, .product-presenter .presenter-switch input {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.product-presenter .presenter-switch label { position: relative; display: block; cursor: pointer; }
.product-presenter .presenter-switch span {
  display: grid; place-items: center; min-height: 44px; padding: 5px 12px;
  color: #373329; font: 680 14px/1.2 var(--body);
}
.product-presenter .presenter-switch input:checked + span { color: #fff; background: #201c16; }
.product-presenter .presenter-switch input:focus-visible + span { outline: 3px solid #9a722a; outline-offset: -3px; }
.product-presenter .coach-heading { padding: 1px 15px 10px; }
.product-presenter .coach-heading h4 { margin: 0; font: 750 18px/1.3 var(--body); color: #171511; }
.product-presenter .coach-heading p { margin: 2px 0 0; color: #534734; font-size: 14px; }
.product-presenter .presenter-text-only { margin: 5px 0 0; color: #54462c; font-size: 14px; }
.product-presenter .coach-portrait {
  display: block; width: 100%; height: auto; max-height: min(280px, 34svh);
  object-fit: contain; background: #151411;
}

.detail-layout.has-technical-sheet {
  grid-template-areas: "presenter notes" "media notes";
  grid-template-rows: max-content 1fr;
  row-gap: 18px;
}
.has-technical-sheet > .product-presenter { grid-area: presenter; margin: 0; }
.has-technical-sheet > .detail-visual { grid-area: media; }
.has-technical-sheet > .detail-notes { grid-area: notes; }

.technical-sheet {
  min-width: 0; overflow-wrap: anywhere; color: #231f18;
  background: #fffdf8; border: 1px solid #d7cfbe; border-top: 3px solid #b18b48;
}
.technical-sheet > header, .technical-sheet dl { padding: 16px clamp(14px, 2vw, 22px); }
.technical-sheet > header { padding-bottom: 0; }
.technical-sheet h3 { margin: 0; color: #17140f; font: 740 clamp(23px, 2.4vw, 30px)/1.15 var(--title); }
.technical-sheet header p { margin: 4px 0 0; color: #62553c; font: 600 13px/1.5 var(--body); }
.technical-sheet dl { display: grid; gap: 15px; margin: 0; }
.technical-sheet dt { margin-bottom: 3px; color: #554526; font: 720 14px/1.4 var(--body); }
.technical-sheet dd, .technical-sheet li { margin: 0; font: 450 16px/1.5 var(--body); }
.technical-sheet dd { white-space: pre-line; }
.technical-sheet ul { margin: 0; padding-inline-start: 1.2em; list-style: disc; }
.technical-sheet li + li { margin-top: 4px; }
.technical-sheet li::marker { color: #806528; }
.technical-sheet details { border-top: 1px solid #d7cfbe; }
.technical-sheet summary {
  min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px clamp(14px, 2vw, 22px); color: #362b15; font: 700 15px/1.4 var(--body);
  cursor: pointer; list-style: none;
}
.technical-sheet summary::-webkit-details-marker { display: none; }
.technical-sheet summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-right: 3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
}
.technical-sheet details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.technical-sheet summary:is(:hover,:focus-visible) { background: #f4eee0; }
.technical-sheet summary:focus-visible { outline-offset: -3px; }
.technical-sheet details dl { padding-top: 2px; }

@media (max-width: 760px) {
  .detail-layout.has-technical-sheet { grid-template-areas: "presenter" "notes" "media"; grid-template-rows: auto; row-gap: 16px; }
}

.technical-sheet .sheet-editor-note {
  padding: 14px clamp(14px, 2vw, 22px); border-top: 1px solid #d7cfbe;
  color: #4e4434; background: #f6f1e7; font: 460 14px/1.45 var(--body);
}
.technical-sheet .sheet-editor-note strong { display: block; margin-bottom: 3px; }
.technical-sheet .sheet-editor-note p { margin: 0; }
.sheet-jump { display: none; }
@media (max-width: 760px) {
  .sheet-jump {
    display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 4px;
    color: #69501e; font: 650 14px/1.4 var(--body); text-decoration: underline; text-underline-offset: 3px;
  }
}
