/* MEISEOL · Tienda · content.css — propietario: S6 (ayuda, legal y 404; SPEC2 §7.3 y §7.11).
   Páginas generadas por scripts/build-content.mjs: cabecera de página (.doc-hero), índice «En esta página», texto largo
   (.prose), preguntas frecuentes (<details>), aviso de borrador, [MARCADORES], tablas que en móvil pasan a tarjetas,
   banda de ayuda, 404 de la tienda e impresión. Se carga después de styles.css y shop.css y reutiliza sus tokens.
   Movimiento: solo animaciones de entrada que terminan (≤ 5 s); el estado sin animar es la composición final. */

/* La cabecera fija mide 68 px; el aviso de vista previa no es fijo. Las anclas quedan con aire debajo de la cabecera. */
html { scroll-padding-top: 96px; }

/* ───── Cabecera de página ───── */
.doc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 85% at 96% 0%, rgba(217, 208, 255, .85), transparent 70%),
    radial-gradient(40% 70% at 74% 100%, rgba(205, 238, 255, .7), transparent 72%),
    radial-gradient(30% 55% at 100% 75%, rgba(255, 117, 183, .13), transparent 70%);
}
/* el degradado se funde con el fondo en lugar de cortarse en recto */
.doc-hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), var(--milk));
}
.doc-hero__in { position: relative; z-index: 1; padding-block: 22px 40px; }
.doc-hero__in > * { max-width: min(100%, 660px); }
.doc-hero .crumbs { margin-bottom: 14px; }
/* objetivo de 24 px de alto (WCAG 2.5.8) sin mover el texto */
.doc-hero .crumbs a, .doc-hero .crumbs [aria-current] { display: inline-block; padding-block: 4px; }
.doc-hero__title {
  margin-top: 12px;
  font-size: clamp(34px, 7.4vw, 58px); font-weight: 650; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance;
}
.doc-hero__lead { margin-top: 14px; max-width: min(100%, 56ch); color: var(--muted); font-size: 17px; line-height: 1.55; }
.doc-hero__meta { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.doc-hero__actions { margin-top: 18px; }

/* arte decorativo: burbujas de cristal, el icono del tema y dos destellos; entran una vez y se quedan quietos */
/* móvil: bajo la línea de migas, a la derecha del antetítulo y del título (que en móvil ocupan menos de 280 px) */
.doc-hero__art { position: absolute; z-index: 0; top: 46px; right: -22px; width: 104px; height: 104px; pointer-events: none; }
.doc-bub { position: absolute; display: block; overflow: visible; }
.doc-bub--1 { right: 0; top: 0; width: 82%; height: 82%; animation: doc-float 3.6s var(--ease) both; }
.doc-bub--2 { left: 0; bottom: 0; width: 34%; height: 34%; animation: doc-float 3.6s var(--ease) .35s both; }
.doc-hero__badge {
  position: absolute; left: 22%; top: 24%; display: grid; place-items: center; width: 40%; height: 40%; border-radius: 50%;
  background: rgba(255, 255, 255, .78); color: var(--violet); box-shadow: 0 16px 34px -22px rgba(118, 87, 255, .8);
  animation: doc-pop .8s var(--ease) .3s both;
}
.doc-hero__badge .i { width: 50%; height: 50%; stroke-width: 1.6; }
.doc-tw { position: absolute; width: 11%; height: 11%; }
.doc-tw--1 { right: 4%; bottom: 10%; animation: doc-twinkle 1.5s ease-in-out .9s 2 both; }
.doc-tw--2 { left: 8%; top: 6%; width: 8%; height: 8%; animation: doc-twinkle 1.5s ease-in-out 1.6s 2 both; }
@keyframes doc-float { 0% { opacity: 0; transform: translateY(16px) scale(.92); } 45% { opacity: 1; } 75% { transform: translateY(-3px) scale(1.01); } 100% { transform: none; } }
@keyframes doc-pop { 0% { opacity: 0; transform: scale(.55) rotate(-12deg); } 70% { transform: scale(1.06) rotate(2deg); } 100% { transform: none; } }
@keyframes doc-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.55) rotate(45deg); } }

