/* Novadermis — «Retail editorial clínico»
   Mundo visual fijado por el humano (referencia estructural: retail dermocosmético clínico).
   Papel blanco, tinta casi negra, serif editorial con itálicas, marcadores de color por categoría.
   Móvil primero (412px). Escritorio desde 700px. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-normal-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ground: #f6f4f0;
  --ink: #141416;
  --ink-soft: #35353a;
  --muted: #62626a;
  --line: #e5e2db;
  --line-soft: #edeae4;
  --footer-bg: #1b1b1e;
  --footer-ink: #f4f3f0;
  --footer-muted: #a5a4a8;
  --strip-serums: #f2d064;
  --strip-sun: #a9d6e5;
  --strip-creams: #bfdcc2;
  --strip-cleansers: #f1c8ce;
  --price: #b5433c;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --track-wide: 0.16em;
  --track-mid: 0.1em;
  --pad-x: 20px;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
body { overflow-x: clip; }
[hidden] { display: none !important; }

/* ── Visibilidad responsive (estilo Elementor) ───────────────────────────
   hide-* oculta en ese rango · only-* muestra SOLO en ese rango.
   Rangos: móvil <700 · tablet 700–999 · desktop ≥1000.
   Ej.: <div class="only-mobile">…</div>  |  <img class="hide-mobile"> */
@media (max-width: 699.9px) {
  .hide-mobile, .only-tablet, .only-desktop { display: none !important; }
}
@media (min-width: 700px) and (max-width: 999.9px) {
  .hide-tablet, .only-mobile, .only-desktop { display: none !important; }
}
@media (min-width: 1000px) {
  .hide-desktop, .only-mobile, .only-tablet { display: none !important; }
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: top 120ms ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Etiquetas tracked ---------- */
.kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--muted);
}
.section-head { text-align: center; margin-bottom: 28px; padding-inline: var(--pad-x); }
.section-head .kicker { display: block; margin-bottom: 10px; }
/* Selección tipográfica del homepage: capturas aprobadas 2026-09-17.
   No cambia el hero, catálogo, tarjetas de marca ni el cuerpo de los pilares. */
.section-title {
  font-family: var(--sans);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; text-transform: none;
  line-height: 1.22; text-wrap: balance;
  scroll-margin-top: var(--header-offset, 152px);
}
.section-intro { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  padding: 13px 26px;
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  border-radius: 0;
  transition: background-color 140ms ease, color 140ms ease;
}
.btn:hover { background: #333338; }
.btn-light {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn-light:hover { background: var(--ground); color: var(--ink); }
.text-link {
  color: var(--ink); font-size: 12px; font-weight: 600;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink-soft); }

/* ---------- Aviso de maqueta ---------- */
.prototype-notice {
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 8px var(--pad-x);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--track-mid); text-transform: uppercase;
}

/* ---------- Header ----------
   Desktop ≥1000px: franja + fila única según previews/header-desktop/.
   Móvil/tablet: estilos conservados; navegación inline oculta y drawer con
   acordeones. La lupa despliega el buscador bajo la fila principal.
   El sticky va en el wrapper que WP genera para la template part
   (header.wp-block-template-part, tagName:"header" en los templates). */
header.wp-block-template-part {
  position: sticky; top: 0; z-index: 40;
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Fila 1: franja promocional rotativa */
.franja {
  height: 34px; overflow: hidden;
  background: #5b8fb4; color: var(--paper);
}
.franja-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 10px;
}
.franja-msgs { position: relative; flex: 1; height: 100%; }
.franja-msg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  /* display:flex descarta los nodos de texto de solo-espacios: sin gap,
     los espacios alrededor de los <strong> desaparecen ("gratisen", "sobre$50.000"). */
  gap: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  opacity: 0; transition: opacity 300ms ease;
}
.franja-msg.is-on { opacity: 1; }
.franja-msg strong { font-weight: 800; }
.franja-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  background: none; border: none; color: var(--paper); cursor: pointer; opacity: 0.85;
}
.franja-arrow svg { width: 14px; height: 14px; }
.franja-arrow:hover { opacity: 1; }

