/* MEISEOL · Tienda · brands.css — propietario: S3 (portada, marcas, colecciones y venta cruzada; SPEC2 §7.3 y §7.8).
   /marcas/ y /colecciones/ (cabecera de página, tarjetas de marca, rejilla de colecciones) y los ganchos .brand-hero* y
   .coll-hero* de los héroes que pinta listing.js (sobre la base .chero de shop.css). La venta cruzada (.xsell*) está en
   xsell.css, que es lo único que necesitan las fichas; .gapfill (fila del carrito) la estiliza shop.css (S1).
   Sin animaciones infinitas: solo transiciones al pasar el ratón (styles.css las quita con movimiento reducido). */

/* ───── Cabecera de /marcas/ y /colecciones/ ───── */
.th-page {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 75% at 90% 10%, rgba(217, 208, 255, .85), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, rgba(205, 238, 255, .9), transparent 70%), var(--milk);
}
.th-page::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), var(--milk));
}
.th-page__in { position: relative; display: grid; justify-items: start; gap: 10px; padding-block: 20px 22px; }
.th-page__eyebrow { margin-top: 10px; }
.th-page__title { font-size: clamp(44px, 7vw, 84px); font-weight: 650; line-height: .96; letter-spacing: -.04em; text-transform: uppercase; }
/* A 320 px «COLECCIONES» (una sola palabra) se salía de la pantalla con 44 px [S3-G2-01, WCAG 1.4.10] */
@media (max-width: 359.98px) { .th-page__title { font-size: 38px; } }
.th-page__spark { width: .42em; height: .42em; vertical-align: .32em; }
.th-page__lead { max-width: 58ch; font-size: 17px; color: var(--muted); }
.th-page__meta { min-height: 19px; font-size: 12px; font-weight: 600; line-height: 19px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.th-page__meta i { font-style: normal; color: var(--violet); margin-inline: .3em; }
.th-page__meta span { white-space: nowrap; }
.th-page__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.th-page__jump[hidden] { display: none; }
.th-page__art { position: absolute; z-index: -1; top: 18px; right: 6%; display: none; width: 230px; height: 230px; }
.th-page__bubble { width: 100%; height: 100%; overflow: visible; transition: transform 1.2s var(--ease); }
.th-page__bubble--s { position: absolute; left: -64px; bottom: -34px; width: 34%; height: 34%; }
.th-page:hover .th-page__bubble { transform: translate(-6px, 4px); }
.th-page__tw { position: absolute; left: 6%; bottom: 8%; width: 24px; height: 24px; }
.th-page__tw--2 { left: auto; bottom: auto; right: -4px; top: -8px; width: 16px; height: 16px; }

/* Grupos (por línea en marcas, por categoría en colecciones) */
.br-group, .cl-group { padding-block: 26px; scroll-margin-top: 80px; }
.th-group__head { display: grid; gap: 6px; margin-bottom: 18px; }
.th-group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.th-group__n { font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--violet-ink); }
.th-group__sub { color: var(--muted); font-size: 16px; }
.br-skel, .cl-skel { padding-block: 26px; }

