/* Local de Ropa — demo de Trazo Web Studio (paquete Sitio a Medida).
   Negocio de ejemplo, no un local real. Paleta por función en :root (la variante de mujer cambia solo eso).
   Estilos compartidos: header, footer, botones, badges, tarjeta de prenda,
   formularios. Lo específico del catálogo vive en catalogo.css. */

:root {
  /* Paleta "Local de Ropa" (hombre), v3: negro cálido y arena sobre blanco
     hueso. Los nombres son por función (marca / acento), así la variante de
     mujer (mujer/tema.css) cambia solo estos valores.
     Contraste medido: --muted sobre --bg 5,4:1; --ink-2 sobre --bg 10:1. */
  --marca-900: #161512;
  --marca-800: #24221E;
  --marca-700: #1E1D1A;
  --marca-600: #3A3732;
  --marca-100: #E7E1D6;
  --marca-50: #F2EEE6;
  --acento: #D9C4A0;
  --acento-200: #EDE3D1;
  --acento-ink: #3B2F1E;
  --on-dark: #E8E3DA;
  --on-dark-2: #B1AB9F;
  --ink: #161512;
  --ink-2: #3B3833;
  --muted: #69645B;
  --line: #E4DED3;
  --line-strong: #8E887E;
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-2: #EEE9E0;
  --rojo: #B3261E;
  --rojo-50: #FBEAE8;
  --wa: #25D366;
  --wa-ink: #0B3D22;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .06), 0 2px 8px rgba(20, 20, 20, .05);
  --shadow: 0 12px 32px rgba(20, 20, 20, .12);
  --shadow-lg: 0 28px 64px rgba(20, 20, 20, .22);
  --max: 1180px;
  --header-h: 72px;
  --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

/* Foco de dos tonos: visible sobre fondos claros y sobre el fondo oscuro. */
:focus-visible { outline: 3px solid var(--marca-700); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--acento); box-shadow: 0 0 0 6px var(--marca-900); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Utilidades ---------- */
.container { --gutter: 24px; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 80px; }
.section-tight { padding-block: 56px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--marca-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--marca-700); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--acento); }
.section-dark .eyebrow, .on-dark .eyebrow { color: var(--acento); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.section-dark .section-head p { color: var(--on-dark); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--marca-900); color: #fff; padding: 10px 16px; border-radius: var(--pill); font-weight: 700; text-decoration: none; transition: top var(--t); }
.skip-link:focus { top: 12px; }

/* ---------- Aviso de demo ---------- */
.demo-ribbon { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: var(--on-dark); font-size: 13px; padding: 9px 16px; text-align: center; }
.demo-ribbon strong { color: var(--acento); }
.demo-ribbon { flex-wrap: wrap; row-gap: 4px; }
.demo-ribbon .ribbon-link { color: #fff; font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
.demo-ribbon .ribbon-link:hover { color: var(--acento); }

/* ---------- Header ---------- */
/* El desenfoque va en un pseudo-elemento: backdrop-filter sobre el header lo
   convertiría en contenedor del <nav> fijo de celular, que quedaría encerrado
   en los 72px del header en vez de ocupar la pantalla. */
header.site { position: sticky; top: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
header.site::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
header.site.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--marca-700); color: var(--acento); display: grid; place-items: center; flex-shrink: 0; }
.logo-mark svg { width: 22px; height: 22px; }
.logo > span { white-space: nowrap; }
.logo small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--marca-700); margin-top: 4px; }
.on-dark .logo, footer .logo { color: #fff; }
.on-dark .logo small, footer .logo small { color: var(--acento); }
nav.site-nav { display: flex; align-items: center; gap: 28px; }
nav.site-nav > a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 0; position: relative; }
nav.site-nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
nav.site-nav > a:hover::after, nav.site-nav > a.active::after { transform: scaleX(1); }
nav.site-nav > a.active { color: var(--ink); }
.nav-mobile-ctas { display: none; }
.header-ctas { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  nav.site-nav { position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 99; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px; overflow: auto; transform: translateX(100%); transition: transform var(--t); }
  body.nav-open nav.site-nav { transform: none; }
  nav.site-nav > a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  nav.site-nav > a::after { display: none; }
  .nav-mobile-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  .nav-mobile-ctas .btn { width: 100%; }
  .header-ctas .btn-hide-mobile { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Se traba en html, no en body: con body el header sticky salta (ver memoria "Trabar el scroll rompe el sticky"). */
  html:has(> body.nav-open) { overflow: hidden; }
}
@media (max-width: 560px) {
  .demo-ribbon { font-size: 12px; padding: 7px 12px; }
  .header-inner { padding-inline: 16px; gap: 12px; }
  .logo { font-size: 19px; }
  /* A 375px no entran logo + "Ver el stock" + hamburguesa (medido: 410px de
     ancho de scroll). El CTA ya está dentro del menú de celular. */
  .header-ctas .btn-primary { display: none; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: var(--pill); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t), border-color var(--t); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--marca-700); color: #fff; }
.btn-primary:hover { background: var(--marca-600); box-shadow: 0 10px 24px color-mix(in srgb, var(--marca-700) 28%, transparent); }
.btn-acento { background: var(--acento); color: var(--acento-ink); }
.btn-acento:hover { background: var(--acento-200); box-shadow: 0 10px 24px color-mix(in srgb, var(--acento) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.on-dark .btn-ghost, .section-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.on-dark .btn-ghost:hover, .section-dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-whatsapp { background: var(--wa); color: var(--wa-ink); }
.btn-whatsapp:hover { background: #1FC65B; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--marca-700); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.section-dark .link-arrow { color: var(--acento); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.badge-nuevo { background: var(--acento); color: var(--acento-ink); }
.badge-vendido { background: var(--rojo); color: #fff; }
.badge-unica { background: var(--marca-900); color: var(--acento); }
.badge-outline { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip svg { width: 15px; height: 15px; color: var(--marca-700); }
.chip-pendiente { border-style: dashed; border-color: var(--line-strong); color: var(--muted); font-style: italic; }

/* ---------- Tarjeta de prenda (home y catálogo) ----------
   Cada prenda es única: talle único, una sola unidad. La tarjeta lo dice
   arriba de todo, porque es la pregunta #1 de quien mira ("¿es mi talle?"). */
.prenda-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.prenda-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.prenda-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.prenda-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.prenda-card:hover .prenda-media img { transform: scale(1.04); }
.prenda-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.prenda-talle { position: absolute; top: 12px; right: 12px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--pill); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.prenda-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prenda-marca { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--marca-700); }
.prenda-nombre { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); }
.prenda-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.prenda-meta span { display: inline-flex; align-items: center; gap: 4px; }
.prenda-meta span + span::before { content: '\00b7'; margin-right: 4px; color: var(--line-strong); }
.prenda-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.prenda-precio { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.prenda-precio small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.prenda-card.vendida .prenda-media img { filter: grayscale(1); opacity: .55; }
.prenda-card.vendida .prenda-precio { text-decoration: line-through; color: var(--muted); }
.prenda-card.vendida .btn { pointer-events: none; opacity: .45; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: border-color var(--t), box-shadow var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marca-700); box-shadow: 0 0 0 4px var(--marca-100); }
.field textarea { min-height: 110px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rojo); }
.field .error { display: none; font-size: 13px; color: var(--rojo); font-weight: 600; }
.field.invalid .error { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--marca-700); flex-shrink: 0; }
.form-note { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Marquee (cinta de stock) ---------- */
.marquee { overflow: hidden; background: var(--acento); color: var(--acento-ink); border-block: 1px solid color-mix(in srgb, var(--acento-ink) 15%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.marquee-track span::after { content: '\2022'; opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
footer.site { background: var(--marca-900); color: var(--on-dark); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--acento); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-2); }
.footer-bottom a { color: inherit; }
.footer-legales li { color: var(--on-dark-2); }
.footer-trazo { margin-top: 36px; padding: 18px 22px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.footer-trazo p { margin: 0; color: var(--on-dark); font-size: 14.5px; }
.footer-trazo strong { color: #fff; }
.footer-trazo ul { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-trazo a { color: #fff; text-underline-offset: 3px; }
.footer-trazo a:hover { color: var(--acento); }
.footer-legal-note { font-size: 12.5px; color: var(--on-dark-2); margin-top: 10px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: #fff; transition: background var(--t), border-color var(--t); }
.socials a:hover { background: var(--acento); border-color: var(--acento); color: var(--acento-ink); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } footer.site { padding-top: 48px; } }

/* ---------- Bloque "dato pendiente" (demo) ----------
   Horario y medios de pago están en los destacados del perfil, que no se
   pueden leer sin iniciar sesión. Se muestran como espacio a completar, no
   como dato inventado. */
.pendiente { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #FFF6D6; color: #6B4F00; font-size: .92em; font-style: italic; border: 1px dashed #D9B84A; }

/* ---------- Responsive general ---------- */
@media (max-width: 720px) {
  .section { padding-block: 56px; }
  .section-tight { padding-block: 40px; }
  .container { --gutter: 16px; }
  .section-head { margin-bottom: 28px; }
}

/* ---------- Talles de cada prenda (catálogo y home) ----------
   Ropa nueva: cada modelo viene en varios talles. La tarjeta lista los que
   hay en stock y marca con .es-filtro el elegido en el filtro del catálogo. */
.prenda-talles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.prenda-talles li { min-width: 30px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center; }
.prenda-talles li.es-filtro { background: var(--marca-700); border-color: var(--marca-700); color: #fff; }
/* Cinco talles (S a XXL) tienen que entrar en una línea en media pantalla. */
@media (max-width: 420px) {
  .prenda-talles { gap: 4px; }
  .prenda-talles li { min-width: 24px; padding: 2px 4px; font-size: 12px; }
}

/* =====================================================================
   v2 · tienda online (29/09, 22:10). Esqueleto propio, distinto de la
   demo de la que salió la carpeta: tipografía Archivo + Hanken Grotesk,
   esquinas rectas, header con logo al centro y carrito, tarjeta .pcard
   de e-commerce y footer claro.
   ===================================================================== */
:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --header-h: 68px;
}
h1, h2 { letter-spacing: -.035em; }
.btn { border-radius: var(--r); }
.eyebrow { letter-spacing: .14em; }

/* ---------- Header: menú a la izquierda, logo al centro, carrito a la derecha ---------- */
header.site::before { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
header.site { border-bottom-color: var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.header-inner > .nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
.header-inner > nav.site-nav { grid-column: 1; grid-row: 1; justify-self: start; gap: 24px; }
.header-inner > .logo { grid-column: 2; grid-row: 1; justify-self: center; }
.header-inner > .header-ctas { grid-column: 3; grid-row: 1; justify-self: end; gap: 4px; }
nav.site-nav > a { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
nav.site-nav > a::after { background: var(--marca-700); height: 2px; }
.logo { font-size: 21px; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: var(--r); }
.logo-mark svg { width: 19px; height: 19px; }
.logo small { font-size: 10.5px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background var(--t); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle { border-color: transparent; background: transparent; }
/* Con "Inicio" en la barra (pedido, 30/09) los cuatro links no
   entraban a la izquierda del logo entre 901 y ~1040 px, y lo corrían del
   centro (61 px a 901). En ese tramo, menos aire entre links. */
@media (min-width: 901px) and (max-width: 1060px) {
  .header-inner > nav.site-nav { gap: 12px; }
  nav.site-nav > a { letter-spacing: .02em; }
}
@media (max-width: 900px) {
  /* El menú de celular es fixed: justify-self:start lo achicaría a su contenido
     (medido: 267px de ancho), y el translateX(100%) lo dejaba asomado. */
  .header-inner > nav.site-nav { justify-self: stretch; transform: translateX(-100%); }
  body.nav-open .header-inner > nav.site-nav { transform: none; }
  nav.site-nav > a { font-size: 18px; letter-spacing: .02em; text-transform: none; }
}
@media (max-width: 560px) {
  .logo small { display: none; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
}

/* ---------- Tarjeta de producto .pcard y grilla .pgrid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.pcard { position: relative; min-width: 0; }
.pcard-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.pcard-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard-link:hover .pcard-media img { transform: scale(1.04); }
.pcard-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pcard-body { display: grid; gap: 3px; }
.pcard-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h3.pcard-nombre { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.pcard-link:hover .pcard-nombre { text-decoration: underline; text-underline-offset: 3px; }
.pcard-precio { font-family: var(--font-display); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.pcard-talles { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.pcard-talles li { min-width: 26px; padding: 1px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-align: center; }
.pcard-talles li.es-filtro { background: var(--marca-700); border-color: var(--marca-700); color: #fff; }
@media (max-width: 420px) {
  h3.pcard-nombre { font-size: 14px; }
  .pcard-precio { font-size: 15.5px; }
  .pcard-talles li { min-width: 22px; padding: 1px 4px; font-size: 11px; }
}

/* ---------- Footer claro ---------- */
footer.site { background: var(--surface-2); color: var(--ink-2); border-top: 1px solid var(--line); padding: 56px 0 24px; }
footer .logo { color: var(--ink); }
footer .logo small { color: var(--marca-700); }
.footer-col h4 { color: var(--ink); font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--marca-700); }
.footer-legales li, .footer-legal-note { color: var(--muted); }
.footer-pagos { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.footer-pagos > span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.footer-pagos ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-pagos li { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.footer-trazo { border-color: var(--line); background: var(--surface); }
.footer-trazo p { color: var(--ink-2); }
.footer-trazo strong { color: var(--ink); }
.footer-trazo a { color: var(--marca-700); }
.footer-trazo a:hover { color: var(--ink); }
.footer-bottom { border-top-color: var(--line); color: var(--muted); }
/* El menú de escritorio lleva 3 links: con 4, entre 900 y 1200 px se partían en dos renglones contra el logo. */
nav.site-nav > a { white-space: nowrap; }
@media (min-width: 901px) { nav.site-nav > a.solo-movil { display: none; } }

/* ---------- Carrito flotante (29/09, pedido) ----------
   Botón circular fijo abajo a la derecha, con el carrito de supermercado y un
   globito tipo notificación con la cantidad. Va sobre el contenido y la barra
   de la ficha (90), y debajo del menú del celular (99), el cajón del carrito
   (110/120) y el panel de filtros (125/130). */
.carrito-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; width: 62px; height: 62px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--marca-700); color: #fff; cursor: pointer; box-shadow: 0 10px 28px color-mix(in srgb, var(--marca-900) 38%, transparent), 0 2px 6px rgba(0, 0, 0, .18); transition: transform var(--t), background var(--t), bottom var(--t); }
.carrito-fab:hover { background: var(--marca-600); transform: translateY(-2px); }
.carrito-fab:focus-visible { outline: 3px solid var(--marca-900); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.carrito-fab svg { width: 30px; height: 30px; margin: 2px 2px 0 0; }
.carrito-fab .carrito-n { position: absolute; top: -3px; right: -3px; min-width: 25px; height: 25px; padding: 0 6px; border: 2.5px solid var(--surface); border-radius: 13px; background: var(--rojo); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
/* Salta cuando suma una prenda (demo.js agrega .bump). */
.carrito-fab.bump { animation: carrito-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.carrito-fab.bump .carrito-n { animation: carrito-globo .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes carrito-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes carrito-globo { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* En el checkout ya se está comprando: no hace falta. */
html[data-pagina="checkout"] .carrito-fab { display: none; }
/* En la ficha del celular, cuando aparece la barra fija de "Agregar al carrito", sube por encima. */
html:has(#fichaBarra:not([hidden])) .carrito-fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
/* Que el botón no tape la última línea del pie. */
footer.site { padding-bottom: 96px; }
@media (max-width: 560px) { .carrito-fab { width: 58px; height: 58px; } .carrito-fab svg { width: 28px; height: 28px; } }

/* =====================================================================
   v3 · "marca de ropa" (11/11/2026). Más cerca de una marca actual que de
   una plantilla: tipografía de títulos con serif (Fraunces), paleta en
   negro cálido y arena (mujer la cambia en tema.css), fotos protagonistas,
   botones rectos y sobrios, transiciones cortas. Todo con tokens.
   ===================================================================== */
:root { --t: 180ms cubic-bezier(.2, .7, .2, 1); --header-h: 64px; }
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; font-variation-settings: 'opsz' 96; }
h1 { line-height: 1.02; }
h2 { line-height: 1.08; }
h4 { font-family: var(--font-body); }
em { font-style: italic; }
::selection { background: var(--acento); color: var(--acento-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--surface); border-radius: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--marca-900); }

/* Etiqueta chica arriba de los títulos */
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--ink-2); gap: 10px; }
.eyebrow::before { width: 20px; height: 1px; border-radius: 0; background: currentColor; }
.on-dark .eyebrow, .section-dark .eyebrow { color: var(--on-dark); }

/* ---------- Botones ---------- */
.btn { border-radius: var(--r-sm); font-weight: 600; font-size: 14.5px; letter-spacing: .01em; padding: 13px 22px; min-height: 46px; transition: background var(--t), color var(--t), border-color var(--t), transform 120ms ease, box-shadow var(--t); }
.btn:hover { transform: none; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 15px 28px; min-height: 52px; font-size: 15px; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 13.5px; }
.btn-primary { background: var(--marca-700); color: #fff; }
.btn-primary:hover { background: var(--marca-600); box-shadow: none; }
.btn-primary:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.btn-claro { background: #fff; color: #161512; }
.btn-claro:hover { background: var(--acento-200); }
.btn-acento { background: var(--acento); color: var(--acento-ink); }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-whatsapp { background: var(--wa); color: var(--wa-ink); }
.btn-whatsapp:hover { background: #1FC65B; box-shadow: none; }
.link-arrow { color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; transition: text-decoration-color var(--t); }
.link-arrow:hover { text-decoration-color: var(--ink); }

/* ---------- Cinta de demo ---------- */
.demo-ribbon { justify-content: space-between; gap: 6px 18px; padding: 8px 24px; font-size: 12.5px; background: var(--ink); color: var(--on-dark); }
.ribbon-txt { margin: 0; }
.demo-ribbon strong { color: #fff; font-weight: 700; }
.ribbon-acciones { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.demo-ribbon .ribbon-link { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.demo-ribbon .ribbon-link:hover { color: #fff; text-decoration-color: #fff; }
.ribbon-guia { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 4px 10px; border-radius: var(--pill); background: var(--acento); color: var(--acento-ink); font-size: 12px; font-weight: 700; }
.ribbon-guia::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: guia-punto 1.8s ease-in-out infinite; }
.ribbon-guia:hover { background: #fff; }
@keyframes guia-punto { 50% { opacity: .25; } }
@media (max-width: 760px) {
  .demo-ribbon { justify-content: center; padding: 7px 12px; text-align: center; }
  .ribbon-largo { display: none; }
}
@media (max-width: 420px) {
  .demo-ribbon { gap: 4px 10px; }
  .ribbon-acciones { gap: 4px 12px; }
}

/* ---------- Header y logo ---------- */
header.site::before { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
header.site.scrolled { box-shadow: 0 1px 0 var(--line); }
.logo { flex-direction: column; align-items: center; gap: 5px; font-family: var(--font-body); }
.logo-txt { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; color: var(--ink); }
.logo small { margin: 0; font-size: 9.5px; font-weight: 600; letter-spacing: .26em; color: var(--muted); }
footer .logo small { color: var(--muted); }
.footer-brand .logo { align-items: flex-start; }
nav.site-nav > a { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2); }
nav.site-nav > a:hover, nav.site-nav > a.active { color: var(--ink); }
nav.site-nav > a::after { height: 1px; background: var(--ink); bottom: 2px; }
.icon-btn:hover { background: var(--surface-2); }
@media (max-width: 900px) {
  nav.site-nav > a { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.01em; text-transform: none; color: var(--ink); padding: 16px 0; }
}
@media (max-width: 560px) {
  .logo small { display: block; font-size: 8.5px; }
  .logo-txt { font-size: 13px; letter-spacing: .28em; margin-right: -.28em; }
}

/* ---------- Tarjeta de producto ---------- */
.pgrid { gap: 40px 20px; }
@media (max-width: 720px) { .pgrid { gap: 28px 12px; } }
.pcard-link { gap: 12px; }
.pcard-media { border-radius: 2px; background: var(--surface-2); }
.pcard-media img { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.pcard-link:hover .pcard-media img { transform: scale(1.035); }
.pcard-link:active .pcard-media img { transform: scale(1.01); }
.pcard-badge { top: 10px; left: 10px; padding: 5px 8px; border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.pcard-badge.es-pocas { background: var(--acento); color: var(--acento-ink); }
.pcard-badge.es-agotado { background: var(--ink); color: #fff; }
.pcard-body { gap: 2px; }
.pcard-cat { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
h3.pcard-nombre { font-size: 15px; font-weight: 500; }
.pcard-link:hover .pcard-nombre { text-decoration: none; }
.pcard-precio { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.pcard-talles { gap: 2px 10px; margin-top: 6px; }
.pcard-talles li { min-width: 0; padding: 0; border: 0; border-radius: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.pcard-talles li.es-filtro { background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pcard-talles li.agotado { font-style: italic; }
.pcard-sinfoto { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.pcard[hidden] { display: none; }
@media (max-width: 420px) {
  h3.pcard-nombre { font-size: 14px; }
  .pcard-precio { font-size: 14.5px; }
  .pcard-talles li { padding: 0; font-size: 11.5px; }
}

/* ---------- Formularios ---------- */
.field input, .field select, .field textarea { border: 1px solid var(--line-strong); border-radius: var(--r-sm); min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--marca-100); }
.consent input { accent-color: var(--marca-700); }

/* ---------- Footer ---------- */
footer.site { background: var(--surface-2); }
.footer-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; }
.footer-trazo { border: 1px dashed var(--line-strong); border-radius: var(--r); }
.footer-trazo a { color: var(--ink); }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-legales { flex-direction: row !important; flex-wrap: wrap; gap: 6px 14px !important; }
}

/* ---------- Carrito flotante ---------- */
.carrito-fab { width: 58px; height: 58px; background: var(--marca-700); box-shadow: 0 10px 26px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .14); }
.carrito-fab:hover { background: var(--marca-600); }
.carrito-fab svg { width: 25px; height: 25px; margin: 0 0 2px; }
.carrito-fab .carrito-n { background: var(--rojo); }
@media (max-width: 560px) { .carrito-fab { width: 54px; height: 54px; } .carrito-fab svg { width: 24px; height: 24px; } }

/* ---------- Etiqueta de "esto es de la demo" ----------
   Lo que le habla al dueño de un local (no al cliente de la tienda) lleva
   esta etiqueta, con el color de la cinta de arriba. */
.demo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--pill); background: var(--ink); color: #fff; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }

/* ---------- Guía de la demo (diálogo) ---------- */
dialog.guia { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.guia::backdrop { background: rgba(14, 13, 11, .55); }
dialog.guia[open] { animation: dlg-entra .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes dlg-entra { from { opacity: 0; transform: translateY(12px); } }
.guia-cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 0; }
.guia-pre { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.guia h2 { font-size: 26px; }
.guia-cerrar { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 24px; line-height: 1; }
.guia-cerrar:hover { background: var(--marca-100); }
.guia-intro { padding: 10px 22px 0; color: var(--ink-2); font-size: 15px; }
.guia-progreso { margin: 18px 22px 0; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.guia-progreso span { display: block; height: 100%; background: var(--marca-700); transition: width .4s ease; }
.guia-cuenta { padding: 6px 22px 0; font-size: 12.5px; color: var(--muted); }
.guia-pasos { list-style: none; margin: 10px 0 0; padding: 0 22px; display: grid; }
.guia-pasos li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.guia-n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.guia-pasos li.hecho .guia-n { background: var(--marca-700); border-color: var(--marca-700); color: #fff; }
.guia-pasos h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.guia-pasos li.hecho h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.guia-pasos p { margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.guia-ir { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.guia-pie { margin: 6px 22px 22px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.guia-pie a { color: var(--ink); font-weight: 700; }

/* ---------- Avisame cuando entre (ficha y catálogo) ---------- */
.avisame { display: grid; gap: 12px; }
.avisame-tit { font-size: 22px; }
.avisame-sub { font-size: 14.5px; color: var(--ink-2); margin-top: -4px; }
.avisame-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avisame-campos .field:first-child { grid-column: 1 / -1; }
.avisame-legal { font-size: 12.5px; color: var(--muted); }
.avisame-ok { display: grid; gap: 10px; justify-items: start; }
.avisame-ok:focus { outline: none; }
.avisame-ok-tit { font-family: var(--font-display); font-size: 21px; line-height: 1.2; }
.avisame-ok-demo { font-size: 14px; color: var(--ink-2); padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.avisame-ok-demo span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 420px) { .avisame-campos { grid-template-columns: 1fr; } }