/* Fila 2: principal */
.header-main { border-bottom: 1px solid var(--line-soft); }
.header-main-in {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.wordmark-block { text-decoration: none; display: inline-block; flex: none; }
.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 23px; letter-spacing: 0.02em; line-height: 1;
  display: block;
}
.wordmark-sub {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
/* Buscador de fila 2 (escritorio): el wrapper .search-wrap es el hijo flex y
   ancla el panel de resultados en vivo (.search-panel-desktop). */
.search-wrap { display: none; position: relative; flex: 1; max-width: 480px; margin: 0 auto; }
.searchbox {
  display: flex; align-items: center; width: 100%; height: 40px;
  border: 1.5px solid var(--ink); background: var(--paper);
}
.searchbox input[type="search"] {
  flex: 1; min-width: 0; height: 100%;
  padding: 0 14px; border: none; outline: none;
  background: none; color: var(--ink); font-family: inherit; font-size: 13.5px;
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox button {
  width: 44px; height: 100%; padding: 0;
  background: var(--ink); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.searchbox button svg { width: 17px; height: 17px; fill: none; stroke: var(--paper); stroke-width: 1.7; }
.header-utils { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.util {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--ink);
}
.util svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.util:hover { color: var(--ink-soft); }
.menu-toggle { gap: 8px; width: auto; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
}

/* Navegación desktop; composición inline sobreescrita en ≥1000px. */
.header-row-menu { border-bottom: 1px solid var(--line-soft); position: relative; }
.menu-row {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: stretch;
}
.menu-item {
  position: relative; flex: 1;
  display: flex; align-items: stretch; justify-content: center;
  border-right: 1px solid var(--line-soft);
}
.menu-item:last-child { border-right: none; }
.menu-item > button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.menu-item > button .chev { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform 200ms ease; }
.menu-item > button:hover,
.menu-item > button[aria-expanded="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-item > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  --dd-cx: -50%;
  min-width: 230px; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(20, 20, 22, 0.10);
  display: none; z-index: 50;
}
/* Entrada con fade y leve descenso (referencia del screencap); se repite en
   cada apertura porque la animación vive en el estado .open. */
@keyframes dd-in {
  from { opacity: 0; transform: translateX(var(--dd-cx)) translateY(7px); }
  to { opacity: 1; transform: translateX(var(--dd-cx)) translateY(0); }
}
.menu-item.open .dropdown { display: block; animation: dd-in 200ms cubic-bezier(0.33, 1, 0.68, 1) both; }
.dropdown a {
  display: block; padding: 9px 18px;
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
}
.dropdown a:hover { background: var(--ground); color: var(--ink); }

/* Mega menú de Productos: ancho completo de la vista, columnas + tarjetas.
   El ítem .is-mega es position:static, así el panel se posiciona contra
   el contenedor del header desktop, no en la celda. */
.menu-item.is-mega { position: static; }
.dropdown.mega {
  --dd-cx: 0px;
  left: 0; right: 0; min-width: 0; padding: 0;
  border: none; border-bottom: 1px solid var(--line);
}
.mega-in {
  max-width: var(--max-w); margin: 0 auto; padding: 26px var(--pad-x) 30px;
  display: flex; gap: 56px; align-items: flex-start;
}
.mega-col { min-width: 168px; }
.mega-title {
  margin: 0 0 12px;
  font-size: 10px; font-weight: 700; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted);
}
.mega-col a {
  display: block; padding: 7px 0;
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
}
.mega-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.mega-col a.is-primary { font-weight: 700; color: var(--ink); }
.mega-feature { margin-left: auto; display: flex; gap: 18px; }
/* Versión compacta de las tarjetas de colecciones del home (.collection-*):
   imagen cuadrada con lavado de tono y franja inferior, nombre con flecha
   y descripción. Anula el padding y el hover con fondo de .dropdown a. */
.mega-cat {
  display: block; width: 200px; padding: 0;
  color: var(--ink); text-decoration: none;
}
.mega-cat:hover { background: none; }
.mega-cat:focus-visible { outline: 2px solid #245d94; outline-offset: 4px; }
.mega-cat--serums { --collection-tone: var(--strip-serums); --collection-wash: #fcf7e5; }
.mega-cat--cremas { --collection-tone: var(--strip-creams); --collection-wash: #eff5f0; }
.mega-cat--solares { --collection-tone: var(--strip-sun); --collection-wash: #edf6f9; }
.mega-cat-img {
  display: block; aspect-ratio: 1; overflow: hidden;
  background: var(--collection-wash, var(--ground));
  border-bottom: 4px solid var(--collection-tone, var(--line-soft));
}
.mega-cat-img img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 300ms ease;
}
.mega-cat:hover .mega-cat-img img { transform: scale(1.04); }
.mega-cat-name {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-top: 9px;
  font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.mega-cat-name svg {
  flex: none; width: 14px; height: 14px; margin-top: 2px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
}
.mega-cat:hover .mega-cat-name { text-decoration: underline; text-underline-offset: 4px; }
.mega-cat-desc {
  display: block; margin-top: 4px;
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
}

/* ── Buscador desplegable móvil con resultados en vivo ────────────────
   Referencia: screencast del humano 2026-09-15 (predictive search de
   cellskinlab.cl). Cerrado por defecto; la lupa del header lo despliega
   (.search-open en .site-header) y la X limpia y cierra. Los resultados
   los construye novadermis.js contra la Store API de WooCommerce. */
.search-row { display: none; }
.search-open .search-row {
  display: flex; align-items: center;
  margin: 10px var(--pad-x); height: 42px;
  border: 1.5px solid var(--ink); background: var(--paper);
  animation: search-in 200ms cubic-bezier(0.33, 1, 0.68, 1) both;
}
@keyframes search-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-glyph {
  width: 17px; height: 17px; flex: none; margin: 0 2px 0 12px;
  fill: none; stroke: var(--muted); stroke-width: 1.7;
}
.search-row input[type="search"] {
  flex: 1; min-width: 0; height: 100%;
  padding: 0 8px; border: none; outline: none;
  background: none; color: var(--ink); font-family: inherit; font-size: 13.5px;
}
.search-row input[type="search"]::-webkit-search-cancel-button,
.searchbox input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; /* la X de cierre es la nuestra */
}
.search-row input::placeholder {
  color: var(--muted); text-transform: uppercase;
  letter-spacing: var(--track-mid); font-size: 12px; font-weight: 600;
}
.search-clear {
  width: 42px; height: 100%; flex: none; padding: 0;
  background: none; border: none; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.search-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Panel de resultados en vivo: overlay bajo el header (móvil, contra la parte
   sticky) o bajo la barra (escritorio, contra .search-wrap). */
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
  /* Un solo scroll: sugerencias, productos y CTA, hasta el borde visible.
     JS mide el espacio real, incluido el teclado mediante visualViewport. */
  max-height: var(--search-panel-height, calc(100dvh - 160px));
  overflow-y: auto; overscroll-behavior-y: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 34px rgba(20, 20, 22, 0.14);
  animation: search-in 200ms cubic-bezier(0.33, 1, 0.68, 1) both;
}
.search-panel-desktop {
  top: calc(100% + 10px);
  border: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(20, 20, 22, 0.10);
}
.sp-label {
  margin: 14px 0 0; padding: 0 var(--pad-x);
  font-size: 10px; font-weight: 700; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted);
}
.sp-sugg {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding: 10px var(--pad-x) 12px;
  border-bottom: 1px solid var(--line-soft);
}
.sp-sugg button {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--ink-soft);
}
.sp-sugg button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.sp-sugg button.is-q { font-weight: 800; color: var(--ink); }
.sp-tabs {
  display: flex; gap: 28px; padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}
.sp-tab {
  padding: 12px 0 10px; margin-bottom: -1px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.sp-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.sp-spinner {
  width: 18px; height: 18px; margin: 20px auto;
  border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%;
  animation: sp-spin 700ms linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-list { padding: 6px 0; }
.sp-row { display: flex; align-items: center; gap: 14px; padding: 9px var(--pad-x); text-decoration: none; }
.sp-row:hover { background: var(--ground); }
.sp-thumb {
  width: 60px; height: 60px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); background: var(--paper); color: var(--muted);
}
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sp-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-name {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}
.sp-count { font-size: 12px; color: var(--muted); }
.sp-prices { display: flex; align-items: baseline; gap: 8px; }
.sp-price { font-size: 14px; font-weight: 800; color: var(--price); }
.sp-price.is-plain { color: var(--ink); }
.sp-prices del { font-size: 12.5px; color: var(--muted); }
.sp-empty { margin: 0; padding: 22px var(--pad-x) 24px; font-size: 13px; color: var(--muted); }
.sp-all {
  display: flex; align-items: center; justify-content: center;
  margin: 10px var(--pad-x) 14px; min-height: 44px; padding: 12px 16px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: var(--track-wide); text-transform: uppercase;
}
.sp-all:hover { background: #333338; }

/* Drawer móvil con acordeones */
.backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 20, 22, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 250ms ease;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
  width: min(84vw, 360px);
  background: var(--paper);
  transform: translateX(-102%); transition: transform 280ms ease;
  display: flex; flex-direction: column;
  padding: 14px 0 18px; overflow-y: auto;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: translateX(0); }

/* Entrada escalonada de los bloques del drawer (efecto del screencast aprobado):
   mientras el panel desliza, cada bloque aparece en secuencia con fade y un
   leve ascenso. Animaciones solo bajo .drawer-open: se reproducen en cada
   apertura y al cerrar el panel sale con los bloques ya visibles. */
@keyframes drawer-item-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
body.drawer-open .drawer-head,
body.drawer-open .drawer nav > .acc,
body.drawer-open .drawer-account {
  animation: drawer-item-in 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
body.drawer-open .drawer-head { animation-delay: 70ms; }
body.drawer-open .drawer nav > .acc:nth-child(1) { animation-delay: 140ms; }
body.drawer-open .drawer nav > .acc:nth-child(2) { animation-delay: 210ms; }
body.drawer-open .drawer-account { animation-delay: 280ms; }

.drawer-head { display: flex; justify-content: flex-end; padding: 0 14px 10px; }
.drawer nav { flex: 1; }
.acc { border-bottom: 1px solid var(--line-soft); }
.acc-btn {
  width: 100%; padding: 15px 20px;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft);
}
.acc-btn .chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 200ms ease; }
.acc.open { background: var(--ground); }
.acc.open > .acc-btn { color: var(--ink); }
.acc.open > .acc-btn .chev { transform: rotate(180deg); }
/* Despliegue deslizante del submenú (referencia del screencast de centralklinic):
   la altura del panel transiciona de 0fr a 1fr (patrón grid), empujando el resto
   del drawer hacia abajo; el contenido se revela desde arriba, enlace por enlace,
   igual que en el video. El cierre es la misma transición en reversa (el JS ya
   cierra los otros acordeones: se ven ambas animaciones a la vez). visibility
   con retardo mantiene los enlaces fuera del orden de tabulación al estar
   cerrado sin romper la animación de apertura. */
.acc-panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 300ms cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 300ms;
}
/* El padding va en los enlaces extremos, no en el recorte: con border-box el
   border-box nunca encoge por debajo de su propio padding, y dejarlo aquí
   dejaría 14px fantasma con el panel cerrado. 11 = 9 del enlace + 2, y
   21 = 9 + 12. */
.acc-panel-in { overflow: hidden; min-height: 0; }
.acc-panel-in > a:first-child { padding-top: 11px; }
.acc-panel-in > a:last-child { padding-bottom: 21px; }
.acc.open > .acc-panel {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows 300ms cubic-bezier(0.33, 1, 0.68, 1), visibility 0s;
}
.acc-panel a {
  display: block; padding: 9px 20px 9px 34px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
}
.acc-panel a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.drawer-account { border-top: 1px solid var(--line); padding: 16px 20px 0; margin-top: 12px; }
.drawer-account-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.drawer-account-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.btn {
  display: block; width: 100%; padding: 12px;
  text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-line { background: none; color: var(--ink); border: 1px solid var(--ink); margin-top: 9px; }

@media (prefers-reduced-motion: reduce) {
  .franja-msg, .backdrop, .drawer { transition: none; }
  body.drawer-open .drawer-head,
  body.drawer-open .drawer nav > .acc,
  body.drawer-open .drawer-account { animation: none; }
  .menu-item.open .dropdown { animation: none; }
  .acc-panel { transition: none; }
  .mega-cat-img img { transition: none; }
  .search-open .search-row, .search-panel { animation: none; }
  .sp-spinner { animation: none; }
}

@media (max-width: 999.9px) {
  .header-row-menu { display: none; }
  .header-main-in { gap: 10px; min-height: 58px; }
  .wordmark { font-size: 20px; }
  .wordmark-sub { font-size: 8px; letter-spacing: 0.22em; margin-top: 2px; }
  .header-utils { margin-left: 0; gap: 12px; }
  .util { gap: 5px; font-size: 9.5px; }
  .util svg { width: 17px; height: 17px; }
}

/* ---------- Hero: campañas aprobadas, fotografía con art direction ---------- */
.hero-carousel-zone { position: relative; background: var(--paper); max-width: 1920px; margin-inline: auto; }
.hero-carousel {
  position: relative; overflow: hidden; width: 100%; min-width: 0;
  /* Móvil: el hero completo (más controles) cabe en la primera pantalla,
     como la referencia Cellskinlab; el máximo alcanza solo en pantallas altas. */
  height: min(max(620px, 150vw), calc(100vh - var(--header-offset, 152px) - 76px));
  height: min(max(620px, 150vw), calc(100svh - var(--header-offset, 152px) - 76px));
  background: var(--ground);
}
/* La foto cambia mediante una lente WebGL temporal. El texto sigue siendo
   HTML por encima; sin GPU o con movimiento reducido queda el cambio nativo. */
.hero-slides { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute; inset: 0; min-width: 0; overflow: hidden;
  visibility: hidden;
}
.hero-slide.is-active { visibility: visible; }
.hero-glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-carousel::after {
  content: ''; position: absolute; inset: auto 0 0; height: 100px; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, rgb(20 20 22 / 82%));
}
.hero-slide[data-field="amber"] { background: #e8d3af; }
.hero-slide[data-field="sage"] { background: #c9d9d0; }
.hero-slide[data-field="lilac"] { background: #d1cddd; }
.hero-art { position: absolute; inset: auto 0 0; width: 100%; display: block; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; }
.slide-copy { position: relative; z-index: 2; padding: 24px 24px 0; max-width: 500px; text-align: left; }
/* Móvil: el botón baja al borde inferior del hero (pedido del humano, 2026-09-16);
   el copy se vuelve columna flex de altura completa y margin-top:auto empuja la
   zona del CTA al fondo. Escritorio mantiene el botón en flujo dentro del copy. */
@media (max-width: 699.9px) {
  /* Reservar el índice sobre la foto sin mover ni recortar los envases. */
  .slide-copy { display: flex; flex-direction: column; align-items: flex-start; height: 100%; box-sizing: border-box; padding-bottom: 68px; }
  .slide-cta-zone { margin-top: auto; align-self: flex-end; text-align: right; }
}
.slide-title {
  font-family: var(--serif); font-weight: 500; margin: 0 0 12px;
  font-size: clamp(31px, 8.65vw, 43px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance;
}
.slide-title em { font-style: italic; font-weight: 500; }
.slide-product-name { font-size: 12px; font-weight: 700; line-height: 1.55; margin: 0 0 9px; letter-spacing: -0.01em; }
.slide-product-name span { display: inline-block; margin-left: 5px; font-weight: 400; white-space: nowrap; }
.slide-sub { margin: 0 0 14px; color: var(--ink); font-size: 13px; line-height: 1.6; max-width: 39ch; }
.slide-cta.btn { width: fit-content; margin: 0; padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.035em; text-transform: none; }
.slide-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (min-width: 500px) and (max-width: 699.9px) {
  .slide-copy { padding: 38px 36px 0; max-width: 560px; }
  .slide-title { font-size: 46px; }
  .slide-product-name, .slide-sub { font-size: 15px; }
  .slide-cta.btn { font-size: 12px; }
  .slide-copy { padding-bottom: 72px; }
}
.carousel-arrow {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  align-items: center; justify-content: center; padding: 0;
}
.carousel-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.carousel-arrow:hover { background: var(--ground); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-index { position: absolute; inset: auto 20px 4px; z-index: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.carousel-index-item { min-width: 0; min-height: 48px; padding: 8px 0; border: 0; background: none; color: #e6e1da; cursor: pointer; text-align: center; }
.carousel-index-line { display: block; height: 1px; margin-bottom: 10px; background: rgb(255 255 255 / 40%); overflow: hidden; }
.carousel-index-progress { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.carousel-index-label { display: block; font-family: var(--serif); font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: 0.07em; text-transform: uppercase; transition: color 200ms ease; }
.carousel-index-item[aria-current] { color: #fff; }
.carousel-index-item[aria-current] .carousel-index-label { font-weight: 700; letter-spacing: 0.12em; }
.carousel-index-item[aria-current] .carousel-index-line { background: rgb(255 255 255 / 75%); }
.carousel-index-item:hover { color: #fff; }
.carousel-index-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .carousel-index-label { transition: none; }
}

/* ---------- Banda de categorías ----------
   El buscador destacado que compartía esta banda se retiró (la búsqueda
   vive en la cabecera sticky); quedan las pestañas de categoría. */
.tabs-band { border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-offset, 150px); }
.tabs-band:focus:not(:focus-visible) { outline: none; }

/* Pestañas de categoría */
.catalog-tabs {
  display: flex; gap: clamp(18px, 3vw, 30px); justify-content: flex-start;
  padding: 24px var(--pad-x) 0;
  margin: 0 auto; overflow-x: auto; scrollbar-width: none;
}
.catalog-tabs::-webkit-scrollbar { display: none; }
.catalog-tab {
  flex: none; background: none; border: none; cursor: pointer; padding: 4px 2px 10px;
  font-size: 17px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.catalog-tab[aria-pressed="true"], .catalog-tab[aria-current="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.catalog-tab.is-pending { border-bottom-color: var(--muted); border-bottom-style: dotted; }
.catalogue-pagination { margin: 36px 0 0; justify-content: center; }
.catalogue-pagination .catalogue-more {
  width: min(100%, 260px); min-height: 50px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.catalogue-more[aria-disabled="true"] { opacity: 0.55; cursor: progress; }
.novadermis-catalogue[aria-busy="true"] .wp-block-post-template { pointer-events: none; }
.novadermis-catalogue .wp-block-post-template > li { scroll-margin-top: var(--header-offset, 150px); }
/* Región en vivo solo para lectores de pantalla: el recuento/estado del catálogo
   no se muestra visualmente (pedido 2026-09-16), pero sigue anunciándose vía aria-live. */
.catalogue-status {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* CTA de cierre del catálogo: al archivo de la categoría activa (o /shop/ con «Todo»).
   El JS actualiza el href al cambiar de pestaña. */
.catalogue-view-all {
  display: flex; align-items: center; justify-content: center;
  width: fit-content; max-width: calc(100% - 40px); min-height: 44px;
  margin: 8px auto 0; padding: 10px 12px;
  color: var(--ink); font-size: 12px; font-weight: 600;
  text-align: center; text-decoration: underline; text-underline-offset: 5px;
}
.catalogue-view-all:hover { text-decoration-thickness: 2px; }
.catalogue-error { padding: 20px var(--pad-x) 0; text-align: center; font-size: 14px; }
.catalogue-error p { margin-bottom: 12px; }
.results-status {
  max-width: 760px; margin: 0 auto; padding: 14px var(--pad-x) 18px;
  font-size: 13px; color: var(--muted); text-align: center;
}

/* ---------- Grilla de productos ---------- */
.state-box { margin: 8px var(--pad-x) 0; border: 1px solid var(--line); padding: 26px 20px; text-align: center; }
.state-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.state-box p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.text-button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 14px; padding: 0 var(--pad-x);
  max-width: var(--max-w); margin: 0 auto;
}
.product-card { min-width: 0; }
.product-card[hidden] { display: none; }
.product-art {
  position: relative; margin: 0 0 12px;
  background: var(--ground);
}
.product-art img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.image-feedback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 10px;
  background: var(--ground); text-align: center;
  font-size: 12px; color: var(--muted);
}
.product-strip {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 8px 2px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.product-card[data-category="serums"] .product-strip { background: var(--strip-serums); }
.product-card[data-category="sun"] .product-strip { background: var(--strip-sun); }
.product-card[data-category="creams"] .product-strip { background: var(--strip-creams); }
.product-card[data-category="cleansers"] .product-strip { background: var(--strip-cleansers); }
.product-brand {
  font-size: 11px; font-weight: 600; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.product-name {
  font-size: 14.5px; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.005em; text-wrap: balance;
}
.product-size { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.product-price { margin-top: 9px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.product-action {
  display: inline-block; margin-top: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.product-action::after { content: ""; position: absolute; inset: 0; }
.product-card article { position: relative; }

.noscript-note { margin: 20px var(--pad-x); font-size: 13px; color: var(--muted); }

/* ---------- Colecciones · galería abierta (propuesta A elegida) ---------- */
.collections-section {
  border-block: 1px solid var(--line); padding: 34px 0 38px;
  scroll-margin-top: var(--header-offset, 152px);
}
.collection-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.collection-head { margin-bottom: 26px; }
.collection-title {
  margin: 0; font-family: var(--sans); font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; text-transform: none; line-height: 1.22; text-wrap: balance;
}
.collection-sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 50ch; text-wrap: pretty; }
.collection-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px;
  margin: 0; padding: 0; list-style: none;
}
.collection-item { min-width: 0; }
.collection-item--serums { --collection-tone: var(--strip-serums); --collection-wash: #fcf7e5; }
.collection-item--cremas { --collection-tone: var(--strip-creams); --collection-wash: #eff5f0; }
.collection-item--solares { --collection-tone: var(--strip-sun); --collection-wash: #edf6f9; }
.collection-card {
  display: block; color: var(--ink); text-decoration: none; touch-action: manipulation;
  scroll-margin-top: var(--header-offset, 152px);
}
.collection-art {
  margin: 0; aspect-ratio: 1; background: var(--collection-wash);
  border-bottom: 4px solid var(--collection-tone);
}
.collection-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collection-info { padding-top: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.collection-info > div { min-width: 0; }
.collection-name {
  font-family: var(--sans); font-size: 18px; line-height: 1.35; letter-spacing: -0.01em;
  font-weight: 600; text-transform: none; text-wrap: balance; overflow-wrap: break-word;
}
.collection-description { margin-top: 7px; font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.collection-info svg { flex: none; width: 19px; height: 19px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.collection-card:hover .collection-name { text-decoration: underline; text-underline-offset: 5px; }
.collection-card:focus-visible { outline: 3px solid #246286; outline-offset: 5px; }
/* En móvil, sérums ocupa la primera fila; cremas y solares comparten la segunda. */
.collection-item:first-child { grid-column: 1 / -1; }
.collection-item:first-child .collection-card {
  display: grid; grid-template-columns: 45% minmax(0, 1fr); align-items: center;
  background: var(--collection-wash);
}
.collection-item:first-child .collection-art { border: 0; }
.collection-item:first-child .collection-info { padding: 16px 16px 16px 8px; }
.collection-item:first-child .collection-name { font-size: 21px; }
.collection-item:first-child .collection-info svg { display: none; }

/* ---------- Marcas ---------- */
.brands-section { padding: 64px 0 60px; border-top: 1px solid var(--line); scroll-margin-top: var(--header-offset, 152px); }
.brands-wrap { max-width: 1224px; padding: 0 var(--pad-x); margin: 0 auto; }
.brands-heading { margin-bottom: 32px; }
.brands-heading h2 {
  margin: 0; font-family: var(--sans); font-size: 28px;
  font-weight: 600; line-height: 1.22; letter-spacing: -0.02em;
  text-transform: none; text-wrap: balance; scroll-margin-top: var(--header-offset, 152px);
}
.brands-heading p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 50ch; text-wrap: pretty; }
.brand-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.brand-list li { grid-column: span 2; min-width: 0; }
.brand-list li:last-child:nth-child(odd) { grid-column: 2 / span 2; }
.brand-link {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  min-height: 100px; height: 100%; padding: 16px 15px 12px; text-decoration: none;
  color: var(--ink); background: var(--paper); border: 1px solid #d6dadd; border-radius: 3px;
  touch-action: manipulation; -webkit-tap-highlight-color: #244b6126;
  scroll-margin-top: var(--header-offset, 152px);
}
.brand-name {
  margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500;
  letter-spacing: -0.045em; line-height: 1.2; text-transform: none; overflow-wrap: break-word;
}
.brand-name--long { font-size: clamp(18px, 5.2vw, 25px); }
.brand-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 500; color: #545961; }
.brand-action > span { font-size: 20px; font-weight: 400; line-height: 1; }
.brand-link:hover { border-color: #244b61; background: #f5f8fa; }
.brand-link:hover .brand-action { color: #244b61; }
.brand-link:focus-visible { outline: 3px solid #1975a7; outline-offset: 5px; }
/* Content stays visible without JS/observer; one entrance, no scroll-linked motion. */
.brands-section .brand-reveal-pending { opacity: 0; }
.brands-section .brand-reveal-visible { opacity: 1; transition: opacity 800ms ease; }
.brands-section [data-brand-reveal]:focus-within { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .brands-section [data-brand-reveal] { opacity: 1; transition: none; }
}
@media (min-width: 700px) and (max-width: 920px) {
  .brands-section .brand-link { min-height: 88px; padding: 12px 9px 10px; gap: 10px; }
  .brand-action { font-size: 9px; gap: 4px; }
}
.catalogue-section { padding: 26px 0 54px; scroll-margin-top: 150px; }

/* ---------- Pilares ---------- */
.pillars-section { background: var(--ground); padding: 44px 0; }
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 18px;
  padding: 0 var(--pad-x); max-width: var(--max-w); margin: 0 auto;
}
.pillar { text-align: center; }
.pillar svg { width: 30px; height: 30px; margin: 0 auto 10px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.pillar-title { font-size: 12px; font-weight: 700; letter-spacing: var(--track-mid); text-transform: uppercase; }
.pillar-text { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- Guía ---------- */
.guide-section { padding: 48px 0; border-top: 1px solid var(--line); }
.guide-steps { counter-reset: paso; max-width: calc(680px + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.guide-steps li { counter-increment: paso; padding: 20px 0 20px 44px; position: relative; border-bottom: 1px solid var(--line); }
.guide-steps li:first-child { border-top: 1px solid var(--line); }
.guide-steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; left: 0; top: 21px;
  font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink);
}
.guide-steps strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; text-wrap: balance; }
.guide-steps li p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.guide-note { max-width: calc(680px + 2 * var(--pad-x)); margin: 22px auto 0; padding: 0 var(--pad-x); font-size: 14px; line-height: 1.7; color: var(--muted); font-style: normal; font-family: var(--sans); text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq-section { padding: 48px 0 54px; background: var(--ground); }
.faq-list { max-width: calc(680px + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.faq-list details { background: var(--paper); border: 1px solid var(--line); }
.faq-list details + details { margin-top: 10px; }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 18px;
  font-size: 15px; font-weight: 600; line-height: 1.5;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
.faq-list details[open] summary:not([aria-expanded="false"]) svg { transform: rotate(180deg); }
.faq-list .faq-answer { overflow: hidden; }
.faq-list details p { padding: 0 18px 18px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.faq-list details p a { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .faq-list summary svg { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 46px 0 26px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 0 var(--pad-x); max-width: var(--max-w); margin: 0 auto;
}
.footer-wordmark { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--footer-ink); text-decoration: none; display: inline-block; }
.footer-tagline { margin-top: 10px; font-size: 13px; color: var(--footer-muted); max-width: 30ch; }
.site-footer h2 {
  font-size: 11px; font-weight: 600; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--footer-muted); margin-bottom: 14px;
}
.site-footer nav a { display: block; padding: 5px 0; text-decoration: none; font-size: 13.5px; color: var(--footer-ink); }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact p { font-size: 13px; color: var(--footer-muted); max-width: 32ch; }
.footer-contact a { color: var(--footer-ink); }
.footer-bottom {
  margin-top: 38px; padding: 18px var(--pad-x) 0;
  border-top: 1px solid #333338;
  max-width: var(--max-w); margin-left: auto; margin-right: auto;
  font-size: 11px; letter-spacing: 0.04em; color: var(--footer-muted);
}

/* Footer seleccionado: solo en el homepage; conserva enlaces y avisos reales. */
.home .site-footer { --footer-muted: #b9b8bc; line-height: 1.65; }
.home .footer-wordmark { font-size: 25px; line-height: 1.2; }
.home .footer-tagline { margin-top: 12px; font-size: 14px; max-width: 32ch; text-wrap: pretty; }
.home .site-footer h2 {
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.5;
  letter-spacing: normal; text-transform: none; color: var(--footer-ink);
  margin-bottom: 12px; text-wrap: balance;
}
.home .site-footer nav a { font-size: 14px; }
.home .footer-contact p { font-size: 14px; text-wrap: pretty; }
.home .footer-bottom { font-size: 12px; letter-spacing: normal; }

/* ---------- Vistas de referencia ---------- */
.reference-view { max-width: 680px; margin: 0 auto; padding: 30px var(--pad-x) 60px; }
.back-button {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.back-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reference-view h1 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin-bottom: 10px; }
.reference-meta { font-size: 12px; letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.reference-view dl { border-top: 1px solid var(--line); margin-bottom: 18px; }
.reference-view dt { padding-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--muted); }
.reference-view dd { padding-top: 3px; font-size: 14.5px; }
.reference-view button[type="button"][disabled] {
  margin-top: 18px; background: var(--ground); color: var(--muted);
  border: 1px solid var(--line); padding: 12px 20px; cursor: not-allowed;
  font-size: 11.5px; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase;
}
.reference-price { font-size: 26px; font-weight: 700; letter-spacing: 0.01em; margin: 4px 0 20px; }
.reference-note { margin-top: 14px; font-size: 12px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.source-list { margin-top: 10px; }
.source-list li { padding: 5px 0; }
.source-list a { font-size: 13.5px; }

/* ---------- Animación de grilla ---------- */
@media (prefers-reduced-motion: no-preference) {
  .product-grid.is-swapping { animation: grid-swap 160ms cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes grid-swap {
    from { opacity: 0.85; }
    to { opacity: 1; }
  }
}

/* ---------- Escritorio ---------- */
@media (min-width: 700px) {
  :root { --pad-x: 32px; }
  body { font-size: 15.5px; }

  .prototype-notice { font-size: 11.5px; }
  .wordmark { font-size: 26px; }

  .hero-carousel { height: clamp(410px, 50vw, 960px); }
  .hero-art img { aspect-ratio: 2 / 1; }
  .slide-copy { position: absolute; left: 5.8%; top: 48%; transform: translateY(-50%); width: 45%; max-width: 780px; padding: 0; }
  .slide-title { font-size: clamp(31px, 4.2vw, 80px); line-height: 1.09; margin-bottom: 24px; }
  .slide-product-name { font-size: clamp(12px, 1.1vw, 18px); margin-bottom: 13px; }
  .slide-sub { font-size: clamp(13px, 1.14vw, 20px); line-height: 1.7; max-width: 43ch; margin: 0 0 25px; }
  .slide-cta.btn { font-size: clamp(11px, 0.85vw, 14px); min-height: 48px; padding: 14px 20px; gap: 28px; }
  .carousel-index { left: 5.8%; right: 5.8%; bottom: 12px; gap: 28px; }
  .carousel-index-label { font-size: 13px; letter-spacing: 0.15em; }
  .carousel-index-item[aria-current] .carousel-index-label { letter-spacing: 0.22em; }
  /* En tablet el copy empieza más cerca del borde: navegar con índice o swipe. */
  @media (min-width: 1000px) { .carousel-arrow { display: flex; } }

  .catalog-tabs { gap: 48px; justify-content: center; }
  .catalog-tab { font-size: 26px; padding-bottom: 12px; }
  .results-status { text-align: center; }

  .catalogue-section { padding: 34px 0 66px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; }
  .product-name { font-size: 15.5px; }

  .collections-section { padding: 48px 0 50px; }
  .collection-head { margin-bottom: 30px; }
  .collection-title, .brands-heading h2, .section-title { font-size: 36px; }
  .collection-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .collection-item:first-child { grid-column: auto; }
  .collection-item:first-child .collection-card { display: block; background: none; }
  .collection-item:first-child .collection-art { border-bottom: 4px solid var(--collection-tone); }
  .collection-info, .collection-item:first-child .collection-info { padding: 18px 0 0; }
  .collection-name, .collection-item:first-child .collection-name { font-size: 22px; }
  .collection-item:first-child .collection-info svg { display: block; }

  .brands-section { padding: 80px 0; }
  .brands-heading { margin-bottom: 40px; }
  .brand-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .brand-list li, .brand-list li:last-child:nth-child(odd) { grid-column: auto; }
  .brand-link { min-height: 104px; padding: 17px 14px 13px; }
  .brand-name { font-size: clamp(21px, 2.5vw, 29px); }
  .brand-name--long { font-size: clamp(17px, 1.95vw, 25px); }

  .pillars-section { padding: 56px 0; }
  .pillars-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  .guide-section { padding: 60px 0; }
  .faq-section { padding: 60px 0 66px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; }
  .footer-bottom { margin-top: 44px; }
}

@media (min-width: 1000px) {
  /* Propuesta desktop elegida el 2026-09-16. Todo el nuevo diseño queda
     dentro de este breakpoint: no cambia el header de móvil/tablet.
     El nav está en el DOM antes de búsqueda: el tab sigue el orden visual. */
  .search-row, .search-open .search-row, #search-row-panel { display: none; }
  .search-toggle, .menu-toggle { display: none; }
  .header-main { border: 0; }
  .header-main-in {
    position: relative; max-width: 1440px; min-height: 84px; padding: 0 48px;
    display: grid; grid-template-columns: auto auto minmax(200px, 1fr) auto; gap: 36px;
  }
  .wordmark { font-size: 32px; letter-spacing: -0.035em; }
  .wordmark-sub { margin-top: 7px; font-size: 9px; letter-spacing: 0.26em; text-align: center; }
  .header-row-menu { position: static; border: 0; margin-inline-start: 20px; }
  .menu-row { padding: 0; gap: 24px; }
  .menu-item { flex: none; border: 0; }
  .menu-item > button {
    min-height: 84px; padding: 29px 0; font-size: 14px; font-weight: 500;
    text-transform: none; letter-spacing: 0;
  }
  .menu-item > button .chev { width: 12px; height: 12px; stroke-width: 1.7; }
  .search-wrap { display: block; width: 100%; min-width: 0; max-width: 350px; margin: 0 0 0 auto; }
  .searchbox { height: 42px; border: 1px solid #c8c6c0; }
  .searchbox input[type="search"] { font-size: 13px; padding-left: 13px; }
  .searchbox button { background: transparent; width: 40px; }
  .searchbox button svg { stroke: var(--ink); width: 19px; height: 19px; }
  .searchbox button:hover { background: var(--ground); }
  .searchbox:focus-within { outline: 2px solid #245d94; outline-offset: 3px; }
  .header-utils { gap: 24px; margin: 0; }
  .util {
    min-height: 44px; font-size: 13px; font-weight: 500;
    text-transform: none; letter-spacing: 0; gap: 7px;
  }
  .util:hover { text-decoration: underline; text-underline-offset: 5px; }
  .util svg { width: 21px; height: 21px; }
  .header-utils .util-count { top: 4px; }
  .header-main :focus-visible { outline: 2px solid #245d94; outline-offset: 4px; }
  .searchbox input[type="search"]:focus-visible { outline-offset: -3px; }
  .dropdown { box-shadow: none; }
  /* Anclado a .header-main-in; también correcto sin animación (reduced-motion). */
  .dropdown.mega { transform: none; }
  .mega-in { max-width: none; padding: 32px 48px; gap: 48px; }
  .mega-title { font-size: 12px; text-transform: none; letter-spacing: 0; }
  .mega-feature { gap: 16px; }
  .mega-cat { width: 170px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .header-main-in { padding-inline: 28px; gap: 24px; }
  .header-row-menu { margin-inline-start: 12px; }
  .menu-row { gap: 18px; }
  .header-utils { gap: 16px; }
  .mega-in { padding-inline: 28px; gap: 32px; }
  .mega-cat { width: 150px; }
}

/* ═══ Adaptaciones WordPress (core blocks en el patrón home) ═══
   Traducciones del build: grilla → core/query, franja de categoría →
   core/post-terms. Todo lo demás es
   CSS del prototipo congelado, sin cambios. */

/* La grilla ahora es ul.wp-block-post-template dentro del wrapper .product-grid */
.product-grid { display: block; padding: 0 var(--pad-x); }
.product-grid ul.wp-block-post-template {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 14px; list-style: none; margin: 0 auto;
  max-width: var(--max-w); padding: 0;
}
@media (min-width: 700px) {
  .product-grid ul.wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; }
}

/* WP flow adds a top margin to every li except the first: reset it explicitly. */
.novadermis-catalogue ul.wp-block-post-template { row-gap: 0; }
.novadermis-catalogue .wp-block-post-template > li {
  display: grid; grid-row: span 6; grid-template-rows: subgrid;
  row-gap: 0; min-width: 0; margin: 0; padding-bottom: 36px;
}
.novadermis-catalogue .product-card {
  display: grid; grid-row: span 6; grid-template-rows: subgrid;
  row-gap: 0; text-align: center;
}
.novadermis-catalogue .product-card > * { min-width: 0; margin: 0; }

/* Equal image boxes; contain preserves the complete product packaging. */
.product-card .wp-block-post-featured-image { margin: 0; }
.product-card .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }
.novadermis-catalogue .catalogue-product-image {
  grid-row: 1; position: relative; align-self: start;
  padding-top: 32px; background: var(--paper);
}
.novadermis-catalogue .catalogue-product-image > a { display: block; aspect-ratio: 1; }
.novadermis-catalogue .catalogue-product-image img { height: 100%; object-fit: contain; }
.novadermis-catalogue .product-strip {
  grid-row: 2; justify-self: center; align-self: start;
  max-width: 100%; margin-top: 12px; line-height: 1.5;
}
.novadermis-catalogue .product-brand { grid-row: 3; padding-top: 20px; }
.novadermis-catalogue .product-name {
  grid-row: 4; padding-top: 8px; font-family: var(--sans);
  font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere;
}
.novadermis-catalogue .product-card .product-size { grid-row: 5; margin: 0; padding-top: 4px; }
.novadermis-catalogue .catalogue-product-price {
  grid-row: 6; padding-top: 12px; font-size: 14px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.novadermis-catalogue .catalogue-product-price:has(ins) { color: var(--price); }
.novadermis-catalogue .catalogue-product-price del { color: var(--muted); font-weight: 400; margin-inline-end: 8px; }
.novadermis-catalogue .catalogue-product-price .amount { white-space: nowrap; }
.novadermis-catalogue .catalogue-product-price ins { text-decoration: none; }
.catalogue-product-badge {
  position: absolute; top: 0; left: 0; max-width: 100%;
  padding: 4px 8px; background: var(--price); color: var(--paper);
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase;
  pointer-events: none;
}
/* Agotado como texto plano (referencia cellskinlab.cl): mismo lugar, sin caja. */
.catalogue-product-badge.is-sold-out { background: transparent; color: var(--muted); padding: 0; }
.novadermis-catalogue .catalogue-pagination { margin-top: 0; }

/* Franja de categoría: el color viene del archivo de la taxonomía (:has, sin JS) */
.product-card .product-strip { display: inline-block; }
.product-card:has(.product-strip a[href*="/serums/"]) .product-strip { background: var(--strip-serums); }
.product-card:has(.product-strip a[href*="/solares/"]) .product-strip { background: var(--strip-sun); }
.product-card:has(.product-strip a[href*="/cremas/"]) .product-strip { background: var(--strip-creams); }
.product-card:has(.product-strip a[href*="/limpieza/"]) .product-strip { background: var(--strip-cleansers); }
.product-card .product-strip a { color: inherit; text-decoration: none; }

/* Las pestañas de categoría ahora son enlaces */
.catalog-tab { text-decoration: none; }
.catalog-tab:hover { color: var(--ink); }

/* Línea de presentación en la tarjeta (excerpt del producto) */
.product-card .product-size { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.product-card .product-size p { margin: 0; }

/* ═══ Header compacto en celular (petición humano 2026-09-14) ═══
   <700px: hamburguesa sin texto, Cuenta/Carrito solo íconos,
   logo Novadermis Dermocosmética centrado en la fila principal.
   ≥700px conserva los textos tal cual. */
@media (max-width: 699.9px) {
  .menu-toggle-label { display: none; }
  .util span { display: none; }
  /* Cuenta solo por el menú hamburguesa en celular (petición humano 2026-09-16):
     el ícono desaparece del header; ≥700px se muestra normal. */
  .util-account { display: none; }
  .header-main-in { position: relative; min-height: 56px; }
  .wordmark-block {
    position: absolute; left: 50%; transform: translateX(-50%);
    text-align: center;
  }
  .wordmark { font-size: 20px; }
  .wordmark-sub { font-size: 9.5px; margin-top: 2px; letter-spacing: 0.24em; }
  .header-utils { gap: 2px; margin-left: auto; }
  .util { padding: 8px 6px; }
  .util svg { width: 21px; height: 21px; }
  .menu-toggle { padding: 8px 6px; margin-left: -6px; }
  .menu-toggle svg { width: 24px; height: 24px; }
}

/* ═══ Página de resultados de búsqueda (/?s=) ═══
   Título + término buscado centrados y grilla de productos (Product
   Collection heredando la consulta), en línea con la grilla del catálogo. */
.search-page h1 {
  margin: 0 0 8px; text-align: center;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 4.5vw, 34px);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.search-page .wp-block-query-title {
  margin: 0 0 30px; text-align: center;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted);
}
.novadermis-search-grid ul.wc-block-product-template {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 14px; list-style: none;
  margin: 0 auto; max-width: var(--max-w); padding: 0;
}
@media (min-width: 700px) {
  .novadermis-search-grid ul.wc-block-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px;
  }
}
.novadermis-search-grid ul.wc-block-product-template > li { margin: 0; }
.novadermis-search-grid .wc-block-components-product-image { margin: 0; }
.novadermis-search-grid .wc-block-components-product-image img {
  width: 100%; height: auto; display: block;
}
.novadermis-search-grid .wp-block-post-title {
  margin: 12px 0 0; font-family: var(--sans);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.45;
}
.novadermis-search-grid .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.novadermis-search-grid .wp-block-post-title a:hover {
  text-decoration: underline; text-underline-offset: 4px;
}
.novadermis-search-grid .wp-block-woocommerce-product-price {
  margin: 7px 0 0; font-size: 14px; font-weight: 800; color: var(--price);
}
.novadermis-search-grid .wc-block-components-product-price {
  font-size: inherit; font-weight: inherit; color: inherit;
}
.novadermis-search-grid .wc-block-components-product-price del {
  color: var(--muted); font-weight: 400; margin-left: 7px; font-size: 12.5px;
}
.novadermis-search-grid .wc-block-components-product-price ins { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════
   ══ Catálogo de colección (shop + categorías) ══
   Réplica de la referencia del humano (cellskinlab.cl/collections, 2026-09-16):
   barra FILTRAR · ORDENAR POR · tamaño de imagen, drawer de filtros con
   disponibilidad y precio (slider doble + campos), plancha de orden y
   vista grande/cuadrícula. Sin reseñas (fuera por pedido del humano).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Contador de carrito en el header (lo llena novadermis.js) ── */
.util { position: relative; }
.util-count {
  position: absolute; top: -5px; right: -9px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--price); color: var(--paper);
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0;
}
.util-count.is-pulsing { animation: cart-count-pulse 600ms ease; }
@keyframes cart-count-pulse {
  0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); }
}

/* ── Quick-add «+» sobre la imagen (catálogo y portada) ── */
.quick-add {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 1px 4px rgba(20, 20, 22, 0.14);
  cursor: pointer; text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.quick-add svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* La regla de enlace de la imagen (display:block, height:100%, aspect-ratio:1)
   aplicaría al «+» también: mismo efecto, más específica, anula lo que distorsiona. */
.novadermis-catalogue .product-card .quick-add {
  display: grid; aspect-ratio: auto; top: auto; left: auto; height: 38px;
}
.quick-add .qa-check { display: none; }
.quick-add:hover { background: var(--ink); color: var(--paper); }
.quick-add:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.quick-add.is-busy { pointer-events: none; opacity: 0.7; }
.quick-add.is-added { background: var(--ink); color: var(--paper); }
.quick-add.is-added .qa-plus { display: none; }
.quick-add.is-added .qa-check { display: block; }

/* ── Cabecera de la superficie: breadcrumb + título ── */
.catalog-head { max-width: var(--max-w); margin: 0 auto; padding: 14px var(--pad-x) 0; }
.catalog-head .wc-block-breadcrumbs {
  display: none; font-size: 11px; font-weight: 600;
  letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--muted);
}
.catalog-head .wc-block-breadcrumbs a { color: inherit; text-decoration: none; }
.catalog-head .wc-block-breadcrumbs a:hover { color: var(--ink); }
.catalog-title {
  font-family: var(--sans); font-size: 19px; font-weight: 700;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  line-height: 1.3; text-align: center; margin: 12px 0 18px;
}
@media (min-width: 700px) {
  .catalog-head .wc-block-breadcrumbs { display: block; }
}

/* En celular el toolbar es lo primero que se ve (igual que la referencia):
   el título queda oculto (solo SEO) y todo el aire del encabezado se anula. */
@media (max-width: 699.9px) {
  /* margin-top 24px que el layout de WP pone entre header y main, y 16px del app. */
  .wp-site-blocks .catalog-surface { margin-top: 0; }
  .catalog-head { padding: 0; }
  .wp-site-blocks .catalog-app { margin-top: 0; }
  .catalog-title {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
  }
}

/* Avisos de WooCommerce (errores, confirmaciones) con la voz del tema. */
.catalog-surface .wc-block-store-notices { max-width: var(--max-w); margin: 14px auto 0; padding: 0 var(--pad-x); }
.catalog-surface .wc-block-components-notice-banner {
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
  box-shadow: none; border-radius: 0; margin: 0;
  font-size: 13.5px;
}
.catalog-surface .wc-block-components-notice-banner > svg { fill: var(--ink-soft); }

/* ── Barra de herramientas ── */
.catalog-app { position: relative; margin-top: 16px; }
.catalog-toolbar { border-block: 1px solid var(--line); }
.catalog-toolbar-in {
  position: relative;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) auto auto;
}
.toolbar-cell {
  min-height: 50px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.toolbar-cell:hover { color: var(--ink); }
.toolbar-filters { justify-content: flex-start; padding-left: 0; }
.toolbar-sort { border-left: 1px solid var(--line); }
.toolbar-sort .chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.toolbar-count {
  display: none; align-items: center; gap: 5px; padding: 0 18px;
  font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line);
}
.toolbar-layout { display: flex; border-left: 1px solid var(--line); }
.layout-btn {
  width: 44px; min-height: 50px; margin: 0;
  display: grid; place-items: center;
  background: none; border: none; cursor: pointer; color: var(--muted);
}
.layout-btn + .layout-btn { border-left: 1px solid var(--line); }
.layout-btn:hover { color: var(--ink); }
.layout-btn[aria-pressed="true"] { color: var(--ink); }
.layout-btn svg { width: 18px; height: 18px; }
.layout-btn .ic-d { display: none; }

/* Escritorio: sin botón FILTRAR (hay sidebar), conteo visible, orden a la izquierda. */
@media (min-width: 1000px) {
  .catalog-toolbar-in { grid-template-columns: auto 1fr auto auto; }
  .toolbar-filters { display: none; }
  .toolbar-sort { justify-content: flex-start; padding-left: 0; border-left: none; }
  .toolbar-count { display: flex; }
  .layout-btn .ic-m { display: none; }
  .layout-btn .ic-d { display: block; }
}

/* ── Cuerpo: sidebar (desktop) + grilla ── */
.catalog-body { max-width: var(--max-w); margin: 0 auto; padding: 26px var(--pad-x) 64px; }
.catalog-sidebar { display: none; }
@media (min-width: 1000px) {
  .catalog-body {
    display: grid; grid-template-columns: 224px minmax(0, 1fr);
    gap: 48px; align-items: start;
  }
  .catalog-sidebar {
    display: block; position: sticky;
    top: calc(var(--header-offset, 152px) + 16px);
  }
}

/* Modos de vista: grande = menos columnas, cuadrícula = más (referencia). */
.catalog-products[data-layout="large"] ul.wp-block-post-template { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .catalog-products ul.wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .catalog-products[data-layout="large"] ul.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .catalog-products ul.wp-block-post-template { gap: 44px 22px; }
}

/* Sin resultados */
.catalog-empty { padding: 44px 0 8px; text-align: center; color: var(--muted); font-size: 14px; }
.catalog-empty a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* Paginación numerada, discreta */
.catalog-pages { margin-top: 40px; }
.catalog-pages .page-numbers,
.catalog-pages .wp-block-query-pagination-previous,
.catalog-pages .wp-block-query-pagination-next {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px;
  font-size: 13px; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums;
}
.catalog-pages a:hover { color: var(--ink); }
.catalog-pages .page-numbers.current {
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600;
}

/* ── Filtros: acordiones, interruptor, rango de precio ── */
/* Reutiliza .acc/.acc-btn/.acc-panel del drawer del header (JS genérico);
   aquí sin fondo al abrir y con títulos en versalitas. */
.catalog-app .acc { border-bottom: none; }
.catalog-app .acc-btn {
  padding: 16px 0; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.catalog-app .acc.open { background: transparent; }
.catalog-app .acc.open > .acc-btn { color: var(--ink); }
.catalog-app .acc-panel-in { padding-bottom: 18px; }
.flt-group + .flt-group .acc { border-top: 1px solid var(--line-soft); }

.switch-row {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 4px 0 2px;
}
.switch-row .txt { font-size: 13.5px; color: var(--muted); }
.switch-row:hover .txt { color: var(--ink); }
.switch {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 40px; height: 22px; margin: 0;
  border-radius: 999px; background: var(--line);
  position: relative; cursor: pointer; transition: background 180ms ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 3px rgba(20, 20, 22, 0.35);
  transition: left 180ms ease;
}
.switch:checked { background: var(--ink); }
.switch:checked::after { left: 21px; }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.range-group { position: relative; height: 26px; margin: 4px 4px 16px; }
.range-group::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--line);
}
.range-group::after {
  content: ""; position: absolute; top: 50%; height: 2px; margin-top: -1px;
  left: var(--range-min, 0%); right: calc(100% - var(--range-max, 100%));
  background: var(--ink);
}
.range-group input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none; outline: none;
}
.range-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--paper);
  box-shadow: 0 1px 3px rgba(20, 20, 22, 0.3);
  pointer-events: auto; cursor: pointer;
}
.range-group input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--paper);
  box-shadow: 0 1px 3px rgba(20, 20, 22, 0.3);
  pointer-events: auto; cursor: pointer;
}
.range-group input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
.range-group input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }

.range-fields { display: flex; align-items: center; gap: 10px; }
.range-field {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--paper);
}
.range-field:focus-within { border-color: var(--ink); }
.range-field .prefix { color: var(--muted); font-size: 13px; }
.range-field input {
  width: 100%; min-width: 0; border: none; padding: 0;
  background: none; text-align: right;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.range-field input:focus { outline: none; }
.range-field input::-webkit-outer-spin-button,
.range-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.range-fields .sep { color: var(--muted); font-size: 12.5px; }

/* ── Drawer de filtros y plancha de orden (overlays) ── */
.catalog-backdrop {
  position: fixed; inset: 0; z-index: 64;
  background: rgba(20, 20, 22, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 250ms ease;
}
.catalog-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 65;
  width: min(86vw, 380px);
  background: var(--paper);
  transform: translateX(-102%); transition: transform 280ms ease;
  display: flex; flex-direction: column;
}
.catalog-sort {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  background: var(--paper);
  transform: translateY(103%); transition: transform 280ms ease;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
/* Cerrados: fuera del orden de tabulación sin display:none (animables). */
.catalog-drawer, .catalog-sort { visibility: hidden; }
.catalog-app[data-open-panel="catalog-filters"] .catalog-drawer { visibility: visible; transform: translateX(0); }
.catalog-app[data-open-panel="catalog-sort"] .catalog-sort { visibility: visible; transform: translateY(0); }
.catalog-app[data-open-panel] .catalog-backdrop { opacity: 1; pointer-events: auto; }
body.catalog-open { overflow: hidden; }

.catalog-panel-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.catalog-drawer-head, .catalog-sort-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line-soft);
}
.icon-close {
  width: 36px; height: 36px; margin-right: -8px;
  display: grid; place-items: center;
  background: none; border: none; cursor: pointer; color: var(--ink);
}
.icon-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-close:hover { color: var(--muted); }

.catalog-drawer form {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 2px 20px 16px;
}
.catalog-drawer-foot { margin-top: auto; padding-top: 18px; }

.catalog-sort-list { padding: 4px 0 8px; }
.sort-option {
  display: block; width: 100%; padding: 13px 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 14.5px; color: var(--muted); text-decoration: none;
}
.sort-option:hover { color: var(--ink); }
.sort-option[aria-current="true"] { color: var(--ink); font-weight: 700; }

/* ≥700px la plancha de orden es un popover bajo la barra, alineado a la derecha. */
@media (min-width: 700px) {
  .catalog-sort {
    position: absolute; top: 100%; right: var(--pad-x); left: auto; bottom: auto;
    width: 284px; padding-bottom: 0;
    border: 1px solid var(--line-soft);
    box-shadow: 0 10px 30px rgba(20, 20, 22, 0.14);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .catalog-app[data-open-panel="catalog-sort"] .catalog-sort { opacity: 1; transform: translateY(0); }
  .catalog-sort-head { border-bottom: none; padding-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-backdrop, .catalog-drawer, .catalog-sort { transition: none; }
  .quick-add, .switch, .switch::after { transition: none; }
  .util-count.is-pulsing { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ══ Ficha de producto (PDP) — diseño A «El producto, sin rodeos» ══
   Referencia: design/references/pdp-a (selección del humano 2026-09-16).
   Identidad primero, escenario del producto en hielo con una esquina
   curva amplia, compra compacta y desplegables honestos.
   Tokens propios del diseño A (fríos), con el papel y la tinta del tema:
   azul #376584 · hielo #edf3f7 · pizarra #52616c · línea #ccd7df.
   La maqueta tenía encabezado/pie y carrito de demostración propios:
   aquí manda el encabezado/pie reales de la tienda y el carrito real de Woo. */

.pdp-surface {
  /* Tokens del diseño A, alcanzables desde cualquier regla de la sección. */
  --pdp-blue: #376584;
  --pdp-ice: #edf3f7;
  --pdp-slate: #52616c;
  --pdp-line: #ccd7df;
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
  padding: 0 var(--pad-x);
  -webkit-tap-highlight-color: #37658430;
}
/* El aire entre header y main lo pone cada pieza (como en el catálogo). */
.wp-site-blocks .pdp-surface { margin-top: 0; }
.pdp-surface :focus-visible { outline: 3px solid var(--pdp-blue); outline-offset: 4px; }
.pdp-surface button { cursor: pointer; }
.pdp-surface button:disabled { cursor: not-allowed; opacity: 0.4; }

/* Avisos de Woo (p. ej. confirmación de carrito) con la voz del tema. */
.pdp-surface .wc-block-store-notices { margin: 14px 0 0; }
.pdp-surface .wc-block-components-notice-banner {
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
  box-shadow: none; border-radius: 0; margin: 0; font-size: 13.5px;
}
.pdp-surface .wc-block-components-notice-banner > svg { fill: var(--ink-soft); }

/* ── Ruta de navegación ── */
.pdp-head .wc-block-breadcrumbs { padding: 21px 0; font-size: 12px; color: var(--pdp-slate); }
.pdp-head .wc-block-breadcrumbs a {
  color: inherit; text-decoration: none;
  min-height: 24px; display: inline-flex; align-items: center;
}
.pdp-head .wc-block-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Grilla del producto: identidad → visual → compra (móvil);
      escritorio comparte imagen y compra en una vista. ── */
.pdp { display: grid; grid-template-areas: 'identity' 'visual' 'purchase'; gap: 22px; }
.pdp-identity { grid-area: identity; min-width: 0; }
.pdp-visual { grid-area: visual; min-width: 0; margin: 0; }
.pdp-purchase { grid-area: purchase; min-width: 0; }

/* Marca sobre el título: enlace real a la página de la marca. */
.pdp-brand { margin: 0; font-size: 14px; font-weight: 600; color: var(--pdp-blue); }
.pdp-brand a { color: inherit; text-decoration: none; }
.pdp-brand a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Franja de categoría: mismas reglas y colores del catálogo
   (colores por categoría vía :has sobre el enlace; categorías sin
   color quedan en texto plano, igual que «Contorno de ojos» en las tarjetas). */
.pdp-strip {
  display: inline-block; margin: 0 0 10px; padding: 3px 8px 2px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.pdp-strip a { color: inherit; text-decoration: none; }
.pdp-strip a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pdp-strip:has(a[href*="/serums/"]) { background: var(--strip-serums); }
.pdp-strip:has(a[href*="/solares/"]) { background: var(--strip-sun); }
.pdp-strip:has(a[href*="/cremas/"]) { background: var(--strip-creams); }
.pdp-strip:has(a[href*="/limpieza/"]) { background: var(--strip-cleansers); }

.pdp-title {
  margin: 10px 0 16px; font-family: var(--serif); font-weight: 500;
  font-size: 37px; line-height: 1.13; letter-spacing: -1.3px;
  text-wrap: balance; overflow-wrap: break-word;
}
.pdp-type { margin: 0; font-size: 14px; color: var(--ink); }
.pdp-type p { margin: 0; }

/* ── Escenario del producto: hielo, esquina curva que dialoga con el envase. ── */
.pdp-figure { margin: 0; }
.pdp-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--pdp-ice); border-radius: 3px 3px 66px 3px;
  min-height: 254px; padding: 18px 35px 34px;
}
/* La galería nativa de Woo provee el lightbox; aquí solo se compone. */
.pdp-stage .wp-block-woocommerce-product-image-gallery { max-width: 100%; margin: 0; width: 100%; }
.pdp-stage .woocommerce-product-gallery {
  float: none; width: 100%; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pdp-stage .woocommerce-product-gallery__wrapper { margin: 0; display: flex; justify-content: center; }
.pdp-stage .woocommerce-product-gallery__image { flex: 0 1 auto; }
.pdp-stage .woocommerce-product-gallery__image img,
.pdp-stage .woocommerce-product-gallery__image .zoomImg {
  width: 100%; max-width: 340px; height: auto; display: block;
  /* La foto viene con fondo blanco: multiply la asienta sobre el hielo
     sin retocar el archivo (igual que en la referencia). */
  mix-blend-mode: multiply;
}
/* La lupa nativa de Woo queda reemplazada por el botón Ampliar del diseño. */
.pdp-stage .woocommerce-product-gallery__trigger { display: none; }
.pdp-zoom {
  position: absolute; bottom: 12px; left: 14px;
  display: flex; align-items: center; gap: 5px;
  border: 0; background: transparent; color: var(--pdp-blue);
  padding: 8px; font-size: 12px; min-height: 44px;
}
.pdp-zoom svg {
  width: 19px; height: 19px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.pdp-zoom:hover { color: var(--ink); }
.pdp-zoom:hover span { text-decoration: underline; text-underline-offset: 4px; }
.pdp-caption { display: none; }

/* ── Precio: actual arriba, anterior tachado abajo, ahorro a la derecha. ── */
.pdp-pricing { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pdp-pricing .wc-block-components-product-price {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -1px;
  line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pdp-pricing .wc-block-components-product-price ins { order: 1; text-decoration: none; color: var(--price); }
.pdp-pricing .wc-block-components-product-price del {
  order: 2; font-size: 12px; font-weight: 400; letter-spacing: 0;
  color: var(--muted); text-decoration: line-through;
}
.pdp-pricing .wc-block-components-product-price del::before { content: 'Antes '; }
.pdp-pricing .wc-block-components-product-price ins .amount::after,
.pdp-pricing .wc-block-components-product-price > .amount::after {
  content: 'CLP'; font-size: 11px; font-weight: 400; letter-spacing: 0;
  color: var(--pdp-slate); margin-left: 7px;
}
.pdp-saving {
  margin: 7px 0 0; font-size: 12px; font-weight: 600;
  color: var(--price); white-space: nowrap;
}

/* ── Compra: cantidad con pasos ± y la única acción primaria. ── */
.pdp .wc-block-add-to-cart-form { margin-top: 19px; }
.pdp form.cart { display: flex; flex-direction: column; margin: 0; }
.pdp-qty-label { font-size: 12px; margin-bottom: 7px; }
.pdp-controls { display: flex; gap: 12px; align-items: stretch; }
/* .quantity conserva su etiqueta sr-only de Woo; la caja la pone el stepper. */
.pdp-controls .quantity { display: contents; }
.pdp-stepper {
  display: flex; align-items: center;
  border: 1px solid #8a9ba6; border-radius: 3px; height: 52px; flex-shrink: 0;
}
.pdp-stepper .pdp-step {
  width: 44px; height: 100%; min-height: 48px; padding: 0;
  border: 0; background: transparent; color: var(--ink);
  font-size: 21px; line-height: 1;
}
.pdp-stepper .pdp-step:hover:not(:disabled) { background: var(--pdp-ice); }
.pdp form.cart .pdp-stepper input.qty {
  width: 32px; min-width: 0; height: 100%;
  text-align: center; border: 0; background: transparent; color: var(--ink);
  font-size: 16px; padding: 0; font-variant-numeric: tabular-nums;
  appearance: textfield; -moz-appearance: textfield;
}
.pdp form.cart .pdp-stepper input.qty::-webkit-inner-spin-button,
.pdp form.cart .pdp-stepper input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp form.cart .single_add_to_cart_button {
  flex: 1; min-height: 52px; padding: 12px 16px;
  background: var(--ink); border: 1px solid var(--ink); border-radius: 3px;
  color: #ffffff; font-weight: 600; font-size: 13px; line-height: 1.4;
  letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.pdp form.cart .single_add_to_cart_button:hover:not(:disabled) {
  background: var(--pdp-blue); border-color: var(--pdp-blue); color: #ffffff;
}
.pdp-qty-error { margin: 10px 0 0; font-size: 12px; color: #9c2929; }

/* ── Calificación de despacho (política real, no promesa nueva). ── */
.pdp-shipping {
  display: flex; margin-top: 23px; padding-top: 20px;
  border-top: 1px solid var(--pdp-line); font-size: 12px; line-height: 1.9;
}
.pdp-shipping p { margin: 0; position: relative; padding-left: 24px; }
.pdp-shipping p::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--pdp-blue); font-size: 17px; line-height: 1.35;
}
.pdp-shipping strong { font-size: 13px; font-weight: 600; }
.pdp-shipping-link { color: var(--pdp-blue); }

/* ── Información: intro a la izquierda, desplegables a la derecha (desktop). ── */
.pdp-information {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--pdp-line);
  display: grid; gap: 24px;
}
.pdp-info-intro { min-width: 0; }
.pdp-info-title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 29px; line-height: 1.2; letter-spacing: -0.5px; text-wrap: balance;
}
.pdp-info-intro p { margin: 12px 0; font-size: 13px; color: var(--pdp-slate); max-width: 70ch; }
.pdp-info-contact a { font-size: 13px; color: var(--ink); }
.pdp-info-contact a:hover { color: var(--pdp-blue); }
.pdp-disclosures { min-width: 0; }

/* Desplegables nativos (details/summary), sin JS para abrirse. */
.pdp-disclosure { border-bottom: 1px solid var(--pdp-line); scroll-margin-top: 24px; }
.pdp-disclosure summary {
  min-height: 65px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; font-weight: 600; list-style: none;
  padding: 12px 0; color: var(--ink);
}
.pdp-disclosure summary::-webkit-details-marker { display: none; }
.pdp-disclosure summary:hover { color: var(--pdp-blue); }
.pdp-disclosure-icon { width: 18px; height: 18px; margin-left: auto; position: relative; flex-shrink: 0; }
.pdp-disclosure-icon::before, .pdp-disclosure-icon::after {
  content: ''; position: absolute; top: 8px; left: 2px;
  width: 14px; height: 1px; background: currentColor;
}
.pdp-disclosure-icon::after { transform: rotate(90deg); }
.pdp-disclosure[open] .pdp-disclosure-icon::after { transform: none; }
.pdp-review-count { font-size: 12px; font-weight: 400; color: var(--pdp-slate); }
.pdp-disclosure-content { padding: 0 0 25px; font-size: 13px; }
.pdp-disclosure-content p { margin: 12px 0; max-width: 70ch; }
.pdp-disclosure-content h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.pdp-disclosure-content a { color: var(--pdp-blue); }
.pdp-muted { color: var(--pdp-slate); }

/* Ficha: datos del producto en dos columnas fijas. */
.pdp-facts { margin: 0 0 18px; }
.pdp-facts > div { display: grid; grid-template-columns: 115px 1fr; gap: 10px; padding: 7px 0; }
.pdp-facts dt { color: var(--pdp-slate); }
.pdp-facts dd { margin: 0; }

/* Valoraciones reales de Woo dentro del desplegable: voz del tema, función nativa. */
.pdp-disclosure-content .woocommerce-Reviews { font-size: inherit; }
.pdp-disclosure-content .woocommerce-Reviews .woocommerce-Reviews-title { display: none; }
.pdp-disclosure-content .woocommerce-noreviews { color: var(--pdp-slate); }
.pdp-disclosure-content .comment-reply-title { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.pdp-disclosure-content .comment-form { display: grid; gap: 14px; margin: 0; }
.pdp-disclosure-content .comment-form p { margin: 0; }
.pdp-disclosure-content .comment-form label { display: block; font-size: 12px; margin-bottom: 6px; }
.pdp-disclosure-content .comment-form input[type='text'],
.pdp-disclosure-content .comment-form input[type='email'],
.pdp-disclosure-content .comment-form textarea,
.pdp-disclosure-content .comment-form select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: #ffffff; border: 1px solid #8a9ba6; border-radius: 3px;
  padding: 11px 12px;
}
.pdp-disclosure-content .comment-form select { width: auto; }
.pdp-disclosure-content .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.pdp-disclosure-content .comment-form-cookies-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--pdp-blue); }
.pdp-disclosure-content .comment-form-cookies-consent label { margin: 0; font-size: 12px; color: var(--pdp-slate); }
.pdp-disclosure-content .comment-form p.form-submit { margin: 4px 0 0; }
.pdp-disclosure-content .comment-form input.submit {
  min-height: 52px; padding: 12px 24px; cursor: pointer;
  background: var(--ink); border: 1px solid var(--ink); border-radius: 3px;
  color: #ffffff; font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none;
}
.pdp-disclosure-content .comment-form input.submit:hover {
  background: var(--pdp-blue); border-color: var(--pdp-blue);
}
.pdp-disclosure-content .comment-notes { font-size: 12px; color: var(--pdp-slate); }
.pdp-disclosure-content .required { color: #9c2929; }
.pdp-disclosure-content .comment-list { list-style: none; margin: 0 0 18px; padding: 0; }
.pdp-disclosure-content .comment-list .comment { padding: 14px 0; border-top: 1px solid var(--pdp-line-soft, var(--line)); }
.pdp-disclosure-content .comment-list .comment-meta { font-size: 12px; color: var(--pdp-slate); margin-bottom: 4px; }
.pdp-disclosure-content .comment-list .star-rating { display: inline-block; margin-left: 6px; }

/* ── Nota de salud (pie de la ficha) ── */
.pdp-health { margin: 32px 0 40px; font-size: 11px; color: var(--pdp-slate); max-width: 80ch; }

/* ── Escritorio: imagen y compra comparten una vista. ── */
@media (min-width: 700px) {
  .pdp-head .wc-block-breadcrumbs { padding: 27px 0 30px; }
  .pdp {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'visual identity' 'visual purchase';
    column-gap: 55px; row-gap: 27px;
  }
  .pdp-identity { padding-top: 12px; }
  .pdp-brand { font-size: 16px; }
  .pdp-title {
    font-size: clamp(42px, 4.3vw, 58px); letter-spacing: -1.8px;
    line-height: 1.12; margin: 15px 0 23px;
  }
  .pdp-type { font-size: 16px; }
  .pdp-stage { height: 560px; border-radius: 4px 4px 120px 3px; padding: 50px 36px; }
  .pdp-stage .woocommerce-product-gallery__image img,
  .pdp-stage .woocommerce-product-gallery__image .zoomImg { max-width: 465px; }
  .pdp-zoom { left: 22px; bottom: 18px; font-size: 13px; }
  .pdp-caption {
    display: flex; justify-content: space-between; gap: 15px;
    margin: 17px 0 0; font-size: 11px; color: var(--pdp-slate);
  }
  .pdp-pricing .wc-block-components-product-price { font-size: 38px; }
  .pdp-pricing .wc-block-components-product-price del { font-size: 13px; }
  .pdp-saving { font-size: 13px; padding-top: 12px; margin-top: 0; }
  .pdp form.cart .single_add_to_cart_button { font-size: 14px; }
  .pdp form.cart .pdp-stepper input.qty { width: 37px; }
  .pdp-information { grid-template-columns: 1.08fr 1fr; column-gap: 55px; margin-top: 58px; padding-top: 35px; }
  .pdp-info-title { font-size: 35px; }
  .pdp-info-intro p { font-size: 14px; margin: 16px 0 20px; }
  .pdp-facts > div { grid-template-columns: 140px 1fr; }
  .pdp-disclosure-content { font-size: 14px; }
  .pdp-health { margin: 40px 0 50px; }
}

@media (min-width: 1000px) {
  .pdp, .pdp-information { column-gap: 85px; }
  .pdp-identity { padding-top: 20px; }
  .pdp-purchase { padding-right: 28px; }
  .pdp-info-intro { padding-top: 12px; }
  .pdp form.cart .single_add_to_cart_button { font-size: 15px; }
}

/* Pantallas angostas: la fila de compra respira menos pero sigue tocables. */
@media (max-width: 369.9px) {
  .pdp-title { font-size: 32px; }
  .pdp-pricing .wc-block-components-product-price { font-size: 29px; }
  .pdp-saving { font-size: 11px; }
  .pdp-controls { gap: 8px; }
  .pdp form.cart .single_add_to_cart_button { font-size: 12px; padding: 12px 10px; }
  .pdp form.cart .pdp-stepper input.qty { width: 26px; }
  .pdp-stage { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-surface *, .pdp-surface *::before, .pdp-surface *::after { transition: none !important; }
}

/* ---------- Carrito y mini-carrito ---------- */
/* Badge «AHORRA» y precios de oferta idénticos a las tarjetas del catálogo
   (.catalogue-product-badge): rojo --price, 11px/600, tracking 0.06em y
   mayúsculas; del gris + ins rojo como en la grilla y la PDP. Sin esto los
   textos traducidos de Woo se ven con otra voz visual al resto del sitio. */
.wp-block-woocommerce-cart .wc-block-components-sale-badge,
.wc-block-mini-cart__items .wc-block-components-sale-badge {
  padding: 4px 8px;
  background: var(--price);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wp-block-woocommerce-cart .wc-block-components-product-price,
.wc-block-mini-cart__items .wc-block-components-product-price {
  font-variant-numeric: tabular-nums;
}

.wp-block-woocommerce-cart .wc-block-components-product-price del,
.wc-block-mini-cart__items .wc-block-components-product-price del {
  color: var(--muted);
  font-weight: 400;
  margin-inline-end: 8px;
}

.wp-block-woocommerce-cart .wc-block-components-product-price ins,
.wc-block-mini-cart__items .wc-block-components-product-price ins {
  text-decoration: none;
  color: var(--price);
  font-weight: 600;
}
