/* SellSuite · Tienda pública (catálogo, producto y pedido) con la identidad de cada empresa.
   --accent llega desde el color del CRM de la empresa (Mi empresa → Colores del CRM). */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #142033;
  --muted: #5d6879;
  --faint: #8b95a5;
  --line: #e3e7ee;
  --canvas: #f5f6f9;
  --surface: #ffffff;
  --green: #127a4a;
  --green-soft: #e6f5ec;
  --amber: #9a6510;
  --amber-soft: #fbf3e4;
  --red: #b4362c;
  --red-soft: #fcefed;
  --accent: #0248e6;
  --accent-deep: #0139b8;
  --accent-soft: #e6edfd;
  --accent-ink: #ffffff;
}
* {
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
h1,
h2 {
  margin: 0;
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
p {
  margin: 0;
}
svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Barra superior y pie ---------- */
.store-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 max(20px, calc((100% - 1160px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.store-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.store-brand:hover {
  text-decoration: none;
}
.store-brand img {
  /* Caja óptica: un isotipo cuadrado llega a 34 px de alto y un logotipo ancho (como «nuuma») se limita
     por el ancho, así ningún logo pesa más que el resto de la barra. */
  display: block;
  width: auto;
  height: auto;
  max-width: 124px;
  max-height: 34px;
  object-fit: contain;
}
.store-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
}
.store-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.store-secure svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}
main {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}
.store-footer {
  display: grid;
  gap: 10px;
  padding: 28px max(20px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.store-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.store-footer-name {
  color: var(--ink);
  font-weight: 600;
}
.store-footer nav {
  display: flex;
  gap: 20px;
}
.store-footer a {
  color: var(--muted);
}
.store-powered {
  color: var(--muted);
}

/* ---------- Botones y formularios ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.14);
  transition:
    background-color 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--accent-deep);
  color: var(--accent-ink);
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}
.button-block {
  width: 100%;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--faint);
}
input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d6dbe4;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 400;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #a9b1bd;
  font-weight: 400;
  opacity: 1;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
.quiet {
  font-size: 13px;
  color: var(--faint);
}
.notice {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 14.5px;
  line-height: 1.6;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Catálogo: búsqueda, tipos, orden y la grilla ---------- */
.store-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end;
  gap: 16px 40px;
  margin-bottom: 24px;
}
.store-head h1 {
  font-size: clamp(30px, 3.4vw, 40px);
}
.store-head p {
  max-width: 56ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.store-search {
  display: flex;
  gap: 8px;
}
.store-search label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.store-search label:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.store-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.store-search .button {
  height: 44px;
  min-height: 0;
  padding: 0 18px;
}
.store-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.store-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s;
}
.store-chip span {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.store-chip:hover {
  border-color: #c3cad6;
}
.store-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.store-chip.is-active span {
  color: rgba(255, 255, 255, 0.72);
}
.store-sort {
  position: relative;
}
.store-sort summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
  cursor: pointer;
}
.store-sort summary::-webkit-details-marker {
  display: none;
}
.store-sort summary strong {
  color: var(--ink);
  font-weight: 600;
}
.store-sort summary:hover {
  background: var(--surface);
}
.store-sort summary svg {
  width: 16px;
  height: 16px;
}
.store-sort-menu {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 200px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px -20px rgba(20, 32, 51, 0.35);
}
.store-sort-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
}
.store-sort-menu a:hover {
  background: var(--canvas);
}
.store-sort-menu a.is-active {
  font-weight: 600;
}
.store-sort-menu svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.store-count {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s;
}
.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.product-card:hover .product-go svg {
  transform: translateX(2px);
}
.product-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--accent-soft);
}
.product-media.is-empty,
.product-cover.is-empty {
  display: grid;
  place-items: center;
  color: var(--accent);
}
.is-empty.is-servicio {
  background: var(--green-soft);
  color: var(--green);
}
.is-empty.is-digital,
.is-empty.is-curso {
  background: var(--amber-soft);
  color: var(--amber);
}
.product-media.is-empty svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}
.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.product-kind {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.product-kind svg {
  width: 15px;
  height: 15px;
}
.product-info h2 {
  font-size: 18px;
  line-height: 1.4;
}
.product-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-foot strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.product-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.product-go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.store-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed #cfd5df;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.store-empty h1,
.store-empty h2 {
  font-size: 24px;
  color: var(--ink);
}
.store-empty .button {
  margin-top: 8px;
}
.button-ghost {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}

/* ---------- Producto ---------- */
.crumbs a,
.order-back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.crumbs a:hover,
.order-back a:hover {
  color: var(--ink);
  text-decoration: none;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: start;
  margin-top: 22px;
}
.product-main {
  display: grid;
  gap: 16px;
  align-content: start;
}
.product-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 8px;
}
.product-cover.is-empty {
  aspect-ratio: 16 / 7;
  background: var(--accent-soft);
}
.product-cover.is-empty svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.4;
}
.product-main h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.035em;
}
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.product-price strong {
  font-family: 'Geist', sans-serif;
  font-size: 36px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.product-price span {
  font-size: 14px;
  color: var(--muted);
}
.product-description {
  font-size: 16.5px;
  color: #3c4757;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 62ch;
}
.product-perks {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 18px 20px;
  list-style: none;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.product-perks li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}
.product-perks li > svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent);
}
.product-perks strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.checkout-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.checkout-card h2 {
  font-size: 24px;
}
.checkout-lead {
  margin-top: -8px;
  color: var(--muted);
  font-size: 14.5px;
}
.checkout-lead strong {
  color: var(--ink);
}
.checkout-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.checkout-trust svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}
.checkout-card .quiet {
  text-align: center;
}

