/* ==========================================================================
   Tienda Calzins — Sistema de diseño
   Un solo layout que cambia de "piel" según [data-seccion]:
     caballeros / damas  -> elegante y moderno
     ninos / ninas       -> colorido y divertido
     (sin data-seccion)  -> neutro de marca (carrito / checkout / mi-cuenta)
   Mobile-first. Animaciones GPU. Respeta prefers-reduced-motion.
   ========================================================================== */

/* ----------------------------- Fuentes self-host ------------------------- */
@font-face {
  font-family: "Inter var"; font-style: normal; font-weight: 300 800;
  font-display: swap; src: url("/tienda/assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair"; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url("/tienda/assets/fonts/playfair.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("/tienda/assets/fonts/fredoka.woff2") format("woff2");
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text);
  background: var(--bg); line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ------------------------------ Tokens base ------------------------------ */
:root {
  --maxw: 1240px;
  --gap: clamp(12px, 3vw, 22px);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --pad-x: clamp(16px, 4vw, 40px);
  --tilt-max: 6deg;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  /* Neutro de marca (default) */
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #efece7;
  --text: #1c1917;
  --muted: #746e66;
  --primary: #14110f;
  --primary-contrast: #ffffff;
  --accent: #b08d57;
  --accent-2: #d9c4a0;
  --border: #e6e1d9;
  --shadow: 0 2px 10px rgba(20,17,15,.06);
  --shadow-lg: 0 18px 50px -12px rgba(20,17,15,.22);
  --ring: rgba(176,141,87,.35);
  --font-display: "Playfair", Georgia, serif;
  --font-body: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hero-grad: radial-gradient(120% 120% at 80% 0%, #fff 0%, #f0ebe3 60%, #e7dfd2 100%);
}

/* Damas — elegante, cálido, sofisticado */
[data-seccion="damas"] {
  --bg: #fbf4f3; --surface: #ffffff; --surface-2: #f6e7e4;
  --text: #2a1e1f; --muted: #8a6b6d;
  --primary: #7c2438; --primary-contrast: #fff;
  --accent: #c98a6b; --accent-2: #e7bfa9;
  --border: #f0ddd8; --ring: rgba(124,36,56,.28);
  --shadow-lg: 0 18px 50px -12px rgba(124,36,56,.22);
  --font-display: "Playfair", Georgia, serif;
  --hero-grad: radial-gradient(120% 120% at 15% 0%, #fff 0%, #fbe9e6 55%, #f3d3cb 100%);
}

/* Caballeros — moderno, sobrio, frío */
[data-seccion="caballeros"] {
  --bg: #f1f3f6; --surface: #ffffff; --surface-2: #e6eaf0;
  --text: #131922; --muted: #64707f;
  --primary: #1c2b3a; --primary-contrast: #fff;
  --accent: #b0894f; --accent-2: #9aa7b8;
  --border: #dde3ec; --ring: rgba(28,43,58,.28);
  --shadow-lg: 0 18px 50px -12px rgba(19,25,34,.28);
  --font-display: "Inter var", system-ui, sans-serif;
  --display-upper: uppercase; --display-tracking: .06em; --display-weight: 800;
  --hero-grad: radial-gradient(120% 120% at 85% 0%, #fff 0%, #e9eef4 55%, #d3dbe6 100%);
}

/* Niños — vivo, azul/verde/naranja, redondeado */
[data-seccion="ninos"] {
  --bg: #eef7ff; --surface: #ffffff; --surface-2: #dcefff;
  --text: #10233a; --muted: #5a76a0;
  --primary: #1f6bff; --primary-contrast: #fff;
  --accent: #ff9f1c; --accent-2: #2ec4b6;
  --border: #cfe6ff; --ring: rgba(31,107,255,.30);
  --radius: 20px; --radius-lg: 30px; --tilt-max: 9deg;
  --shadow-lg: 0 20px 46px -12px rgba(31,107,255,.30);
  --font-display: "Fredoka", "Inter var", sans-serif;
  --hero-grad: radial-gradient(120% 120% at 50% 0%, #fff 0%, #dcefff 55%, #bfe0ff 100%);
}

/* Niñas — rosa/lila/turquesa, dulce, redondeado */
[data-seccion="ninas"] {
  --bg: #fff0f7; --surface: #ffffff; --surface-2: #ffe1ef;
  --text: #3a1330; --muted: #a05f86;
  --primary: #ec4899; --primary-contrast: #fff;
  --accent: #a970ff; --accent-2: #34d3c6;
  --border: #ffd4e8; --ring: rgba(236,72,153,.30);
  --radius: 20px; --radius-lg: 30px; --tilt-max: 9deg;
  --shadow-lg: 0 20px 46px -12px rgba(236,72,153,.30);
  --font-display: "Fredoka", "Inter var", sans-serif;
  --hero-grad: radial-gradient(120% 120% at 50% 0%, #fff 0%, #ffe1ef 55%, #ffc6e2 100%);
}

/* --------------------------------- Layout -------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(32px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 3vw, 30px); }
.section-title { font-size: clamp(1.5rem, 4vw, 2.4rem); margin: 0;
  text-transform: var(--display-upper, none); letter-spacing: var(--display-tracking, normal); }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* --------------------------------- Header -------------------------------- */
.t-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.t-header__bar { display: flex; align-items: center; gap: 14px; height: 62px; }
.t-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.t-brand img { height: 30px; width: auto; }
.t-nav { display: none; margin-left: auto; gap: 6px; }
.t-nav a { padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem;
  color: var(--muted); transition: color .2s, background .2s; }
.t-nav a:hover, .t-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.t-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.t-nav + .t-actions { margin-left: 0; }
.icon-btn {
  --sz: 42px; width: var(--sz); height: var(--sz); display: grid; place-items: center;
  border: none; background: transparent; border-radius: var(--radius-pill); position: relative;
  transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: var(--primary-contrast); border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
  transform: scale(0); transition: transform .3s var(--ease-back);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.bump { animation: badgeBump .4s var(--ease-back); }
@keyframes badgeBump { 0%{transform:scale(1)} 40%{transform:scale(1.5)} 100%{transform:scale(1)} }
.menu-btn { display: inline-grid; }

/* --------------------------- Drawer (móvil) ------------------------------ */
.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.42);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; z-index: 61; height: 100dvh; width: min(82vw, 340px);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(-100%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column; padding: 22px; gap: 6px;
  padding-top: max(22px, env(safe-area-inset-top));
}
.drawer.open { transform: translateX(0); }
.drawer h3 { font-size: 1.3rem; margin-bottom: 10px; }
.drawer a { padding: 14px 12px; border-radius: var(--radius); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; gap: 12px; transition: background .2s; }
.drawer a:hover { background: var(--surface-2); }
.drawer a .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* --------------------------- Bottom-bar (móvil) -------------------------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; justify-content: space-around; align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; }
.bottom-bar a[aria-current="page"] { color: var(--primary); }
.bottom-bar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.bottom-bar .cart-badge { top: -2px; right: calc(50% - 22px); }

/* --------------------------------- Botones ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; background: var(--surface-2); color: var(--text);
  transition: transform .16s var(--ease), box-shadow .22s, background .2s, filter .2s;
  will-change: transform; -webkit-tap-highlight-color: transparent; min-height: 46px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); box-shadow: 0 8px 20px -8px var(--ring); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 30px -10px var(--ring); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; min-height: 54px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------- Chips --------------------------------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 15px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: .88rem; color: var(--muted);
  transition: all .18s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.chip.active { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }

/* ------------------------------ Product grid ----------------------------- */
.product-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(2, 1fr);
}
.product-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), transform .18s var(--ease);
  transform-style: preserve-3d; will-change: transform; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card__media { position: relative; aspect-ratio: 4/5; background: #fff; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px;
  transition: transform .5s var(--ease); transform: translateZ(0); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 12px 14px 15px; transform: translateZ(20px); }
.product-card__title { font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.product-card__price { font-weight: 800; font-size: 1.08rem; color: var(--text); }
.product-card__price .old { font-weight: 500; font-size: .85rem; color: var(--muted);
  text-decoration: line-through; margin-left: 6px; }
.tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 800; background: var(--primary); color: var(--primary-contrast);
  box-shadow: var(--shadow);
}
.tag.tag-off { background: var(--accent); }
.tag.tag-out { background: #555; }

/* stock heat pill */
.stock-pill { font-size: .74rem; font-weight: 700; color: var(--accent-2); }

/* --------------------------------- Cards --------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); }

/* ------------------------------ Portal (home) ---------------------------- */
.portal { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.portal__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 40vw;
  display: flex; align-items: flex-end; padding: 18px; color: #fff; isolation: isolate;
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s;
}
.portal__panel::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.portal__panel::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.62) 100%); }
.portal__panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portal__panel:hover::before { transform: scale(1.08); }
.portal__panel h3 { color: #fff; font-size: clamp(1.1rem, 4.5vw, 1.9rem); margin: 0; }
.portal__panel span { font-size: .82rem; opacity: .9; font-weight: 600; }
.portal__panel .go { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .3s var(--ease-back), background .3s; }
.portal__panel:hover .go { transform: rotate(-45deg) scale(1.1); background: rgba(255,255,255,.34); }
.p-caballeros::before { background-image: linear-gradient(135deg, #1c2b3a, #3a5068); }
.p-damas::before { background-image: linear-gradient(135deg, #7c2438, #c98a6b); }
.p-ninos::before { background-image: linear-gradient(135deg, #1f6bff, #2ec4b6); }
.p-ninas::before { background-image: linear-gradient(135deg, #ec4899, #a970ff); }

/* ---------------------------------- Hero --------------------------------- */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--hero-grad); padding: clamp(28px, 6vw, 64px); }
.hero h1 { font-size: clamp(2rem, 7vw, 4rem); max-width: 14ch;
  text-transform: var(--display-upper, none); letter-spacing: var(--display-tracking, normal); }
.hero p { font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 42ch; margin-bottom: 22px; }
.hero .btn { }
.hero__deco { position: absolute; right: -8%; top: -12%; width: 46%; opacity: .5; pointer-events: none;
  filter: drop-shadow(var(--shadow-lg)); animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-16px) rotate(3deg)} }

/* --------------------------------- Footer -------------------------------- */
.t-footer { background: var(--surface); border-top: 1px solid var(--border);
  padding-block: clamp(28px, 5vw, 48px); margin-top: clamp(32px, 6vw, 64px); }
.t-footer .container { display: grid; gap: 18px; }
.t-footer small { color: var(--muted); }

/* -------------------------------- Skeleton ------------------------------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* --------------------------------- Toast --------------------------------- */
.toast-wrap { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--primary); color: var(--primary-contrast); padding: 12px 20px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem;
  transform: translateY(20px); opacity: 0; transition: all .3s var(--ease-back); max-width: 90vw; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ------------------------------- Reveal (IO) ----------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }

/* entrada de tarjetas de catálogo (no depende de scroll: aparecen al montar) */
.product-in { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .product-in { animation: none; } }

/* flor de "vuelo al carrito" */
.fly-img { position: fixed; z-index: 95; border-radius: 10px; object-fit: cover; pointer-events: none;
  box-shadow: var(--shadow-lg); transition: all .8s cubic-bezier(.5,-.3,.4,1); }

/* Lightbox con zoom (visor de fotos a pantalla completa) */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.93);
  display: none; align-items: center; justify-content: center; touch-action: none;
  opacity: 0; transition: opacity .25s var(--ease); }
.lb.open { display: flex; opacity: 1; }
.lb-stage { width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 0 0;
  transition: transform .25s var(--ease); will-change: transform; cursor: zoom-in;
  user-select: none; -webkit-user-drag: none; touch-action: none; }
.lb-img.zoomed { cursor: grab; transition: none; }
.lb-img.dragging { cursor: grabbing; transition: none; }
.lb-btn { position: absolute; z-index: 2; background: rgba(255,255,255,.16); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1; display: grid;
  place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .15s; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn:active { transform: scale(.9); }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.9); }
.lb-count { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; z-index: 2; }
.lb-hint { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; z-index: 2; transition: opacity .3s; pointer-events: none; }
.lb.zoomed-state .lb-hint, .lb.zoomed-state .lb-prev, .lb.zoomed-state .lb-next { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-img { transition: none; } }
@media (min-width: 900px) { .lb-img { cursor: zoom-in; } }

/* --------------------------------- Utils --------------------------------- */
.stack > * + * { margin-top: var(--gap); }
.muted { color: var(--muted); }
.price { font-weight: 800; }
.hide { display: none !important; }
.center { text-align: center; }
.pt-safe { padding-top: max(0px, env(safe-area-inset-top)); }
.mb-nav { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

/* ------------------------------- Breakpoints ----------------------------- */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .portal__panel { min-height: 34vw; }
}
@media (min-width: 900px) {
  .t-nav { display: flex; }
  .menu-btn { display: none; }
  .bottom-bar { display: none; }
  .mb-nav { padding-bottom: 0; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .portal { grid-template-columns: repeat(4, 1fr); }
  .portal__panel { min-height: 30vh; }
  .toast-wrap { bottom: 30px; }
}
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
}

/* ------------------- Transición entre páginas (View Transitions) --------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .34s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
/* El header se mantiene fijo (no hace cross-fade con el resto) */
.t-header { view-transition-name: t-header; }
.bottom-bar { view-transition-name: t-bottombar; }

/* ---------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}