@font-face { font-family: PQR Montserrat; src: url('montserrat-regular.otf'); font-display: swap; }
@font-face { font-family: PQR Montserrat; src: url('montserrat-extrabold.otf'); font-weight: 800; font-display: swap; }
.pqr-page {
  margin: 0; color: #26193d; background: #FFF9F0;
  font: 1rem/1.6 "PQR Montserrat", sans-serif;
}
.pqr-page *, .pqr-page *::before, .pqr-page *::after { box-sizing: border-box; }
.pqr-page a { color: #4500C8; text-underline-offset: .22em; }
.pqr-page :focus-visible, .pqr-card:focus-visible { outline: 3px solid #4500C8; outline-offset: 4px; }
.pqr-wrap { width: min(92%, 69rem); margin-inline: auto; }
.pqr-bar { background: #FFF9F0; border-bottom: 1px solid #4500C825; }
.pqr-bar .pqr-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.pqr-bar img { display: block; width: 6rem; height: auto; }
.pqr-bar a { font-size: .85rem; }
.pqr-main { padding-block: clamp(1.25rem, 5vw, 3rem) 4rem; }
.pqr-page h1, .pqr-page h2, .pqr-card h3 { color: #4500C8; font-weight: 800; line-height: 1.1; }
.pqr-page h1 { font-size: clamp(2.1rem, 7vw, 4.2rem); margin: .25rem 0 .7rem; letter-spacing: -.04em; }
.pqr-page h1 span { background: #FFD700; border-radius: .18em .26em; padding-inline: .16em; }
.pqr-page h2 { font-size: clamp(1.35rem, 4vw, 1.85rem); }
.pqr-kicker { color: #4500C8; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-block: 0 .45rem; }
.pqr-controls { display: grid; gap: .75rem; margin-block: 1.3rem; }
.pqr-controls label { display: grid; gap: .25rem; color: #4500C8; font-weight: 800; font-size: .85rem; }
.pqr-controls input, .pqr-controls select {
  width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid #4500C8;
  border-radius: .75rem; background: white; color: #26193d; font: inherit;
}
.pqr-grid { display: grid; grid-template-columns: 1fr; gap: clamp(.65rem, 2vw, 1.1rem); }
.pqr-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1.1rem;
  background: white; border: 1px solid #4500C823; color: #4500C8; text-decoration: none;
}
.pqr-card:hover h3 { text-decoration: underline; }
.pqr-card-media { position: relative; display: block; }
.pqr-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; background: #FFF9F0; }
.pqr-time { position: absolute; right: .45rem; bottom: .45rem; background: #FFF9F0; border-radius: 3rem; padding: .2rem .55rem; font-size: .73rem; font-weight: 800; color: #4500C8; }
.pqr-card-copy { padding: .65rem .75rem .9rem; }
.pqr-card-copy small { font-size: .72rem; }
.pqr-card h3 { font-size: clamp(.95rem, 2.6vw, 1.15rem); margin: .22rem 0 0; }
.pqr-summary { margin-block: .35rem .9rem; }
.pqr-detail { max-width: 52rem; }
.pqr-detail-grid { display: grid; gap: .6rem 2rem; }
.pqr-ingredients li { margin-bottom: .65rem; }
.pqr-ingredients { list-style: none; padding: 0; }
.pqr-ingredients label { display: flex; align-items: start; gap: .55rem; }
.pqr-ingredients input { accent-color: #4500C8; margin-top: .38rem; }
.pqr-ingredients input:checked + span { text-decoration: line-through; }
.pqr-video { margin-top: 1.6rem; max-width: 26rem; }
.pqr-poster { display: block; position: relative; width: 100%; padding: 0; border: none; border-radius: 1.1rem; overflow: hidden; }
button.pqr-poster { cursor: pointer; }
.pqr-poster img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.pqr-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); background: #FFD700; color: #4500C8; border-radius: 3rem; padding: .65rem 1rem; white-space: nowrap; font: 800 .9rem "PQR Montserrat", sans-serif; }
.pqr-video iframe { width: 100%; aspect-ratio: 9/16; display: block; border: 0; border-radius: 1.1rem; }
.pqr-note { font-size: .86rem; }
@media (min-width: 340px) { .pqr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 650px) {
  .pqr-controls { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); max-width: 42rem; }
  .pqr-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .pqr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 930px) { .pqr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pqr-servings { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-weight: 800; color: #4500C8; }
.pqr-servings input { width: 5rem; min-height: 44px; padding: .3rem .45rem; border: 1px solid #4500C8; border-radius: .6rem; color: inherit; font: inherit; }

.pqr-activate-button { min-height: 44px; border: 0; border-radius: .75rem; background: #FFD700; color: #4500C8; font: inherit; font-weight: 800; cursor: pointer; }

.pqr-tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.pqr-tags li { border: 1px solid #4500C8; border-radius: 2rem; padding: .18rem .65rem; color: #4500C8; font-size: .78rem; overflow-wrap: anywhere; }

.pqr-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.pqr-steps > li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}
.pqr-step-number {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  background: #EEE8F7;
  color: #4500C8;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}
.pqr-step-copy h3 {
  margin: 0 0 .24rem;
  color: #4500C8;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.pqr-step-copy p {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
@media (min-width: 650px) {
  .pqr-steps > li { grid-template-columns: 52px minmax(0, 1fr); }
  .pqr-step-number { border-radius: 17px; }
}

/* La ficha mantiene una portada vertical junto a los datos de la receta. */
.pqr-recipe-hero { display: grid; grid-template-areas: "intro" "video"; gap: 1rem; align-items: start; margin-bottom: 1.5rem; }
.pqr-recipe-intro { grid-area: intro; min-width: 0; }
.pqr-recipe-intro [data-pqr-description] { white-space: pre-line; }
.pqr-recipe-hero .pqr-video { grid-area: video; margin: 0; width: 100%; max-width: 15rem; }
.pqr-recipe-hero .pqr-video:has(.pqr-player-loaded) { max-width: 19rem; }
.pqr-recipe-hero .pqr-video-heading { font-size: 1rem; margin: 0 0 .55rem; }
.pqr-recipe-hero .pqr-poster img { aspect-ratio: 9 / 16; object-fit: cover; }
.pqr-recipe-hero .pqr-note:empty { display: none; }
.pqr-detail .pqr-servings { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.pqr-detail .pqr-servings button { min-width: 44px; min-height: 44px; font: inherit; font-weight: 800; color: var(--pqr-violet, #4500c8); background: #eee8f7; border: 0; border-radius: .65rem; cursor: pointer; }
.pqr-detail .pqr-servings button:disabled { opacity: .45; cursor: default; }
.pqr-detail .pqr-servings input { min-height: 44px; box-sizing: border-box; text-align: center; appearance: textfield; }
.pqr-detail .pqr-servings input::-webkit-inner-spin-button,
.pqr-detail .pqr-servings input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (min-width: 769px) {
  .pqr-recipe-hero { grid-template-areas: "video intro"; grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
  .pqr-recipe-hero .pqr-video { max-width: none; }
}
@media (max-width: 768px) {
  .pqr-recipe-hero .pqr-video { justify-self: center; text-align: center; }
  .pqr-recipe-hero .pqr-video:not(:has(.pqr-player-loaded)) { max-width: 10.5rem; }
  .pqr-recipe-hero .pqr-play { font-size: .75rem; padding: .55rem .65rem; }
}

.pqr-detail:has(.pqr-ingredients-column) { margin-inline: auto; }
.pqr-ingredients-column { min-width: 0; }
@media (min-width: 769px) {
  .pqr-detail-grid:has(.pqr-ingredients-column) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.pqr-recipe-notes { width: min(100%, 22rem); margin-top: 1.25rem; margin-bottom: .5rem; padding: 1rem 1.25rem; background: #eee8f7; border-radius: 1rem; }
.pqr-recipe-notes h2 { margin: 0 0 .5rem; }
.pqr-recipe-notes p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.pqr-share-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.pqr-share-actions button:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .55rem .85rem; border: 1px solid #4500C8; border-radius: .75rem;
  color: #4500C8; background: transparent; font: inherit; font-size: .85rem;
  font-weight: 800; text-decoration: none; text-align: center; cursor: pointer;
}
.pqr-share-actions .pqr-share-native:not([hidden]) { background: #4500C8; color: #fff; }
.pqr-share-status { margin: .35rem 0; font-size: .8rem; }
.pqr-share-status:empty { margin: 0; }
.pqr-share-url { width: 100%; padding: .55rem; font: inherit; }
.pqr-related { margin-top: 2.5rem; border-top: 1px solid #4500C825; padding-top: 1rem; }
.pqr-related-all { display: inline-block; margin-top: .75rem; padding-block: .45rem; }