/* ───── Índice de temas (portada de ayuda) y tarjetas de enlace ───── */
.help-index { position: relative; z-index: 1; margin-top: -10px; }
.hcards { display: grid; gap: 10px; }
.hcard {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; grid-template-areas: "icon title go" "icon text go";
  column-gap: 14px; row-gap: 2px; align-items: center; height: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--graphite); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
}
.hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(118, 87, 255, .32); }
.hcard__icon {
  grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #F1EDFF; color: var(--violet); transition: background .3s, color .3s, transform .45s var(--ease);
}
.hcard__icon .i { width: 22px; height: 22px; stroke-width: 1.7; }
.hcard:hover .hcard__icon { background: var(--violet); color: #fff; transform: rotate(-8deg) scale(1.06); }
.hcard__title { grid-area: title; align-self: end; font-size: 15.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; }
.hcard__text { grid-area: text; align-self: start; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.hcard__go { grid-area: go; width: 18px; height: 18px; color: var(--violet-ink); transition: transform .3s var(--ease); }
.hcard:hover .hcard__go { transform: translateX(3px); }

/* ───── Rejilla: índice lateral + texto ───── */
.doc-layout { padding-top: 26px; }
.doc-main { min-width: 0; }
.doc-toc--side { display: none; }
.doc-toc__list { display: grid; }
.doc-toc a { text-decoration: none; }
/* el anillo de foco va por dentro: así ningún contenedor con scroll lo recorta */
.doc-toc a:focus-visible { outline-offset: -3px; }

.doc-toc--fold { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.doc-toc__sum {
  display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px 0 18px; border-radius: 18px;
  list-style: none; cursor: pointer; font-size: 15px; font-weight: 700;
}
.doc-toc__sum::-webkit-details-marker { display: none; }
.doc-toc__n { color: var(--muted); font-weight: 500; }
.doc-toc__chev { margin-left: auto; color: var(--violet-ink); transition: transform .3s var(--ease); }
.doc-toc--fold[open] .doc-toc__chev { transform: rotate(180deg); }
.doc-toc--fold .doc-toc__list { gap: 0; padding: 0 18px 12px; border-top: 1px solid var(--line); }
.doc-toc--fold a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--graphite); }
.doc-toc--fold li:last-child a { border-bottom: 0; }
.doc-toc--fold a:hover { color: var(--violet-ink); }

/* ───── Aviso de borrador y [MARCADORES] ───── */
.draft-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 26px; padding: 14px 18px;
  border: 1.5px dashed rgba(154, 77, 0, .5); border-radius: 18px; background: #FFF6E9; color: #5A3000;
  font-size: 14.5px; line-height: 1.5;
}
.draft-note__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px;
  background: var(--warn); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.draft-note__tag .i { width: 15px; height: 15px; stroke-width: 2.2; }
.draft-note__text { flex: 1 1 260px; font-weight: 600; }

mark.ph {
  padding: .05em .32em; border-radius: 5px; background: #FFE7B0; color: #4A2800;
  box-shadow: inset 0 0 0 1px rgba(154, 77, 0, .3); font-size: .93em; font-weight: 650;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 mark.ph, h2 mark.ph, h3 mark.ph { font-size: .58em; font-weight: 700; vertical-align: .2em; letter-spacing: 0; }

/* ───── Texto largo (styles.css quita márgenes y viñetas: aquí vuelven) ───── */
.prose { max-width: 70ch; font-size: 16px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.3em; font-size: clamp(22px, 3.2vw, 27px); font-weight: 750; line-height: 1.2; letter-spacing: -.022em; text-wrap: balance; }
.prose h3 { margin-top: 1.8em; font-size: 18px; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .65em; }
.prose strong { font-weight: 750; }
.prose a { color: var(--violet-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose li > * + * { margin-top: .6em; }
.prose ul > li { position: relative; padding-left: 1.35em; }
.prose ul > li::before {
  content: ""; position: absolute; left: .25em; top: .66em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-iris);
}
.prose ol { counter-reset: paso; }
.prose ol > li { position: relative; padding-left: 2.5em; counter-increment: paso; }
.prose ol > li::before {
  content: counter(paso); position: absolute; left: 0; top: .12em; display: grid; place-items: center; width: 1.75em; height: 1.75em;
  border-radius: 50%; background: #F1EDFF; color: var(--violet-ink); font-size: 13px; font-weight: 800;
}
.prose blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--lavender); color: var(--muted); }
.prose hr { height: 1px; border: 0; background: var(--line); margin-block: 2em; }

