/* PYMECARD · base compartida de los modelos 21 a 50 (clases k-*).
   Cada modelo define sus variables --k-* y su propio estilo encima. */
.k { box-sizing: border-box; width: 100%; max-width: var(--k-max, 30rem); margin: 0 auto; color: var(--k-ink, #111); font-family: var(--pmc-font); overflow-wrap: break-word; }
.k *, .k *::before, .k *::after { box-sizing: border-box; }
.k-body { display: flex; flex-direction: column; gap: var(--k-gap, 1rem); padding: var(--k-body-pad, 1.25rem 1.1rem 1.5rem); }
.k-name { margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.k-tagline { margin: 0; }
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .6rem 1rem; border: 0; border-radius: var(--k-btn-r, .9rem); font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.k-btn[hidden] { display: none; }
.k-btn .pmc-icon { width: 20px; height: 20px; flex: none; }
.k-actions { display: flex; flex-direction: column; gap: .65rem; }
.k-main { width: 100%; min-height: 3.6rem; font-size: 1.05rem; background: var(--k-main-bg, var(--pmc-primary)); color: var(--k-main-ink, var(--pmc-on-primary)); }
.k-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .65rem; }
.k-q { background: var(--k-q-bg, transparent); color: var(--k-q-ink, inherit); border: var(--k-q-border, 1.5px solid currentColor); }
.k-sec { background: var(--k-panel, transparent); color: var(--k-panel-ink, inherit); border: var(--k-panel-border, 0); border-radius: var(--k-radius, 0); padding: var(--k-pad, 0); box-shadow: var(--k-panel-shadow, none); }
.k-kicker { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--k-accent, inherit); }
.k-h2 { margin: 0 0 .7rem; font-family: var(--k-h, var(--pmc-display)); font-weight: var(--k-h2-w, 700); font-size: var(--k-h2-s, 1.3rem); line-height: 1.15; overflow-wrap: anywhere; }
.k-h3 { margin: 1rem 0 .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--k-accent, inherit); }
.k-text p { margin: 0 0 .7rem; line-height: 1.6; }
.k-text p:last-child { margin-bottom: 0; }
.k-list { list-style: none; margin: 0; padding: 0; }
.k-item { display: flex; align-items: baseline; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--k-line, rgba(0,0,0,.12)); }
.k-item:last-child { border-bottom: 0; padding-bottom: 0; }
.k-item-body { flex: 1; min-width: 0; }
.k-item-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.k-item-desc { margin: .15rem 0 0; font-size: .88rem; line-height: 1.4; color: var(--k-muted, inherit); white-space: pre-line; }
.k-price { margin: 0; font-weight: 700; white-space: nowrap; color: var(--k-price, inherit); }
.k-num { flex: none; min-width: 2rem; font-weight: 800; color: var(--k-accent, inherit); }
.k-ask { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; align-self: center; border-radius: 50%; color: var(--k-accent, inherit); border: 1px solid var(--k-line, rgba(0,0,0,.15)); }
.k-ask .pmc-icon { width: 18px; height: 18px; }
.k-items.is-tiles .k-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.k-items.is-tiles .k-item { flex-direction: column; align-items: stretch; gap: .3rem; padding: .85rem; border: var(--k-card-border, 0); border-radius: var(--k-card-r, .9rem); background: var(--k-card, rgba(255,255,255,.7)); }
.k-items.is-tiles .k-item:last-child { padding-bottom: .85rem; }
.k-items.is-cards .k-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.k-items.is-cards .k-item:last-child { padding-bottom: .6rem; }
.k-items.is-cards .k-item { flex-direction: column; align-items: stretch; gap: .35rem; padding: .6rem; border: var(--k-card-border, 0); border-radius: var(--k-card-r, .9rem); background: var(--k-card, rgba(255,255,255,.7)); }
.k-items.is-cards .k-item-img { aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--k-card-r, .9rem) - .25rem); }
.k-items.is-cards .k-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-items.is-cards .k-item-img.is-empty { display: grid; place-items: center; background: var(--k-ph, rgba(0,0,0,.06)); }
.k-items.is-cards .k-item-img.is-empty span { font-size: 2rem; font-weight: 800; opacity: .45; }
.k-items.is-cards .k-ask { align-self: flex-start; }
.k-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--k-gal-cols, 3), minmax(0, 1fr)); gap: var(--k-gal-gap, .5rem); }
.k-gallery a { display: block; aspect-ratio: var(--k-gal-ratio, 1); overflow: hidden; border-radius: var(--k-photo-r, .6rem); }
.k-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-hours { width: 100%; border-collapse: collapse; }
.k-hours th, .k-hours td { padding: .45rem 0; border-bottom: 1px solid var(--k-line, rgba(0,0,0,.12)); vertical-align: top; }
.k-hours th { text-align: left; font-weight: 500; }
.k-hours td { text-align: right; font-weight: 700; padding-left: 1rem; }
.k-hours tr:last-child th, .k-hours tr:last-child td { border-bottom: 0; }
.k-hours-note, .k-addr { margin: .75rem 0 0; line-height: 1.45; }
.k-addr a { color: inherit; }
.k-contact { list-style: none; margin: 0; padding: 0; }
.k-contact a { display: flex; align-items: center; gap: .65rem; min-height: 2.9rem; padding: .35rem 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.k-contact .pmc-icon { flex: none; width: 20px; height: 20px; color: var(--k-accent, currentColor); }
.k-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.k-tags li { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--k-line, rgba(0,0,0,.2)); font-size: .9rem; }
.k-share { display: flex; align-items: center; gap: 1rem; background: var(--k-panel, transparent); color: var(--k-panel-ink, inherit); border: var(--k-panel-border, 0); border-radius: var(--k-radius, 0); padding: var(--k-pad, 0); box-shadow: var(--k-panel-shadow, none); }
.k-qr { flex: none; width: 6.5rem; padding: .3rem; background: #fff; border-radius: var(--k-qr-r, .6rem); line-height: 0; }
.k-qr svg { width: 100%; height: auto; display: block; }
.k-save { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.k-sbtn { width: 100%; min-height: 2.9rem; font-size: .92rem; background: var(--k-q-bg, transparent); color: var(--k-q-ink, inherit); border: var(--k-q-border, 1.5px solid currentColor); }
.k-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.k-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem .95rem; border-radius: var(--k-btn-r, 999px); border: 1px solid var(--k-line, rgba(0,0,0,.2)); color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; }
.k-foot { text-align: center; padding: 0 1rem 1.5rem; font-size: .8rem; }
.k-foot a { color: var(--k-muted, inherit); }
.k-open { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #dcfce7; color: #14532d; }
.k-open::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.k-open.is-closed { background: #fee2e2; color: #991b1b; }
.k-logo { flex: none; display: grid; place-items: center; width: var(--k-logo, 4.5rem); height: var(--k-logo, 4.5rem); overflow: hidden; border-radius: var(--k-logo-r, 50%); background: var(--k-logo-bg, var(--pmc-primary)); color: var(--k-logo-ink, var(--pmc-on-primary)); font-weight: 800; font-size: 1.5rem; }
.k-logo:has(img) { background: #fff; }
.k-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.k-cover { overflow: hidden; }
.k-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k a:focus-visible, .k button:focus-visible { outline: 3px solid var(--k-focus, var(--pmc-primary-ink, currentColor)); outline-offset: 2px; }
.k .pmc-cform { width: 100%; margin: 0; }
@media (min-width: 40rem) { .k { padding-top: 1.5rem; } }

/* Logo o foto del cliente en modelos cuyo encabezado es un dibujo (lo agrega CardRenderer). */
.k-badge { display: inline-block; vertical-align: top; flex: none; width: 4.4rem; height: 4.4rem; margin: 0 0 .5rem; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, 0 8px 18px -10px rgba(0, 0, 0, .55); transform: none; }
.k-badge-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-badge.is-logo .k-badge-img { object-fit: contain; padding: .35rem; box-sizing: border-box; }
