/* Óptica — demo de Trazo Web Studio: tienda online + sistema del local.
   Negocio de ejemplo, no un local real..
   Nació como copia de Local de Ropa: la estructura de header, footer, botones
   y .pcard es la misma, con paleta, tipografía y forma propias de una óptica.
   Colores SOLO con estos tokens. */

:root {
  /* Paleta "Óptica": azul petróleo de cristal con antirreflejo, tinta de
     receta y un acento carey (el acetato marrón de los armazones clásicos).
     Neutros fríos, apenas azulados. */
  --marca-900: #0D1B2A;
  --marca-800: #14263A;
  --marca-700: #1D5C73;
  --marca-600: #174C60;
  --marca-100: #D5E7EE;
  --marca-50: #EAF3F6;
  --acento: #E3B27A;
  --acento-200: #F2D8B8;
  --acento-ink: #4E2B0C;
  --on-dark: #D6DEE5;
  --on-dark-2: #9DAAB6;
  --ink: #0F1720;
  --ink-2: #334150;
  --muted: #5B6875;
  --line: #DCE3E8;
  --line-strong: #8C99A5;
  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --surface-2: #E9EFF2;
  --ok: #1E7A4F;
  --ok-50: #E3F3EA;
  --alerta: #9A5B00;
  --alerta-50: #FFF1D9;
  --rojo: #B3261E;
  --rojo-50: #FBEAE8;
  --wa: #25D366;
  --wa-ink: #0B3D22;
  --wa-hover: #1FC65B;
  --blanco: #FFFFFF;
  --font-display: 'Familjen Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', '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: var(--wa-hover); 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; }

/* ---------- 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; } }
@media (max-width: 560px) { .field input, .field select, .field textarea { font-size: 16px; } }

/* ---------- 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: var(--alerta-50); color: var(--alerta); font-size: .92em; font-style: italic; border: 1px dashed var(--acento); }

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

/* =====================================================================
   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: 'Familjen Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --header-h: 68px;
}
h1, h2 { letter-spacing: -.035em; }
.btn { border-radius: var(--pill); }
.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 / 3; 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); }
@media (max-width: 420px) {
  h3.pcard-nombre { font-size: 14px; }
  .pcard-precio { font-size: 15.5px; }
}

/* ---------- 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 se suma un producto (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 · Óptica (30/09). Header con el logo a la izquierda y la barra de
   atajos legales arriba: el Botón de Arrepentimiento y el de Baja tienen
   que verse "a simple vista, en lugar destacado y en el primer acceso"
   (Disp. 954/2025, ver investigacion-rubros/opticas/ §5).
   ===================================================================== */
h1, h2, h3 { letter-spacing: -.02em; }
.eyebrow::before { background: var(--acento); }

/* ---------- Barra de atajos (seguimiento + botones legales) ---------- */
.barra-util { background: var(--marca-900); color: var(--on-dark); font-size: 12.5px; }
.barra-util-inner { max-width: var(--max); margin: 0 auto; padding: 6px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 18px; }
.barra-util a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 0; white-space: nowrap; }
.barra-util a:hover { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
.barra-util a svg { width: 14px; height: 14px; }
.barra-util .util-legal { color: var(--acento); }
@media (max-width: 560px) {
  .barra-util-inner { justify-content: center; padding-inline: 12px; gap: 0 14px; }
  .barra-util { font-size: 12px; }
}

/* ---------- Header: logo a la izquierda, menú, atajos a la derecha ---------- */
.header-inner { grid-template-columns: auto 1fr auto; }
.header-inner > .logo { grid-column: 1; justify-self: start; }
.header-inner > nav.site-nav { grid-column: 2; justify-self: center; gap: 26px; }
.header-inner > .header-ctas { grid-column: 3; }
.header-inner > .nav-toggle { display: none; }
nav.site-nav > a { font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
nav.site-nav > a.active { color: var(--ink); }
.logo { font-size: 22px; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--marca-700); color: #fff; }
.logo-mark svg { width: 24px; height: 24px; }
.logo small { color: var(--marca-700); letter-spacing: .1em; }
@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner > nav.site-nav { gap: 16px; }
  nav.site-nav > a { font-size: 14px; }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-inner > .nav-toggle { display: inline-flex; grid-column: 1; }
  .header-inner > .logo { grid-column: 2; justify-self: start; }
  .header-inner > nav.site-nav { grid-column: auto; justify-self: stretch; }
  nav.site-nav > a { font-size: 18px; color: var(--ink); }
}
@media (max-width: 560px) {
  .logo-mark { width: 32px; height: 32px; }
  .logo-mark svg { width: 20px; height: 20px; }
}

/* ---------- Tarjeta de producto: forma y calce en vez de talles ---------- */
.pcard-media { background: var(--marca-50); border-radius: var(--r); }
.pcard-badge { border-radius: var(--pill); background: var(--marca-900); letter-spacing: .08em; }
.pcard-badge.ultimas { background: var(--acento); color: var(--acento-ink); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pcard-meta span + span::before { content: '\00b7'; margin-right: 8px; color: var(--line-strong); }
.pcard-desde { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pcard-desde strong { color: var(--ink-2); font-weight: 700; }
/* Pasadas desde catalogo.css (30/09): la tarjeta se ve igual en el inicio. */
.pcard-desde { line-height: 1.35; }
.pcard-ficha { font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.pcard-alerta { font-size: 12px; line-height: 1.35; font-weight: 800; color: var(--rojo); }
.pcard-badge-sin { background: var(--surface); color: var(--rojo); box-shadow: inset 0 0 0 1px var(--rojo); }
.pcard.agotado .pcard-media img, .pcard.agotado .pcard-sinfoto { opacity: .6; }
.pcard-sinfoto { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r-sm); }
.pcard-sinfoto svg { width: 64px; height: 32px; color: var(--line-strong); }

/* ---------- Footer: datos obligatorios del proveedor ---------- */
.footer-datos { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; font-size: 13.5px; color: var(--ink-2); }
.footer-datos dt { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-datos dd { margin: 2px 0 0; }
.footer-horario { margin-top: 12px; font-size: 14px; }
.footer-horario li { display: flex; gap: 8px; }
.footer-horario b { font-weight: 700; color: var(--ink); }

/* ---------- Avisos de la demo (pago simulado, dato de ejemplo) ---------- */
.aviso-demo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--alerta-50); color: var(--alerta); border: 1px solid color-mix(in srgb, var(--acento) 60%, transparent); font-size: 14px; }
.aviso-demo strong { color: var(--acento-ink); }
.aviso-info { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--marca-50); color: var(--marca-800); border: 1px solid var(--marca-100); font-size: 14px; }

/* =====================================================================
   Pasada de pulido para mostrarla en público (nov 2026, Trazo).
   Va al final a propósito: ajusta lo de arriba sin reescribirlo.
   ===================================================================== */

/* ---- Cinta y barra de atajos más bajas en el celular ----
   Antes eran 160 px oscuros antes del header (3 renglones de cinta + 2 de
   atajos). Los botones legales siguen a la vista al entrar (Disp. 954/2025);
   "¿Ya están mis anteojos?" pasa al ícono del header. */
.header-seg { display: none; }
@media (max-width: 560px) {
  .demo-ribbon { flex-wrap: nowrap; gap: 10px; padding: 7px 12px; font-size: 12px; line-height: 1.3; }
  .demo-ribbon > span { min-width: 0; }
  .ribbon-extra { display: none; }
  .barra-util-inner { flex-wrap: nowrap; gap: 0 18px; padding-block: 0; }
  .barra-util a { min-height: 34px; }
  .barra-util .util-seguimiento { display: none; }
  .header-seg { display: inline-grid; }
  .header-ctas { gap: 0; }
}

/* ---- Estados de presión: el toque se nota en el celular ---- */
.btn:active, .icon-btn:active, .nav-toggle:active { transform: scale(.97); }
.btn { -webkit-tap-highlight-color: transparent; }
.pcard-link:active .pcard-media { transform: scale(.985); }
.pcard-media { transition: transform var(--t), box-shadow var(--t); }
@media (hover: hover) {
  .pcard-link:hover .pcard-media { box-shadow: 0 14px 30px color-mix(in srgb, var(--marca-900) 16%, transparent); }
}

/* ---- Productos sin foto: ilustración (OP.ilustracion), no un hueco ---- */
.ilustracion { display: block; width: 100%; height: 100%; }
.pcard-ilus { width: 100%; height: 100%; }
.pcard-link:hover .pcard-ilus .ilustracion { transform: scale(1.03); }
.pcard-ilus .ilustracion { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard.agotado .pcard-ilus { opacity: .6; }
.ficha-ilus { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.citem-foto .ilustracion { width: 100%; height: 100%; border-radius: inherit; }