/* tablas: marco redondeado; la primera columna es la cabecera de cada fila */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.prose .table-wrap { margin-top: 1.3em; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.table th, .table td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th {
  border-top: 0; background: var(--tint); color: var(--violet-ink);
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.table tbody th { font-weight: 750; }
.table-wrap--wide tbody th { min-width: 10em; }
/* Hasta 400 px, las tablas de dos columnas (no se apilan) caben en la pantalla: cabeceras que parten línea y celdas más
   estrechas [S6-G3, WCAG 1.4.10] */
@media screen and (max-width: 399.98px) {
  .table thead th { white-space: normal; }
  .table th, .table td { padding: 10px 12px; }
  .table tbody th { overflow-wrap: anywhere; }
}
.cell-label { display: none; }

/* modelo de formulario de desistimiento: una hoja con líneas para escribir */
.form-model {
  position: relative; margin-top: 1.2em; padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; box-shadow: 0 18px 40px -32px rgba(27, 27, 27, .45);
}
.form-model::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 8px 8px 0 0; background: var(--grad-iris); }
.form-model > * + * { margin-top: .9em; }
.form-model__line { padding-bottom: 16px; border-bottom: 1.5px dotted rgba(27, 27, 27, .35); }
.form-model__note { color: var(--muted); font-size: 14px; }

/* pie de las condiciones: versión aceptada e impresión (art. 27.4 LSSI-CE) */
.terms-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 44px;
  padding: 18px 20px; border: 1px solid rgba(118, 87, 255, .16); border-radius: 20px; background: var(--tint);
}
.terms-foot__version { color: var(--muted); font-size: 14px; }
.terms-foot__version strong { color: var(--graphite); font-weight: 750; }
/* sin JS el botón no haría nada: queda invisible (con su hueco, sin saltos) hasta que content.js lo activa */
[data-print]:not(.is-ready) { visibility: hidden; }

