/* MEISEOL · Listados de la tienda (SPEC2 §7.6, §7.8): cabecera de /perfumes/, hubs de las dos líneas, resultados y filtros,
   búsqueda, páginas de marca y de colección, cabecera de colección y llamada al test. Sale de shop.css (§7.16: solo la
   descargan los listados) con las reglas en el mismo orden; las plantillas la enlazan justo detrás de shop.css para que la
   cascada sea la de antes. Propietario: S1-L. */

/* ───── Iconos, destellos y piezas pequeñas ───── */
.chip--on .chip__n { color: rgba(255, 253, 248, .75); }
.chip__k { font-weight: 500; opacity: .78; }
/* ───── Carga, error y 404 amable ───── */
.empty__tries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* ───── Tarjeta de producto ───── */
.fopt input, .fswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.fopt:has(input:focus-visible) .fopt__box, .fswitch:has(input:focus-visible) .fswitch__ui {
  outline: 3px solid var(--violet); outline-offset: 2px;
}
/* ───── Cabecera de /perfumes/ ───── */
.phero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 70% at 88% 18%, rgba(217, 208, 255, .85), transparent 70%),
    radial-gradient(45% 60% at 100% 95%, rgba(205, 238, 255, .9), transparent 70%),
    radial-gradient(40% 50% at 55% 110%, rgba(255, 117, 183, .14), transparent 70%),
    var(--milk);
}
.phero__in { position: relative; display: grid; gap: 8px; padding-block: 36px 24px; }
.phero__title { margin-top: 14px; font-size: clamp(52px, 12vw, 92px); font-weight: 650; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.phero__spark { width: .42em; height: .42em; vertical-align: .32em; margin-left: .04em; animation: logo-twinkle 9s var(--ease) 1.2s infinite; }
.phero__lead { max-width: 46ch; margin-top: 16px; font-size: 17px; color: var(--muted); }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.phero__meta { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.phero__meta i { font-style: normal; color: var(--violet); margin-inline: .3em; }
.phero__meta a { color: var(--violet-ink); text-underline-offset: 3px; }
.phero__art { position: relative; display: none; height: 230px; margin-top: 8px; }
.phero__bottle { position: absolute; bottom: 6%; display: block; background: none; }
.phero__bottle .art { height: 100%; }
.phero__bottle--1 { left: 50%; height: 88%; transform: translateX(-50%); z-index: 2; animation: bob 11s ease-in-out infinite; }
.phero__bottle--2 { left: 8%; height: 64%; transform: rotate(-8deg); }
.phero__bottle--3 { right: 6%; height: 70%; transform: rotate(8deg); }
.phero__bubble { position: absolute; overflow: visible; }
.phero__bubble--a { width: 46%; aspect-ratio: 1; height: auto; right: 2%; top: -6%; animation: drift 17s ease-in-out infinite; }
.phero__bubble--b { width: 18%; aspect-ratio: 1; height: auto; left: 4%; top: 8%; animation: drift 12s ease-in-out -5s infinite reverse; }
.phero__tw { position: absolute; width: 16px; height: 16px; animation: ha-twinkle 7s ease-in-out infinite; }
.phero__tw--1 { left: 30%; top: 6%; }
.phero__tw--2 { right: 8%; bottom: 30%; width: 12px; height: 12px; animation-delay: -2.5s; }
.phero__tw--3 { left: 8%; bottom: 18%; width: 11px; height: 11px; animation-delay: -4.8s; }
/* ───── «¿Qué te apetece oler hoy? ✦» ───── */
.hub { padding-top: 28px; padding-bottom: 8px; }
.tabpanel__intro { margin: -4px 0 16px; color: var(--muted); font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; min-height: 150px; padding: 16px 16px 14px;
  border: 1.5px solid rgba(27, 27, 27, .06); border-radius: 22px; text-align: left; color: var(--graphite); text-decoration: none;
  background:
    radial-gradient(90% 80% at 100% 100%, var(--fam-1), transparent 70%),
    linear-gradient(165deg, #fff 10%, var(--fam-bg) 70%);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(27, 27, 27, .5); border-color: rgba(27, 27, 27, .14); }
.tile__art { position: absolute; z-index: -1; right: -14px; top: -14px; width: 74px; height: 74px; transition: transform .8s var(--ease); }
.tile:hover .tile__art { transform: translate(-4px, 4px) rotate(-8deg); }
.tile__bubble { width: 100%; height: 100%; overflow: visible; animation: bob 10s ease-in-out infinite; }
.tile__spark { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; animation: spark-pulse 7s ease-in-out infinite; }
li:nth-child(even) > .tile .tile__bubble { animation-delay: -4s; }
li:nth-child(3n) > .tile .tile__spark { animation-delay: -3s; }
.tile__name { margin-top: auto; font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.tile__desc { margin-top: 6px; font-size: 13px; line-height: 1.4; color: #4A4757; }
.tile__n { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--violet-ink); }
.tile__n .i { width: 15px; height: 15px; }
.tile[aria-pressed="true"] { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.tile[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--graphite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFDF8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tile.is-zero { border-style: dashed; border-color: #A8A5B5; }
.tile.is-zero .tile__art { opacity: .35; }
.tile--finder { background: radial-gradient(70% 90% at 100% 0%, rgba(118, 87, 255, .7), transparent 70%), var(--graphite); color: var(--milk); border-color: var(--graphite); }
.tile--finder .tile__desc { color: rgba(255, 253, 248, .82); }
.tile--finder .tile__n { color: var(--lime); }
.hub__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.hub__more-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.senses { display: grid; gap: 10px; }
.sense {
  display: grid; gap: 4px; width: 100%; height: 100%; padding: 16px 18px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 18px; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .2s, background .2s;
}
.sense:hover { transform: translateY(-2px); border-color: rgba(118, 87, 255, .4); box-shadow: 0 18px 34px -28px rgba(118, 87, 255, .8); }
.sense__name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.sense__spark { width: 12px; height: 12px; }
.sense__desc { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sense__n { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--violet-ink); }
.sense[aria-pressed="true"] { border-color: var(--graphite); background: var(--tint); box-shadow: inset 0 0 0 1px var(--graphite); }
.sense.is-zero { border-style: dashed; border-color: #A8A5B5; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud--big .chip { min-height: 46px; padding: 0 20px; font-size: 15px; }
.cloud__none, .fgroup__none { margin-top: 10px; color: var(--muted); font-size: 14px; }
.cloud-search { position: relative; max-width: 440px; margin-bottom: 16px; }
.cloud-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cloud-search__input {
  width: 100%; height: 48px; padding: 0 18px 0 46px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 15px;
}
.cloud-search__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(118, 87, 255, .16); }
/* ───── Resultados y filtros ───── */
.results { padding-top: 40px; padding-bottom: 32px; scroll-margin-top: 76px; }
.results__head { margin-bottom: 18px; }
.results__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; outline: none; text-wrap: balance; }
.results__desc { max-width: 62ch; margin-top: 8px; font-size: 17px; color: var(--muted); }
.refine { margin-top: 18px; }
.refine__label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.refine__list { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.toolbar__count { margin-right: auto; font-size: 14px; color: var(--muted); }
.toolbar__count strong { color: var(--graphite); font-size: 16px; }
.toolbar__filter { gap: 8px; }
.toolbar__n { font-weight: 800; color: var(--violet-ink); }
.sort { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.sort__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.sort__select {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 38px 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--graphite);
}
.sort__select:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.sort__chev { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.active { margin: 14px 0 4px; }
.active__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active .chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
.active .chip .i { width: 14px; height: 14px; }
.active__clear { padding: 6px 8px; border: 0; background: none; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.active__clear:hover { color: var(--violet-ink); }
.shop-layout__main > .grid { margin-top: 18px; }
.more { display: grid; justify-items: center; gap: 10px; margin-top: 28px; }
.more__info { font-size: 13px; color: var(--muted); }
.shop-layout__side { display: none; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.filters__title { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.filters__clear { padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.fquick { display: grid; gap: 4px; padding: 10px 0 14px; }
.fswitch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 14px; font-weight: 600; }
.fswitch__ui { position: relative; width: 36px; height: 21px; flex: none; border-radius: 999px; background: #D9D6E2; transition: background .2s; }
.fswitch__ui::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(27, 27, 27, .3); transition: transform .25s var(--ease);
}
.fswitch input:checked + .fswitch__ui { background: var(--violet); }
.fswitch input:checked + .fswitch__ui::after { transform: translateX(15px); }
.fswitch .fopt__n { margin-left: auto; }
.fgroup { border-top: 1px solid var(--line); }
.fgroup__sum { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 4px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700; }
.fgroup__sum::-webkit-details-marker { display: none; }
.fgroup__n:not(:empty) { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; }
.fgroup__chev { width: 17px; height: 17px; margin-left: auto; transition: transform .25s var(--ease); }
.fgroup[open] .fgroup__chev { transform: rotate(180deg); }
.fgroup__body { padding-bottom: 14px; }
.fgroup__search {
  width: 100%; height: 38px; margin-bottom: 8px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 13.5px; background: #fff;
}
.fgroup__search:focus { outline: none; border-color: var(--violet); }
.fopts li.is-extra { display: none; }
.fgroup.is-all .fopts li.is-extra, .fgroup.is-searching .fopts li.is-extra { display: block; }
/* una opción marcada se ve aunque la lista esté plegada (is-on, listing.js) */
.fopts li.is-extra.is-on { display: block; }
/* grupos de una sola opción y «Solo novedades» sin novedades: fuera del panel (.fswitch es flex y taparía el hidden) */
.fgroup[hidden], .fswitch[hidden] { display: none; }
.fgroup.is-searching .fgroup__more { display: none; }
.fopts li[hidden] { display: none !important; }
.fopt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; font-size: 14px; }
.fopt__box {
  display: grid; place-items: center; width: 19px; height: 19px; flex: none; border: 1.5px solid #8B889A; border-radius: 6px; background: #fff;
  transition: background .15s, border-color .15s;
}
.fopt__box .i { width: 13px; height: 13px; stroke-width: 3; color: var(--milk); opacity: 0; }
.fopt input:checked + .fopt__box { background: var(--graphite); border-color: var(--graphite); }
.fopt input:checked + .fopt__box .i { opacity: 1; }
.fopt:hover .fopt__box { border-color: var(--violet); }
.fopt__label { flex: 1; min-width: 0; }
.fopt__n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fopt.is-zero, .fswitch.is-zero { opacity: .45; cursor: default; }
.fgroup__more { margin-top: 6px; padding: 6px 0; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 4px; }
.fdialog {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: var(--milk); color: var(--graphite);
  box-shadow: -30px 0 60px -30px rgba(27, 27, 27, .4); overscroll-behavior: contain;
}
.fdialog::backdrop { background: rgba(27, 27, 27, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fdialog[open] { animation: sheet-in .45s var(--ease); }
.fdialog[open]::backdrop { animation: veil .3s ease-out; }
.fdialog.is-closing { animation: sheet-out .32s ease-in forwards; }
.fdialog.is-closing::backdrop { animation: veil-out .32s ease-in forwards; }
.fdialog__panel { display: flex; flex-direction: column; height: 100%; }
.fdialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.fdialog__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.fdialog__body { flex: 1; overflow-y: auto; padding: 6px 20px 20px; }
.fdialog__body .filters__head { display: none; }
.fdialog__foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
/* ───── Listados de las dos líneas, búsqueda, marcas y colecciones (S1-L) ───── */
.shop-layout[hidden], .lineseg[hidden] { display: none; }
/* «Saltar los filtros» (escritorio): solo se ve con el foco [A11Y-3] */
.filters__skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.filters__skip:focus-visible {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; display: inline-flex; margin: 2px 0 10px;
  padding: 8px 14px; border-radius: 999px; background: var(--graphite); color: var(--milk); font-size: 13px; font-weight: 700; text-decoration: none;
}
.fdialog .filters__skip { display: none; }
/* faceta «linea» de las vistas mixtas: Todo · Perfumes (n) · Cosmética (n) */
.lineseg { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 20px; }
.lineseg__opt {
  min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 700; color: var(--graphite); transition: background .2s, color .2s, border-color .2s;
}
.lineseg__opt:hover { border-color: rgba(118, 87, 255, .5); }
.lineseg__opt[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }
.lineseg__n { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lineseg__opt[aria-pressed="true"] .lineseg__n { color: rgba(255, 253, 248, .78); }
.lineseg__opt:disabled { border-style: dashed; color: #5E5B6B; cursor: not-allowed; }
@media (forced-colors: active) {
  .lineseg__opt[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .lineseg__opt[aria-pressed="true"] .lineseg__n { color: HighlightText; }
  .lineseg__opt:disabled { color: GrayText; }
  .finders__card { border: 2px solid CanvasText; }
}
@media (max-width: 439.98px) {
  .lineseg__opt { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
}
/* búsqueda nueva que ha quitado los filtros: «Volver a tu selección» [JOU-6] */
.results__back {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 760px; margin-top: 14px; padding: 8px 8px 8px 14px;
  border-radius: 16px; background: var(--tint); font-size: 14px; color: #3A3746;
}
.results__back .i { width: 17px; height: 17px; color: var(--violet-ink); }
.results__back > span { flex: 1 1 240px; }
.results__backbtn { min-height: 40px; }
/* resultados de la otra línea al buscar [BUS-18] */
.xline { margin-top: 12px; }
.xline__link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 15px; font-weight: 700; color: var(--violet-ink); text-underline-offset: 4px; }
.xline__link .i { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.xline__link:hover .i { transform: translateX(3px); }
.xline--empty { margin-top: 18px; text-align: center; }
.xresults { margin-top: 30px; }
.xresults__title { margin-bottom: 16px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.xresults__more { display: flex; justify-content: center; margin-top: 20px; }
/* /tienda/buscar: título, buscador propio y búsquedas sugeridas */
.shead {
  /* los degradados se funden antes del borde de la sección (sin corte recto) */
  background:
    radial-gradient(42% 85% at 88% 0%, rgba(217, 208, 255, .75), transparent 72%),
    radial-gradient(30% 70% at 100% 20%, rgba(205, 238, 255, .7), transparent 72%);
}
.shead__in { display: grid; gap: 10px; padding-block: 30px 34px; }
.shead__title { font-size: clamp(32px, 5vw, 50px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.search--page { max-width: 640px; margin-top: 8px; }
.search--page .search__input { height: 54px; padding-left: 22px; font-size: 16px; }
.search--page .search__btn { width: 44px; height: 44px; right: 5px; }
.suggest { margin-top: 18px; }
.suggest__label { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.suggest__list { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest__list .chip { min-height: 44px; padding: 0 18px; font-size: 15px; }
.suggest__list .chip .i { width: 16px; height: 16px; color: var(--violet-ink); }
/* los dos buscadores guiados juntos */
.finders { display: grid; gap: 14px; }
.finders__card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 8px; height: 100%; padding: 28px 70px 28px 26px;
  border-radius: 28px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s;
}
.finders__card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -32px rgba(27, 27, 27, .45); }
.finders__card--perfumes { color: var(--milk); background: radial-gradient(45% 80% at 4% 0%, rgba(255, 117, 183, .42), transparent 70%), linear-gradient(120deg, #5F41E6, #3858DA); }
.finders__card--cosmetica { color: var(--graphite); background: radial-gradient(60% 90% at 100% 0%, rgba(255, 198, 224, .8), transparent 70%), linear-gradient(140deg, #F4FBFF, #DDF3FF 60%, var(--ice)); }
.finders__card:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.finders__line { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.finders__name { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.finders__spark { width: .55em; height: .55em; vertical-align: .1em; }
.finders__card--perfumes .finders__spark { fill: var(--milk); }
.finders__text { max-width: 46ch; font-size: 15.5px; line-height: 1.5; }
.finders__go {
  position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--graphite); color: var(--milk); transition: transform .3s var(--ease);
}
.finders__card--perfumes .finders__go { background: var(--milk); color: var(--graphite); }
.finders__card:hover .finders__go { transform: translateX(3px); }
@media (min-width: 700px) {
  .finders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.colls__all { display: flex; justify-content: center; margin-top: 24px; }
.nf-links { display: flex; justify-content: center; }
.phero__bottle.pmedia[data-accent], .chero__bottle.pmedia[data-accent] { background: none; }
.tile__desc, .sense__desc, .chero__tag { text-wrap: balance; }
/* La descripción de una familia la escribe Raquel en el admin (completa sale bajo el título de resultados); en la tarjeta del
   hub de perfumes se recorta a 3 líneas para que un texto largo no descoloque la rejilla [REQ-7]; la frase fija de la
   tarjeta del test, entera */
#explora .tile:not(.tile--finder) .tile__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chero__desc, .results__desc { text-wrap: pretty; }
/* ───── Colecciones ───── */
/* Cabecera de una colección (y base de las de marca: .brand-hero* y .coll-hero*, en brands.css de S3) */
.chero { position: relative; overflow: hidden; isolation: isolate; border-radius: 0 0 var(--round) var(--round); }
.chero__in { position: relative; display: grid; gap: 10px; justify-items: start; padding-block: 24px 40px; }
.chero .crumbs { margin-bottom: 10px; }
.chero__title { max-width: 16ch; font-size: clamp(36px, 7vw, 68px); font-weight: 700; line-height: 1.14; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.chero__spark { width: .5em; height: .5em; vertical-align: .2em; }
.chero__tag {
  padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85);
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
}
.chero__desc { max-width: 56ch; font-size: 17px; }
.chero__count { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.chero__art { position: absolute; z-index: -1; right: -30px; bottom: -6px; display: none; width: 260px; height: 220px; }
.chero__bubble { position: absolute; right: 30px; top: 0; width: 150px; height: 150px; overflow: visible; animation: drift 16s ease-in-out infinite; }
.chero__bottle { position: absolute; bottom: 0; display: block; height: 72%; background: none; }
.chero__bottle .art { height: 100%; }
.chero__bottle--1 { left: 60px; height: 82%; z-index: 1; animation: bob 11s ease-in-out infinite; }
.chero__bottle--2 { left: 10px; transform: rotate(-8deg); }
.chero__bottle--3 { left: 130px; height: 64%; transform: rotate(8deg); }
/* con fotos en baldosa (.ptile, shop.css): más bajas y abiertas que los frascos dibujados, que son estrechos */
.chero__bottle.ptile { padding: 10px; border-radius: 20px; }
.chero__bottle--1.ptile { left: 100px; bottom: 6%; height: 64%; }
.chero__bottle--2.ptile { left: 36px; bottom: 16%; height: 46%; }
.chero__bottle--3.ptile { left: 200px; bottom: 12%; height: 44%; }
/* en la tableta el texto llegaría hasta las baldosas (blanco sobre blanco en los temas oscuros): algo más estrecho */
@media (min-width: 700px) and (max-width: 999.98px) {
  .chero:has(.chero__art .ptile) .chero__desc { max-width: calc(96vw - 390px); }
}
.chero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.chero:has(.chero__img)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 27, 27, .72), rgba(27, 27, 27, .2)); }
.chero:has(.chero__img), .chero.coll--graphite { color: var(--milk); }
.chero.coll--graphite .crumbs ol, .chero:has(.chero__img) .crumbs ol { color: rgba(255, 253, 248, .75); }
.chero.coll--graphite .crumbs [aria-current], .chero:has(.chero__img) .crumbs [aria-current] { color: var(--milk); }
.chero.coll--graphite .chero__eyebrow, .chero:has(.chero__img) .chero__eyebrow { color: var(--lavender); }
.chero.coll--graphite .chero__tag, .chero:has(.chero__img) .chero__tag { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--milk); }
.chero.coll--graphite .chero__eyebrow::before { background-image: url("/assets/meiseol-simbolo-blanco.svg"); }
.chero.coll--graphite :focus-visible, .chero:has(.chero__img) :focus-visible { outline-color: var(--milk); }
/* Llamada a «Encuentra tu perfume» */
.band-wrap { padding-top: 24px; }
.band {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 22px; justify-items: start;
  padding: 34px 28px; border-radius: 30px; color: var(--milk);
  background: radial-gradient(45% 80% at 4% 0%, rgba(255, 117, 183, .42), transparent 70%), linear-gradient(120deg, #5F41E6, #3858DA);
}
.band :focus-visible { outline-color: var(--milk); }
.band__bubble { position: absolute; z-index: -1; overflow: visible; aspect-ratio: 1; height: auto; }
.band__bubble--a { width: 220px; right: -50px; top: -70px; animation: drift 16s ease-in-out infinite; }
.band__bubble--b { width: 90px; right: 26%; bottom: -30px; animation: drift 12s ease-in-out -4s infinite reverse; }
.band__eyebrow { color: var(--milk); }
.band__eyebrow::before { background-image: url("/assets/meiseol-simbolo-blanco.svg"); }
.band__title { margin-top: 10px; font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.band__text { max-width: 52ch; margin-top: 10px; font-size: 16.5px; color: var(--milk); }
/* ───── Tableta ───── */
@media (min-width: 700px) {
  .phero__in { padding-block: 44px 28px; }
  .phero__art { display: block; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 176px; padding: 20px 20px 16px; }
  .tile__name { font-size: 19px; }
  .tile__art { width: 92px; height: 92px; right: -16px; top: -16px; }
  .senses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 44px 48px; }
  .chero__in { padding-block: 32px 56px; }
  .chero__art { display: block; right: 4%; width: 330px; height: 280px; }
  .chero__in > :not(.crumbs) { max-width: min(62%, 640px); }
}
/* ───── Escritorio ───── */
@media (min-width: 1000px) {
  .phero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding-block: 40px 20px; }
  .phero__art { height: 330px; margin-top: 0; }
  .hub { padding-top: 36px; padding-bottom: 8px; }
  .shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
  .shop-layout__side {
    display: block; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain;
    padding: 2px 10px 28px 2px; scrollbar-width: thin; scrollbar-color: rgba(118, 87, 255, .3) transparent;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  }
  .toolbar__filter, .refine { display: none; }
}
@media (forced-colors: active) {
  .fswitch__ui, .fopt__box { forced-color-adjust: auto; border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .tile:hover { transform: none; }
}
/* ═════ S1 · fase 2b: ficha de las dos líneas, carrito, favoritos y hallazgos de QA de la fase 1. */
.fswitch__ui { background: #8B889A; }
@media (max-width: 999.98px), (pointer: coarse) {
  .cloud-search__input, .fgroup__search, .sort__select { font-size: 16px; }
}
/* …y con esos 16 px el orden nunca es más ancho que su barra; por debajo de 360 px no cabe junto a «Ordenar»: el rótulo va
   encima y el campo ocupa toda la fila, sin cortar «Precio: de menor a mayor» (reflow a 320 px) [S1-G2, A11Y-7] */
.sort, .sort__select { min-width: 0; max-width: 100%; }
@media (max-width: 359.98px) {
  .sort { flex: 1 1 100%; flex-wrap: wrap; gap: 4px; }
  .sort__select { flex: 1 1 100%; }
  .sort__chev { top: auto; bottom: 12px; transform: none; }
}
/* Listados: tarjetas de familia alineadas y sin cortes [VIS-2]; frasco central quieto en su sitio [VIS-3] */
.tile__name { margin-top: 44px; font-size: clamp(15px, 4.4vw, 17px); letter-spacing: -.015em; text-wrap: balance; }
.tile__n { margin-top: auto; padding-top: 10px; }
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tile__name { margin-top: 64px; font-size: 19px; }
}
@media (min-width: 700px) and (max-width: 999.98px) {
  .tiles > li:last-child:nth-child(3n+2) { grid-column: span 2; }
  .tiles > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.phero__bottle--1 { transform: none; translate: -50% 0; }
/* con fotos en baldosa (.ptile, shop.css): más bajas y abiertas que los frascos dibujados */
.phero__bottle.ptile { padding: 12px; border-radius: 22px; }
.phero__bottle--1.ptile { bottom: 10%; height: 70%; }
.phero__bottle--2.ptile { left: 6%; bottom: 18%; height: 50%; }
.phero__bottle--3.ptile { right: 6%; bottom: 14%; height: 54%; }
.phero__art *, .phero__spark, .tile__bubble, .tile__spark, .chero__art *, .band__bubble { animation-iteration-count: 3; }
.chero:has(.chero__img)::before { background: linear-gradient(90deg, rgba(27, 27, 27, .8), rgba(27, 27, 27, .62)); }
.chero:has(.chero__img) .crumbs ol, .chero:has(.chero__img) .chero__eyebrow { color: var(--milk); }
.chero:has(.chero__img) .chero__eyebrow::before { background-image: url("/assets/meiseol-simbolo-blanco.svg"); }
.chero:has(.chero__img) .chero__tag { background: rgba(27, 27, 27, .45); }
.chero:has(.chero__img) .chero__count { opacity: 1; }
@media (max-width: 699.98px) {
  .chero:has(.chero__img)::before { background: rgba(27, 27, 27, .7); }
  .band__bubble--a { opacity: .35; }
}
@media (min-width: 1000px) {
  .shop-layout__side { padding: 6px 10px 28px 8px; margin-left: -6px; }
}
.phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), var(--milk));
}
.phero__in { position: relative; z-index: 1; }
.results { scroll-margin-top: 0; }
@media (forced-colors: active) {
  .tile[aria-pressed="true"], .sense[aria-pressed="true"] { border: 3px solid Highlight; }
  .tile[aria-pressed="true"]::after { forced-color-adjust: none; background-color: Highlight; }
  .fswitch__ui::after { forced-color-adjust: none; background: CanvasText; }
  .fswitch input:checked + .fswitch__ui { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .fswitch input:checked + .fswitch__ui::after { background: HighlightText; }
  .fopt input:checked + .fopt__box { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .fopt__box .i { color: HighlightText; }
}

/* ───── Texto de la portada de perfumes (SEO): en el HTML, sin JavaScript, debajo del listado ───── */
.seo-copy { margin-top: 64px; padding-block: 56px 72px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--tint), rgba(244, 241, 255, 0) 70%); }
.seo-copy__in { max-width: 860px; }
.seo-copy h2 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 750; line-height: 1.2; letter-spacing: -.022em; text-wrap: balance; }
.seo-copy h3 { margin-top: 1.9em; font-size: 18px; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.seo-copy p, .seo-copy li { max-width: 74ch; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.seo-copy h2 + p, .seo-copy h3 + p, .seo-copy h3 + ul { margin-top: .7em; }
.seo-copy ul { display: grid; gap: .45em; }
.seo-copy li { position: relative; padding-left: 1.35em; }
.seo-copy li::before { content: ""; position: absolute; left: .25em; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-iris); }
.seo-copy strong { color: var(--graphite); font-weight: 750; }
.seo-copy a { color: var(--violet-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.seo-copy a:hover { text-decoration-thickness: 2px; }

/* ───── Lo que queda lejos de la pantalla no se maqueta ni se pinta (content-visibility) ─────
   Con 700 perfumes, cada «Mostrar más» suma 24 tarjetas (~860 elementos) y todo el listado se volvía a maquetar en cada
   toque. Las tarjetas y las secciones de debajo se saltan estilo, maqueta y pintado hasta que se acercan a la vista; su alto
   lo reserva contain-intrinsic-size («auto»: el de verdad en cuanto se han pintado una vez), así que nada salta. Los valores
   son el alto medio de cada pieza en cada anchura. */
#grid > .pcard { content-visibility: auto; contain-intrinsic-size: auto 300px; }
#colecciones { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.band-wrap { content-visibility: auto; contain-intrinsic-size: auto 360px; }
.seo-copy { content-visibility: auto; contain-intrinsic-size: auto 1440px; }
@media (min-width: 600px) {
  #grid > .pcard { contain-intrinsic-size: auto 560px; }
}
@media (min-width: 1000px) {
  #grid > .pcard { contain-intrinsic-size: auto 510px; }
}
@media (min-width: 700px) {
  .seo-copy { contain-intrinsic-size: auto 930px; }
}
/* durante un salto largo (ancla o posición guardada, listing.js) se pinta todo para que caiga en su sitio exacto */
.cv-all :is(#grid > .pcard, #colecciones, .band-wrap, .seo-copy, .htrust, .shop-footer) { content-visibility: visible; }

/* Páginas del listado (paging.js, 21-11-2026): enlaces a ?pagina=N bajo «Mostrar más», los mismos en el servidor y en el cliente. */
.pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 6px; }
.pages__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pages__link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pages__link:hover { border-color: var(--violet-ink); }
.pages__link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pages__gap { padding: 0 4px; color: var(--muted); }
.pages__next { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--violet-ink); text-decoration: none; }
.pages__next .i { width: 16px; height: 16px; }
/* Texto redactado de las páginas de aterrizaje (fuera de #page) y sus destacados. */
.seo-copy--landing .seo-copy__in { max-width: 920px; }
.seo-copy .faq-list { display: grid; gap: 12px; margin-top: .8em; }
.seo-copy .faq-list h3 { margin-top: .6em; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 1em; list-style: none; padding: 0; }
.picks li { padding: 0; }
.picks li::before { content: none; }
.pick { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.pick .pmedia { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--photo-bg, #f1f0f5); }
.pick .pmedia__img { width: 100%; height: 100%; object-fit: contain; }
.pick__brand { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-ink); }
.pick__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
/* Enlaces a las páginas de aterrizaje bajo la portada. */
.seo-links { display: grid; gap: 18px; margin-top: 2em; }
.seo-links h3 { margin-top: 0; }
.seo-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links li { padding-left: 0; }
.seo-links li::before { content: none; }