/* ───── Tarjeta de marca: logotipo arriba sobre blanco, datos debajo ───── */
.br-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  height: 100%; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  color: var(--graphite); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
}
.br-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(118, 87, 255, .3); }
/* Ventana del logotipo (proporción LOGO_BOX de brands.js). El ancho del logo lo fija --lw (sizeLogos). */
.br-card__logo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 2.25; padding: 0 8%; overflow: hidden;
  border-bottom: 1px solid var(--line); background: #fff;
}
.br-card__logo img { display: block; width: var(--lw, 60%); height: auto; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.br-card:hover .br-card__logo img { transform: scale(1.04); }
/* Sin logotipo: el nombre como rótulo, para que la rejilla no cambie */
.br-card__logo--text span {
  max-width: 100%; font-size: clamp(15px, 1.9vw, 21px); font-weight: 800; line-height: 1.1; letter-spacing: .14em;
  text-align: center; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; color: var(--graphite);
}
.br-card__body {
  display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px;
  background: linear-gradient(160deg, #fff 30%, #EEF8FF);
}
.br-card--perfumes .br-card__body { background: linear-gradient(160deg, #fff 30%, #FDF7EA); }
.br-card__name { font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; }
.br-card__meta, .br-card__tag { font-size: 12px; color: var(--muted); }
.br-card__foot { display: grid; justify-items: start; gap: 6px; margin-top: auto; padding: 14px 36px 0 0; } /* la flecha (más alta que la línea) no pisa el país */
.br-card__lines, .br-card__count { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.br-card__lines { padding: 3px 8px; border-radius: 999px; background: #E2F1FB; color: #23465A; }
.br-card__count { color: var(--violet-ink); }
.br-card__go {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--graphite); color: var(--milk); transition: transform .3s var(--ease);
}
.br-card__go .i { width: 14px; height: 14px; }
.br-card:hover .br-card__go { transform: translateX(3px); }
.br-card--skel { display: block; min-height: 180px; border-color: transparent; background: var(--tint); }
.br-note { max-width: 72ch; margin: 6px 0 24px; font-size: 13px; color: var(--muted); }

/* ───── Rejilla de colecciones (tarjetas .coll de shop.css) ───── */
.cl-grid { display: grid; gap: 14px; }
.cl-grid .coll { min-height: 266px; }
.cl-grid .coll__art { height: 96px; }
.coll--skel { display: block; min-height: 266px; background: var(--tint); }
/* con 1.05 (shop.css), la tilde de «PERFUMES / ÁRABES» tocaba la P en móvil */
.th-coll .coll__name { line-height: 1.12; }
.th-coll .coll__bottle > .pmedia__img { width: 80px; border-radius: 14px; }
/* el arte flota sobre la tarjeta: sin el fondo de caja de [data-accent].pmedia (art.css) */
.th-coll .coll__bottle.pmedia, .coll-hero .chero__bottle.pmedia { background: none; }

/* ───── Héroes de marca y de colección (marcado de listing.js sobre .chero) ───── */
.brand-hero { background: radial-gradient(60% 80% at 92% 10%, rgba(205, 238, 255, .95), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(217, 208, 255, .7), transparent 70%), var(--milk); }
.brand-hero__title { text-transform: none; }
.brand-hero__meta { display: flex; flex-wrap: wrap; gap: 4px 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3A3746; }
.brand-hero__meta i { font-style: normal; color: var(--violet); margin-inline: .35em; }
.brand-hero__note { font-size: 12.5px; color: var(--muted); }
.coll-hero__lede { max-width: 58ch; }

@media (min-width: 560px) {
  .br-grid { gap: 12px; }
  .br-card__name { font-size: 17px; }
  .br-card__meta, .br-card__tag { font-size: 13px; }
  .br-card__body { padding: 14px 16px 16px; }
  .br-card__lines, .br-card__count { font-size: 11px; letter-spacing: .12em; }
  .br-card__go { right: 14px; bottom: 14px; width: 34px; height: 34px; }
  .br-card__go .i { width: 16px; height: 16px; }
  .br-card__foot { padding: 20px 44px 0 0; }
}
@media (min-width: 600px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 439.98px) {
  .th-page__meta { letter-spacing: .08em; }
}
/* A 320 px no caben flecha y «23 PRODUCTOS» en una línea: la flecha es decorativa (toda la tarjeta es el enlace) */
@media (max-width: 359.98px) {
  .br-card__go { display: none; }
  .br-card__foot { padding-right: 0; }
}
@media (min-width: 700px) {
  .th-page__in { padding-block: 28px 30px; }
  .th-page__art { display: block; width: 170px; height: 170px; right: 5%; }
  .th-page__in > :not(.crumbs) { max-width: min(62%, 680px); }
}
@media (min-width: 900px) {
  .br-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .br-card--skel { min-height: 250px; }
}
@media (min-width: 1000px) {
  .th-page__art { width: 230px; height: 230px; right: 6%; }
  .th-page__in > :not(.crumbs) { max-width: min(68%, 680px); }
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-grid .coll { min-height: 250px; }
  .cl-grid .coll__art { height: 112px; }
}
@media (min-width: 1140px) {
  .br-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (forced-colors: active) {
  .br-card, .br-card__logo { border-color: CanvasText; }
}