/* ───── Preguntas frecuentes ───── */
.prose--faq { max-width: 74ch; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.prose .faq-list > * + * { margin-top: 0; }
.faq {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: border-color .25s, box-shadow .35s;
}
.faq:hover { border-color: rgba(118, 87, 255, .35); }
.faq[open] { border-color: rgba(118, 87, 255, .4); box-shadow: 0 18px 40px -30px rgba(118, 87, 255, .6); }
.faq:target { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(118, 87, 255, .2); }
.faq__q { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 16px 14px 18px; border-radius: 18px; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.prose .faq__q > * { margin: 0; }
.prose .faq__title { flex: 1; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.005em; }
.faq__icon {
  flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #F1EDFF; color: var(--violet);
  stroke-width: 2.2; transition: transform .35s var(--ease), background .25s, color .25s;
}
.faq__q:hover .faq__icon { background: #E4DCFF; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--violet); color: #fff; }
.faq__a { padding: 0 18px 20px; }
.faq__a > * + * { margin-top: .9em; }
.faq[open] .faq__a { animation: faq-in .4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
/* La pregunta enlazada (/ayuda/#originales) ya se ve abierta en el primer pintado: cuando content.js la abre no se mueve nada.
   Solo hasta que content.js pone html.content-ready: después la abre y la cierra la persona (si no, la respuesta seguía
   visible con el plegable cerrado) [S6-G2]. Regla aparte: un navegador sin ::details-content la ignora y la abre content.js. */
html:not(.content-ready) .faq:target::details-content { content-visibility: visible; }
.faq:target .faq__a { animation: none; }

.legal-index { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-index__title { font-size: clamp(22px, 3.2vw, 27px); font-weight: 750; letter-spacing: -.022em; }
.legal-index__sub { margin-top: 6px; color: var(--muted); }
.hcards--legal { margin-top: 18px; }

/* ───── Banda de ayuda ───── */
.help-band { margin-top: 64px; }
.help-band__in {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 22px; padding: 30px 24px;
  border-radius: 28px; background: var(--graphite); color: var(--milk);
}
.help-band__in::before {
  content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; right: -170px; top: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 87, 255, .6), rgba(82, 124, 255, .16) 45%, transparent 70%);
}
.help-band__title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.help-band__text { margin-top: 8px; max-width: 46ch; color: rgba(255, 253, 248, .84); }
.help-band__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.help-band :focus-visible { outline-color: var(--milk); }
.btn--on-dark { border-color: rgba(255, 253, 248, .55); color: var(--milk); background: transparent; }
.btn--on-dark:hover { border-color: var(--milk); background: rgba(255, 253, 248, .08); }

/* ───── 404 de la tienda ───── */
.lost {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(217, 208, 255, .85), transparent 70%),
    radial-gradient(45% 55% at 8% 30%, rgba(205, 238, 255, .8), transparent 70%),
    radial-gradient(35% 40% at 60% 55%, rgba(255, 117, 183, .1), transparent 70%);
}
.lost__in { display: grid; justify-items: center; gap: 14px; padding-block: 40px 24px; text-align: center; }
.lost__code { display: flex; align-items: center; font-size: clamp(84px, 22vw, 156px); font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.lost__spark { width: .62em; height: .62em; margin-inline: .03em; fill: url(#spk-grad); animation: lost-spin 1.3s var(--ease) .15s both; }
@keyframes lost-spin { 0% { opacity: 0; transform: rotate(-200deg) scale(.3); } 70% { transform: rotate(10deg) scale(1.08); } 100% { transform: none; } }
.lost__title { max-width: 22ch; font-size: clamp(27px, 5vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.lost__text { max-width: 50ch; color: var(--muted); font-size: 17px; }
.lost__search { width: min(100%, 480px); margin-top: 8px; }
/* 16 px: en iPhone un campo más pequeño amplía la página al tocarlo */
.lost__search .search__input { height: 54px; padding-left: 22px; padding-right: 54px; font-size: 16px; box-shadow: 0 16px 36px -28px rgba(27, 27, 27, .45); }
.lost__search .search__btn { width: 44px; height: 44px; }
.worlds { display: grid; gap: 14px; width: 100%; max-width: 880px; margin-top: 22px; text-align: left; }
.world {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 210px; padding: 22px 22px 18px; border: 1px solid rgba(27, 27, 27, .06); border-radius: 26px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.world:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(27, 27, 27, .45); }
.world--perfumes { background: radial-gradient(80% 90% at 100% 0%, #F8DDB0, transparent 70%), linear-gradient(160deg, #FFFDF8 15%, #FCF0DA); }
.world--cosmetica { background: radial-gradient(80% 90% at 100% 0%, #FFD0E4, transparent 70%), linear-gradient(160deg, #FFFDF8 15%, #FFEAF3); }
.world__art { position: absolute; z-index: -1; top: 6px; right: 4px; width: 104px; transition: transform .8s var(--ease); }
.world__svg { width: 100%; height: auto; overflow: visible; }
.world:hover .world__art { transform: translate(-4px, 4px) rotate(-6deg); }
.world__title { max-width: calc(100% - 96px); font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.world__text { max-width: calc(100% - 96px); color: #4A4757; font-size: 15px; line-height: 1.45; }
.world__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: auto; padding-top: 14px; }
.world__cta .btn--text { padding-inline: 8px; }
.lost__more { max-width: 60ch; margin-top: 14px; color: var(--muted); }
.lost__more a { color: var(--violet-ink); font-weight: 600; text-underline-offset: 3px; }

/* ───── Tableta ───── */
@media (min-width: 700px) {
  .doc-hero__in { padding-block: 34px 56px; }
  .doc-hero__in > * { max-width: min(640px, calc(100% - 200px)); }
  .doc-hero__art {
    top: 20px; bottom: 20px; right: 2.5%; width: auto; height: auto; aspect-ratio: 1; max-width: 180px; max-height: 180px; margin-block: auto;
  }
  .doc--faq .doc-hero__art { bottom: 40px; }
  .help-index { margin-top: -18px; }
  .hcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .help-index .hcards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .help-index li { grid-column: span 2; }
  .help-index li:nth-child(n + 4) { grid-column: span 3; }
  .help-index .hcard { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "icon go" "title title" "text text"; align-items: start; align-content: start; row-gap: 4px; padding: 18px 18px 20px; }
  .help-index .hcard__title { margin-top: 10px; }
  .help-index .hcard__go { margin-top: 4px; }
  .hcards--legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Las páginas de texto (ayuda, legal) se quedan en 1180 px aunque la tienda crezca hasta 1680 px en monitores (styles.css):
     el índice lateral y la columna de lectura de 720 px están pensados para ese ancho; más anchas dejaban medio hueco a la derecha. */
  .doc { --wrap-max: 1180px; }
  .doc-layout { padding-top: 34px; }
  /* unas 80 letras por línea; las tablas anchas usan toda la columna */
  .doc-main > :not(.prose), .prose > :not(.table-wrap--wide) { max-width: 720px; }
  .form-model { padding: 34px 36px 28px; }
  .help-band__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 40px 44px; }
  .lost__in { padding-block: 56px 32px; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .worlds:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .world { min-height: 236px; padding: 28px 28px 22px; }
  .world__art { top: 10px; right: 10px; width: 128px; }
  .world__title, .world__text { max-width: calc(100% - 130px); }
  .world__title { font-size: 24px; }
}

/* ───── Escritorio: índice lateral fijo ───── */
@media (min-width: 1000px) {
  .doc-hero__in > * { max-width: min(660px, calc(100% - 320px)); }
  .doc-hero__art { right: max(2.5%, calc((100% - var(--wrap-max)) / 2 + 24px)); max-width: 270px; max-height: 270px; }
  .help-index .hcards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .help-index li, .help-index li:nth-child(n + 4) { grid-column: auto; }
  .doc-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 40px; }
  .doc-toc--side {
    display: block; position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain;
    padding: 2px 4px 16px 2px; scrollbar-width: thin; scrollbar-color: rgba(118, 87, 255, .3) transparent;
  }
  .doc-toc--fold { display: none; }
  .doc-toc__title { margin-bottom: 10px; color: var(--violet-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .doc-toc--side .doc-toc__list { border-left: 2px solid var(--line); }
  .doc-toc--side a {
    display: block; margin-left: -2px; padding: 6px 8px 6px 14px; border-left: 2px solid transparent;
    color: var(--muted); font-size: 13.5px; line-height: 1.35; transition: color .2s, border-color .25s;
  }
  .doc-toc--side a:hover { color: var(--graphite); border-left-color: rgba(118, 87, 255, .35); }
  .doc-toc--side a.is-current { color: var(--graphite); font-weight: 700; border-left-color: var(--violet); }
  .prose { font-size: 16.5px; }
}

/* ───── Móvil (y tableta en las tablas de 4 columnas o más): cada fila pasa a ser una tarjeta ───── */
@media screen and (max-width: 699.98px) {
  .doc-bub--2 { display: none; }
}
@media screen and (max-width: 699.98px) {
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--stack tr { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack th, .table--stack td { padding: 0; border: 0; }
  .table--stack tbody th { font-size: 15.5px; }
  .table--stack td { margin-top: 10px; }
  .table--stack .cell-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
}
@media screen and (min-width: 700px) and (max-width: 999.98px) {
  .table-wrap--wide .table--stack, .table-wrap--wide .table--stack tbody, .table-wrap--wide .table--stack tr { display: block; }
  .table-wrap--wide .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap--wide .table--stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding: 16px 20px 18px; border-top: 1px solid var(--line); }
  .table-wrap--wide .table--stack tbody tr:first-child { border-top: 0; }
  .table-wrap--wide .table--stack th, .table-wrap--wide .table--stack td { display: block; padding: 0; border: 0; }
  .table-wrap--wide .table--stack tbody th { grid-column: 1 / -1; font-size: 15.5px; }
  .table-wrap--wide .cell-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
}

@media (forced-colors: active) {
  mark.ph { forced-color-adjust: none; background: Mark; color: MarkText; box-shadow: none; outline: 1px dashed CanvasText; }
  .draft-note, .faq, .hcard, .doc-toc--fold, .table-wrap { border-color: CanvasText; }
  .draft-note__tag { border: 1px solid CanvasText; }
  .faq[open] .faq__icon, .hcard:hover .hcard__icon { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .doc-toc--side a.is-current { border-left-color: Highlight; }
}

/* ───── Impresión (condiciones de venta y cualquier página de ayuda): solo el texto, sin armazón ───── */
@media print {
  @page { size: A4; margin: 16mm 15mm 18mm; }
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #000; }
  .skip, .shop-header, .preview-note, .shop-footer, #cart-drawer, .doc-toc, .doc-hero__art, .help-index, .help-band,
  .crumbs, [data-print], .doc-hero__actions, .hcard__icon, .hcard__go, .faq__icon { display: none !important; }
  .shop-main { min-height: 0; }
  .wrap { max-width: none; padding-inline: 0; }
  .doc-hero { overflow: visible; background: none; }
  .doc-hero::after { display: none; }
  .doc-hero__in { padding-block: 0 10pt; }
  .doc-hero__in > *, .prose, .prose--faq { max-width: none; }
  .doc-hero__title { max-width: none; font-size: 24pt; }
  .doc-hero__lead { color: #000; font-size: 11pt; }
  .doc-hero__meta, .doc-hero .eyebrow { color: #333; }
  .doc-layout { display: block; padding-top: 6pt; }
  .prose { font-size: 10.5pt; line-height: 1.5; }
  .prose h2 { margin-top: 16pt; font-size: 14pt; break-after: avoid; }
  .prose h3, .faq__title { break-after: avoid; }
  .prose a { color: #000; font-weight: 400; }
  .prose a[href^="/"]::after { content: " (meiseol.com" attr(href) ")"; font-size: 9pt; }
  .prose ul > li::before { background: #000; }
  .prose ol > li::before { background: none; border: 1px solid #000; color: #000; }
  .draft-note { break-inside: avoid; border-color: #000; background: none; color: #000; }
  .draft-note__tag { background: none; border: 1px solid #000; color: #000; }
  mark.ph { background: none; color: #000; box-shadow: none; outline: 1px dashed #000; }
  .table-wrap { overflow: visible; border-color: #999; }
  .table thead th { background: none; color: #000; }
  .table tr, .faq, .form-model, .terms-foot { break-inside: avoid; }
  .faq, .faq[open] { border: 0; border-radius: 0; box-shadow: none; }
  .faq__q { min-height: 0; padding: 8pt 0 2pt; }
  .faq__a { padding: 0 0 6pt; }
  .faq[open] .faq__a { animation: none; }
  .form-model { box-shadow: none; border-color: #999; }
  .form-model::before { display: none; }
  .terms-foot { background: none; border-color: #999; }
  .legal-index { break-inside: avoid; }
  .hcards { display: block; }
  .hcard { display: block; padding: 3pt 0; border: 0; }
  .hcard__title, .hcard__text { display: block; color: #000; }
  .hcard::after { content: "meiseol.com" attr(href); display: block; color: #333; font-size: 9pt; }
  .lost .worlds, .lost__search { display: none; }
}

/* ───── Guías: el blog (/guias/, 23-11-2026; src/lib/blog/html.js) ─────
   Portada «editorial»: cabecera grafito con el lima de la marca, tres guías destacadas que pisan la cabecera y el archivo
   agrupado por temas. Cada guía lleva una portada (.bcover) con los frascos sin fondo de los perfumes que cita sobre un color
   (.bcover--<tono>). El artículo (.blog-post) repite la cabecera oscura, con la portada a la derecha en escritorio. */
.bcard, .brow, .bcat, .btag { text-decoration: none; color: inherit; }
.bgrid, .brows, .bcats { list-style: none; margin: 0; padding: 0; }

/* etiqueta de tema y línea de datos (fecha · minutos) */
.btag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--violet-ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.bmeta__date::after { content: "·"; margin-left: 10px; }

/* ── Portada de cada guía: frascos sin fondo sobre color ── */
.bcover { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; border-radius: 20px; background: linear-gradient(135deg, #F1EDFF, #D9D0FF); }
.bcover::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 68%); }
.bcover::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: 5%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(27, 27, 27, .2), rgba(27, 27, 27, 0)); }
.bcover__b { position: absolute; z-index: 2; left: 50%; bottom: 10%; height: 72%; width: auto; max-width: 38%; object-fit: contain; object-position: center bottom; transform: translateX(-50%); filter: drop-shadow(0 14px 14px rgba(27, 27, 27, .2)); transition: transform .6s var(--ease); }
.bcover__b--2 { z-index: 1; left: 20%; height: 56%; max-width: 28%; transform: translateX(-50%) rotate(-6deg); }
.bcover__b--3 { z-index: 1; left: 80%; height: 56%; max-width: 28%; transform: translateX(-50%) rotate(6deg); }
a:hover > .bcover .bcover__b--1 { transform: translateX(-50%) translateY(-2%) scale(1.03); }
a:hover > .bcover .bcover__b--2 { transform: translateX(-58%) rotate(-9deg); }
a:hover > .bcover .bcover__b--3 { transform: translateX(-42%) rotate(9deg); }
.bcover--sky { background: linear-gradient(135deg, #EAF7FF, #C2E5FB); }
.bcover--pink { background: linear-gradient(135deg, #FFF0F6, #FFCDE3); }
.bcover--lime { background: linear-gradient(135deg, #F9FDDD, #E0F574); }
.bcover--amber { background: linear-gradient(135deg, #FFF4E0, #FFD8A3); }
.bcover--night { background: radial-gradient(120% 120% at 82% 0%, #4B3DAE 0%, #262140 46%, #1B1B1B 100%); }
.bcover--night::before { background: radial-gradient(circle, rgba(150, 128, 255, .55), rgba(118, 87, 255, 0) 68%); }
.bcover--night::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.bcover--sq { aspect-ratio: 1; border-radius: 16px; }
.bcover--sq .bcover__b--1 { bottom: 13%; height: 72%; max-width: 68%; }
.bcover--hero { aspect-ratio: 5 / 4; border-radius: 28px; }

/* ── Tarjeta con portada y fila con miniatura ── */
.bcard { display: grid; gap: 14px; align-content: start; height: 100%; }
.bcard__body { display: grid; gap: 8px; align-content: start; }
.bcard__title { font-size: 19px; font-weight: 800; line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; transition: color .2s; }
.bcard:hover .bcard__title, .brow:hover .brow__title { color: var(--violet-ink); }
.bcard__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.bcard--lg .bcard__title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.14; letter-spacing: -.026em; }
.bgrid { display: grid; gap: 30px 18px; }
.brows { display: grid; }
.brow { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.brow__body { display: grid; gap: 6px; }
.brow__title { font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; transition: color .2s; }
.brow__text { display: none; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ── Cabecera oscura de la portada ── */
.bdark { position: relative; overflow: hidden; isolation: isolate; background: var(--graphite); color: var(--milk); }
.bdark::before { content: ""; position: absolute; z-index: -1; right: -240px; top: -330px; width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(118, 87, 255, .72), rgba(82, 124, 255, .18) 45%, transparent 70%); }
.bdark__in { padding-block: 20px 150px; }
.bdark .crumbs { margin-bottom: 16px; }
.bdark .crumbs ol, .ahero .crumbs ol { color: rgba(255, 253, 248, .62); }
.bdark .crumbs [aria-current], .ahero .crumbs [aria-current] { color: var(--milk); }
.bdark .crumbs a:hover, .ahero .crumbs a:hover { color: var(--lime); }
.bdark .eyebrow { color: var(--lime); }
.bdark__title { margin-top: 12px; font-size: clamp(38px, 8.6vw, 70px); font-weight: 650; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.bdark__lead { margin-top: 16px; max-width: 58ch; color: rgba(255, 253, 248, .8); font-size: 17px; line-height: 1.55; }
.bcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bcat { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1.5px solid rgba(255, 253, 248, .28); border-radius: 999px; background: transparent; color: var(--milk); font-size: 13.5px; font-weight: 700; transition: border-color .2s, color .2s; }
.bcat b { color: rgba(255, 253, 248, .6); font-weight: 600; }
.bcat:hover { border-color: var(--lime); color: var(--lime); }
.bdark :focus-visible, .ahero :focus-visible { outline-color: var(--milk); }
.btrio { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: -122px; }
.btrio .bcard { padding: 10px 10px 18px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 34px 60px -44px rgba(27, 27, 27, .55); transition: transform .35s var(--ease); }
.btrio .bcard:hover { transform: translateY(-3px); }
.btrio .bcard__body { padding-inline: 8px; }
.btrio--empty { margin-top: -110px; }
.bempty { padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--muted); }
.bempty a { color: var(--violet-ink); font-weight: 700; }
.bsec { margin-top: 52px; scroll-margin-top: 96px; }
.bsec__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 12px; border-bottom: 2px solid var(--graphite); font-size: clamp(24px, 3.2vw, 32px); font-weight: 750; line-height: 1.1; letter-spacing: -.028em; }
.bsec__title small { color: var(--muted); font-size: 14.5px; font-weight: 500; letter-spacing: 0; }
.blog .help-band { margin-top: 56px; }

/* ── Cabecera del artículo (oscura, con la portada) ── */
.ahero { position: relative; overflow: hidden; isolation: isolate; background: var(--graphite); color: var(--milk); }
.ahero::before { content: ""; position: absolute; z-index: -1; right: -260px; top: -340px; width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(118, 87, 255, .7), rgba(82, 124, 255, .16) 45%, transparent 70%); }
.ahero__in { padding-block: 20px 30px; }
.ahero__grid { display: grid; gap: 26px; margin-top: 16px; }
.ahero .btag { background: var(--lime); color: var(--graphite); }
.ahero .bmeta, .ahero__by { color: rgba(255, 253, 248, .72); }
.ahero__title { margin-top: 14px; font-size: clamp(32px, 7vw, 54px); font-weight: 650; line-height: 1.05; letter-spacing: -.036em; text-wrap: balance; }
.ahero__lead { margin-top: 16px; max-width: 58ch; color: rgba(255, 253, 248, .82); font-size: 18px; line-height: 1.55; }
.ahero__by { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; line-height: 1.35; }
.ahero__by strong { display: block; color: var(--milk); font-size: 14.5px; font-weight: 750; }
.ahero__av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--graphite); font-size: 17px; font-weight: 800; }

/* ── Texto del artículo ── */
.blog-post .prose { font-size: 17px; line-height: 1.75; }
.blog-post .prose > p:first-child { font-size: 1.13em; font-weight: 500; line-height: 1.62; }
.blog-post .prose h2 { margin-top: 2.4em; font-size: clamp(24px, 3.4vw, 30px); }
.blog-post .prose h2::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--graphite); }
.prose--guide .table-wrap { margin-block: 1.2em; }
/* La tarjeta de un perfume dentro del texto (src/lib/blog/html.js → guideCard); sin catálogo, un enlace a la ficha (.gcard).
   Con las reglas de las tarjetas del listado (shop.css: .pcard__body con 58 px a la derecha, la fila por contenedor) el nombre y el
   precio saltaban de columna (23-11-2026): aquí todo va en una columna, con el botón debajo en el móvil y a la derecha en pantalla. */
.gcard { margin: 1.4em 0; }
.gcard__link { display: inline-block; font-weight: 700; }
.pcard--guide { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "media body" "actions actions"; gap: 12px 16px; align-items: center; margin: 1.4em 0; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -40px rgba(27, 27, 27, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.pcard--guide:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard--guide .pcard__media { grid-area: media; display: block; width: 104px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.pcard--guide .pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.pcard--guide .pcard__body { grid-area: body; display: block; padding: 0; }
.pcard--guide .pcard__body > * { margin: 0; }
.pcard--guide .pcard__brand { color: var(--violet-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pcard--guide .pcard__name { margin-top: 2px; font-size: 19px; font-weight: 800; line-height: 1.2; }
.pcard--guide .pcard__name a { color: inherit; text-decoration: none; }
.pcard--guide .pcard__name a::after { content: none; }
.pcard--guide .pcard__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard--guide .pcard__notes { margin-top: 4px; }
.pcard--guide .pcard__size { margin-top: 2px; }
.pcard--guide .pcard__row { grid-area: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 12px; margin-top: 8px; }
.pcard--guide .pcard__row > * { margin: 0; }
.pcard--guide .price__now { font-size: 19px; font-weight: 800; }
.pcard--guide .pcard__actions { grid-area: actions; display: block; margin: 0; }
.pcard--guide .btn { width: 100%; justify-content: center; background: var(--graphite); border-color: var(--graphite); color: var(--milk); font-weight: 700; text-decoration: none; }
/* «Sigue leyendo» */
.doc-main > .bmore { max-width: none; margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--graphite); }
.bmore__title { margin-bottom: 22px; font-size: 26px; font-weight: 750; letter-spacing: -.026em; }
.bmore .bcard__title { font-size: 17px; }

/* ── Página de revisión (enlaces del email) ── */
.bhead { padding-block: 26px 40px; }
.bhead__title { margin-top: 12px; font-size: clamp(30px, 6vw, 48px); font-weight: 650; line-height: 1.05; letter-spacing: -.034em; text-wrap: balance; }
.bhead__lead { margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.breview .bmeta { margin-top: 14px; }
.breview__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 699px) { .ahero .crumbs li:last-child { display: none; } } /* el título ya está debajo: la miga larga partía la línea */
@media (max-width: 479px) { .brow .bmeta__date, .btrio .bcard:not(.bcard--lg) .bmeta__date { display: none; } }
@media (max-width: 899px) {
  .btrio .bcard:not(.bcard--lg) { grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; }
  .btrio .bcard:not(.bcard--lg) .bcover { aspect-ratio: 1; border-radius: 16px; }
  .btrio .bcard:not(.bcard--lg) .bcover__b--2, .btrio .bcard:not(.bcard--lg) .bcover__b--3 { display: none; }
  .btrio .bcard:not(.bcard--lg) .bcover__b--1 { bottom: 13%; height: 72%; max-width: 68%; }
  .btrio .bcard:not(.bcard--lg) .bcard__text { display: none; }
  .btrio .bcard:not(.bcard--lg) .bcard__title { font-size: 16.5px; }
  .btrio .bcard:not(.bcard--lg) .bcard__body { padding: 0; }
}
@media (min-width: 480px) { .brow__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }
@media (min-width: 640px) {
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brow { grid-template-columns: 148px minmax(0, 1fr); gap: 22px; padding: 20px 0; }
  .brow__title { font-size: 18.5px; }
  .bmore .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .pcard--guide { grid-template-columns: 128px minmax(0, 1fr) auto; grid-template-areas: "media body actions"; gap: 12px 20px; padding: 16px 20px 16px 16px; }
  .pcard--guide .pcard__media { width: 128px; }
  .pcard--guide .btn { width: auto; }
}
@media (min-width: 900px) {
  .bdark__in { padding-block: 30px 190px; }
  .btrio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -150px; }
  .btrio .bcard--lg .bcard__title { font-size: 19px; line-height: 1.22; letter-spacing: -.015em; }
  .brows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .bsec { margin-top: 64px; }
  .ahero__in { padding-block: 30px 54px; }
  .ahero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; margin-top: 22px; }
}
@media (min-width: 1000px) {
  .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 26px; }
  .blog-post .prose { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .bcover__b, .bcard__title, .brow__title, .btrio .bcard, .pcard--guide { transition: none; } }
@media print {
  .bdark, .ahero { background: none; color: #000; }
  .bcover, .bcats, .btrio, .bmore, .help-band { display: none; }
  .ahero__by strong, .ahero__lead { color: #000; }
}