/* ---------- Pedido ---------- */
.order-card {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.order-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.order-status svg {
  width: 16px;
  height: 16px;
}
.order-status.is-pending {
  background: var(--amber-soft);
  color: var(--amber);
}
.order-status.is-paid {
  background: var(--green-soft);
  color: var(--green);
}
.order-status.is-cancelled,
.order-status.is-refunded {
  background: var(--red-soft);
  color: var(--red);
}
.order-card h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}
.order-meta {
  color: var(--muted);
}
.order-totals {
  margin: 8px 0 0;
  padding: 6px 18px;
  border-radius: 16px;
  background: var(--canvas);
}
.order-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.order-totals div + div {
  border-top: 1px solid var(--line);
}
.order-totals dt {
  color: var(--muted);
}
.order-totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.order-totals .total dt {
  color: var(--ink);
  font-weight: 600;
}
.order-totals .total dd {
  font-family: 'Geist', sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.order-action {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}
.order-action h2 {
  font-size: 20px;
  margin-top: 6px;
}
.order-action form {
  margin: 0;
}
.order-foot {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.order-back {
  max-width: 620px;
  margin: 18px auto 0;
}

/* ---------- Sello de Mercado Pago ---------- */
.mp-seal {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 14px 13px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  text-align: center;
}
.mp-seal-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.mp-seal-text svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}
.mp-seal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mp-seal-brand b {
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2d3277;
}
.mp-seal .mp-mark {
  width: 34px;
  height: 34px;
  flex: none;
  fill: #00b1ea;
  stroke: none;
}
.order-action .mp-seal {
  margin-top: 10px;
}

/* ---------- Link de pago ----------
   A la izquierda, qué se compra (datos reales del link, la foto y cómo funciona). A la derecha, la tarjeta
   de pago como un ticket: el monto sobre el color de la empresa, una línea troquelada y el formulario. */
.paylink {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  grid-template-areas:
    'copy side'
    'media side'
    'how side';
  grid-template-rows: auto auto 1fr;
  column-gap: 56px;
  row-gap: 32px;
  max-width: 1060px;
  margin: 4px auto 0;
}
.paylink.is-bare {
  grid-template-areas:
    'copy side'
    'how side';
  grid-template-rows: auto 1fr;
}
.paylink-copy {
  grid-area: copy;
  display: grid;
  gap: 16px;
  max-width: 620px;
}
.paylink-copy h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.038em;
  line-height: 1.04;
}
.paylink-description {
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-line;
}
.paylink-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paylink-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.paylink-facts li:first-child {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.paylink-facts li.is-urgent {
  border-color: transparent;
  background: var(--amber-soft);
  color: var(--amber);
}
.paylink-facts svg {
  width: 15px;
  height: 15px;
}
.paylink-media {
  grid-area: media;
  min-width: 0;
}
.paylink-side {
  grid-area: side;
  min-width: 0;
}
.paylink-how {
  grid-area: how;
  align-self: start;
  padding-top: 4px;
}
.paylink-how h2 {
  margin-bottom: 18px;
  font-size: 18px;
  letter-spacing: -0.015em;
}
/* Tres pasos en línea, unidos por un trazo: es una secuencia real (datos → pago → entrega). */
.paylink-how ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.paylink-how li {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: start;
  counter-increment: paso;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.paylink-how li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.paylink-how li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 42px;
  right: -8px;
  border-top: 2px dotted color-mix(in srgb, var(--accent) 40%, var(--line));
}
.paylink-how strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
/* Ticket de pago */
.checkout-card.paylink-card {
  gap: 0;
  padding: 0;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 27, 45, 0.05),
    0 28px 56px -30px rgba(15, 27, 45, 0.32);
}
.paylink-stub {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 24px 26px 28px;
  border-radius: 17px 17px 0 0;
  background: var(--accent);
  color: var(--accent-ink);
}
/* Troquel: una línea punteada del color de fondo y dos muescas a los lados. */
.paylink-stub::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  border-top: 2px dashed var(--canvas);
}
.paylink-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px 26px 24px;
}
.paylink-form::before,
.paylink-form::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--canvas);
}
.paylink-form::before {
  left: -12px;
  clip-path: inset(0 0 0 50%);
}
.paylink-form::after {
  right: -12px;
  clip-path: inset(0 50% 0 0);
}
.paylink-to {
  font-size: 13.5px;
  opacity: 0.86;
}
.paylink-to strong {
  font-weight: 600;
  color: inherit;
}
.paylink-item {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.paylink-amount {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.paylink-amount strong {
  font-family: 'Geist', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.paylink-amount span {
  font-size: 13px;
  opacity: 0.82;
}
.paylink-field > span:first-child {
  font-size: 13.5px;
  font-weight: 550;
}
.paylink-input {
  position: relative;
  display: block;
}
.paylink-input svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--faint);
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.15s;
}
.paylink-input:focus-within svg {
  color: var(--accent);
}
.paylink-input input {
  padding-left: 44px;
}
.paylink-pay {
  gap: 9px;
  min-height: 54px;
  margin-top: 4px;
  font-size: 16.5px;
}
.paylink-pay svg {
  width: 17px;
  height: 17px;
}
.paylink-card .mp-seal {
  padding: 10px 14px 11px;
  background: var(--canvas);
}
.paylink-card.is-closed .paylink-form {
  justify-items: start;
}
.paylink-card.is-closed .paylink-form p {
  color: var(--muted);
}

/* ---------- Fotos de producto: nunca se recortan, sin fondo ni relleno ----------
   El recuadro toma la forma exacta de la foto (sin espacios arriba, abajo ni a los lados)
   y solo lleva un borde fino oscuro. */
.photo {
  margin: 0;
  background: none;
  line-height: 0;
}
.photo img {
  display: block;
}
/* Tarjetas del catálogo: todas con el recuadro del mismo alto. Una foto horizontal lo llena; una vertical
   o cuadrada (o la portada de un curso, cuya forma no se conoce) se muestra entera sobre un fondo neutro,
   para no cortar el producto. */
.photo.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.photo.product-media.is-portrait,
.photo.product-media.is-square,
.photo.product-media.is-fit {
  background: #f3f5f9;
}
.photo.product-media.is-portrait img,
.photo.product-media.is-square img,
.photo.product-media.is-fit img {
  object-fit: contain;
  padding: 12px;
}
.photo.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Página del producto y link de pago. */
.photo.product-cover,
.photo.paylink-cover {
  width: fit-content;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.28);
  border-radius: 16px;
}
.photo.product-cover img,
.photo.paylink-cover img {
  max-width: 100%;
  max-height: min(620px, 72vh);
  width: auto;
  height: auto;
}
.photo.paylink-cover {
  margin-inline: 0 auto;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow:
    0 1px 2px rgba(15, 27, 45, 0.06),
    0 24px 48px -28px rgba(15, 27, 45, 0.35);
}

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .checkout-card {
    position: static;
  }
  .paylink,
  .paylink.is-bare {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'copy' 'media' 'side' 'how';
    grid-template-rows: auto;
    row-gap: 28px;
  }
  .paylink.is-bare {
    grid-template-areas: 'copy' 'side' 'how';
  }
  .photo.paylink-cover {
    margin-inline: auto;
  }
  .photo.product-cover img,
  .photo.paylink-cover img {
    max-height: min(480px, 62vh);
  }
}
@media (max-width: 560px) {
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  main {
    padding: 28px 16px 56px;
  }
  .store-bar {
    height: 60px;
  }
  .store-secure {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
  .store-secure span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .store-head h1 {
    font-size: 28px;
  }
  .store-head p {
    font-size: 15px;
  }
  .store-search input {
    font-size: 16px;
  }
  .store-filters {
    align-items: flex-start;
  }
  .store-sort-menu {
    left: 0;
    right: auto;
  }
  .checkout-card,
  .order-card {
    padding: 22px;
    border-radius: 12px;
  }
  .checkout-card.paylink-card {
    padding: 0;
    border-radius: 16px;
  }
  .paylink-stub {
    padding: 20px 20px 24px;
    border-radius: 15px 15px 0 0;
  }
  .paylink-form {
    padding: 24px 20px 20px;
  }
  .paylink-amount strong {
    font-size: 40px;
  }
  .paylink-copy h1 {
    font-size: 32px;
  }
  .paylink-description {
    font-size: 16px;
  }
  .store-brand img {
    max-width: 112px;
    max-height: 30px;
  }
  /* Los pasos pasan a una línea vertical. */
  .paylink-how ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .paylink-how li {
    padding-left: 44px;
    min-height: 30px;
  }
  .paylink-how li::before {
    position: absolute;
    top: -2px;
    left: 0;
    margin: 0;
  }
  .paylink-how li:not(:last-child)::after {
    top: 34px;
    bottom: -16px;
    left: 14px;
    right: auto;
    border-top: 0;
    border-left: 2px dotted color-mix(in srgb, var(--accent) 40%, var(--line));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.nowrap {
  white-space: nowrap;
}
