/*
 * [902] Estilos de tarjeta (FlqCards) - los 10 estilos del negocio para la
 * tarjeta digital (/nfc), Apple/Google Wallet, la tarjeta NFC fisica y la
 * imagen que se manda por WhatsApp. Un solo lugar: lo usan Mi Panel >
 * Tarjeta NFC, "Mi tarjeta", la pagina publica /nfc y el admin (archivos de
 * imprenta). Los colores salen de variables que calcula flq-card-styles.js
 * con contraste comprobado (--bg1, --on1, --on1b, --acc, --onacc, --lbl1).
 * Fuentes servidas desde Fluques (nunca de Google en vivo): asi las imagenes
 * generadas en el navegador las llevan incrustadas.
 */
@font-face { font-family: "flqc-outfit"; src: url("../fonts/outfit/outfit-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "flqc-cormorant"; src: url("../fonts/cormorant-garamond/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "flqc-cormorant"; src: url("../fonts/cormorant-garamond/cormorant-garamond-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "flqc-archivo"; src: url("../fonts/archivo/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "flqc-fredoka"; src: url("../fonts/fredoka/fredoka-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "flqc-fredoka"; src: url("../fonts/fredoka/fredoka-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "flqc-bricolage"; src: url("../fonts/bricolage-grotesque/bricolage-grotesque-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "flqc-bricolage"; src: url("../fonts/bricolage-grotesque/bricolage-grotesque-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "flqc-unbounded"; src: url("../fonts/unbounded/unbounded-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "flqc-unbounded"; src: url("../fonts/unbounded/unbounded-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "flqc-fraunces"; src: url("../fonts/fraunces/fraunces-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "flqc-syne"; src: url("../fonts/syne/syne-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "flqc-syne"; src: url("../fonts/syne/syne-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "flqc-dmserif"; src: url("../fonts/dm-serif-display/dm-serif-display-400.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "flqc-instrument"; src: url("../fonts/instrument-serif/instrument-serif-400.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "flqc-manrope"; src: url("../fonts/manrope/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "flqc-manrope"; src: url("../fonts/manrope/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "flqc-manrope"; src: url("../fonts/manrope/manrope-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

.flqc { --bg1: #223; --on1: #fff; --on1b: rgba(255,255,255,.8); --acc: #334; --onacc: #fff; --lbl1: #fff; --rad: 16px; --fd: "flqc-outfit"; --fb: "flqc-manrope"; font-family: var(--fb), system-ui, sans-serif; line-height: 1.4; -webkit-font-smoothing: antialiased; }
.flqc *, .flqc *::before, .flqc *::after { box-sizing: border-box; }
.flqc a { color: inherit; text-decoration: none; }
.flqc svg { display: block; }
.flqc .pat, .flqc .scrim { position: absolute; inset: 0; pointer-events: none; }
.flqc[data-p="bauhaus"] .cr-in { padding-right: 34%; }
.flqc[data-p="bauhaus"] .ap-strip .nm { right: 16%; }
.flqc[data-p="bauhaus"] .gw-hero .pat { background-position: center !important; background-size: auto 100% !important; background-repeat: repeat-x !important; }
.flqc .lg { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: .74rem; overflow: hidden; background: #fff; color: #16191c; }
.flqc .lg img { width: 100%; height: 100%; object-fit: contain; padding: 10%; box-sizing: border-box; }
.flqc .qrbox { background: #fff; border-radius: 10px; padding: 8px; width: 136px; margin: 14px auto 16px; position: relative; }
.flqc .qrbox img, .flqc .qrbox canvas { width: 120px; height: 120px; display: block; image-rendering: pixelated; }
.flqc .fld { min-width: 0; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--lbl1); }
.flqc .fld b { display: block; text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; color: var(--on1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- tarjeta digital (pantalla de celular / pagina /nfc) ---- */
.flqc .phone { width: 296px; max-width: 100%; border-radius: 42px; padding: 10px; background: #0e1012; box-shadow: 0 22px 44px rgba(0,0,0,.28); }
.flqc .screen { border-radius: 32px; overflow: hidden; background: #f5f6f7; height: 610px; position: relative; display: flex; flex-direction: column; }
.flqc.is-page .screen { border-radius: 0; height: auto; min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,.08); }
.flqc .d-head { position: relative; height: 170px; flex-shrink: 0; background-color: var(--bg1); }
.flqc .d-av { position: absolute; z-index: 3; width: 104px; height: 104px; left: 50%; top: 118px; transform: translateX(-50%); border-radius: 50%; border: 4px solid #fff; background: #fff center/cover no-repeat; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); overflow: hidden; }
/* Logo del negocio como foto: completo, nunca recortado (los logos suelen ser anchos). */
.flqc .d-av.is-logo { display: block; padding: 12px; }
.flqc .d-av.is-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flqc .d-av span { font-family: var(--fd), sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--acc); }
.flqc .d-av .badge { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: #fff center/contain no-repeat; }
.flqc .d-body { position: relative; z-index: 2; padding: 64px 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 0; }
.flqc .d-name { font-family: var(--fd), sans-serif; font-weight: 800; font-size: 1.45rem; line-height: 1.15; color: #16191c; overflow-wrap: anywhere; margin: 0; }
.flqc .d-role { font-size: .84rem; font-weight: 700; color: var(--acc); }
.flqc .d-biz { font-size: .8rem; color: #5d6268; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flqc .d-bio { font-size: .88rem; color: #4a4f55; line-height: 1.5; margin: 10px 0 0; overflow-wrap: anywhere; }
.flqc .d-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 8px; margin: 14px 0 12px; }
/* [908] boton redondo + su nombre debajo */
.flqc .d-act { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; min-width: 52px; }
.flqc .d-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--acc); color: var(--onacc); display: grid; place-items: center; }
.flqc .d-ic svg { width: 21px; height: 21px; }
/* En pastilla blanca: se lee igual sobre la banda de color o sobre el fondo claro */
.flqc .d-lbl { font-size: .66rem; font-weight: 700; color: #2a2e33; line-height: 1.2; white-space: nowrap; background: rgba(255,255,255,.94); border-radius: 999px; padding: 2px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.flqc .d-save { display: block; border: 0; width: 100%; cursor: pointer; font: inherit; border-radius: 12px; padding: 11px; background: #16191c; color: #fff; font-weight: 800; font-size: .86rem; text-align: center; margin: 0 0 10px; }
.flqc .d-list { text-align: left; font-size: .8rem; }
.flqc .d-list a, .flqc .d-list div { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid #e3e6e9; color: #2a2e33; min-width: 0; }
.flqc .d-list svg { width: 15px; height: 15px; color: var(--acc); flex-shrink: 0; }
.flqc .d-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flqc .d-extra { margin-top: 12px; padding: 12px 14px; background: #eef0f2; border-radius: 12px; font-size: .8rem; color: #4a4f55; white-space: pre-line; text-align: left; overflow-wrap: anywhere; }
.flqc.is-page .d-acts a:focus-visible, .flqc.is-page .d-list a:focus-visible, .flqc .d-save:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.flqc[data-l="izq"] .d-av { left: 22px; transform: none; border-radius: 24px; }
.flqc[data-l="izq"] .d-body { text-align: left; }
.flqc[data-l="izq"] .d-acts { justify-content: flex-start; }
.flqc[data-l="banda"] .d-head { height: 262px; }
.flqc[data-l="banda"] .d-av { top: 34px; width: 86px; height: 86px; border-color: rgba(255,255,255,.75); }
.flqc[data-l="banda"] .d-body { margin-top: -138px; padding-top: 0; }
.flqc[data-l="banda"] .d-name { color: var(--on1); }
.flqc[data-l="banda"] .d-role { color: var(--on1); opacity: .92; }
.flqc[data-l="banda"] .d-biz { color: var(--on1b); margin-bottom: 28px; }
.flqc[data-l="marco"] .screen { background: var(--bg1); }
.flqc[data-l="marco"] .d-head { height: 148px; }
.flqc[data-l="marco"] .d-av { top: 96px; }
.flqc[data-l="marco"] .d-body { background: #fff; margin: 0 12px 12px; border-radius: var(--rad); padding-top: 60px; }

/* ---- Apple Wallet (vista previa) ---- */
.flqc .ap { width: 300px; max-width: 100%; border-radius: 14px; overflow: hidden; position: relative; background: var(--bg1); color: var(--on1); box-shadow: 0 16px 34px rgba(0,0,0,.24); font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
.flqc .ap-top { position: relative; display: flex; align-items: center; gap: 9px; padding: 12px 14px; font-weight: 700; font-size: .9rem; min-width: 0; }
.flqc .ap-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flqc .ap-strip { position: relative; height: 104px; overflow: hidden; }
.flqc .ap-strip .nm { position: absolute; left: 14px; right: 14px; bottom: 10px; font-family: var(--fd), sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.1; color: var(--on1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flqc .ap-fields { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px 4px; }
/* ---- Google Wallet (vista previa) ---- */
.flqc .gw { width: 300px; max-width: 100%; border-radius: 26px; overflow: hidden; background: var(--bg1); color: var(--on1); box-shadow: 0 16px 34px rgba(0,0,0,.24); font-family: var(--fb), "Roboto", system-ui, sans-serif; position: relative; }
.flqc .gw-top { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; font-size: .86rem; font-weight: 600; min-width: 0; }
.flqc .gw-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flqc .gw-top .lg { border-radius: 50%; }
.flqc .gw-title { padding: 2px 18px 0; font-family: var(--fd), sans-serif; font-size: 1.4rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.flqc .gw-sub { padding: 2px 18px 8px; color: var(--on1b); font-size: .84rem; }
.flqc .gw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px 0; }
.flqc .gw .qrbox { margin: 16px auto; }
.flqc .gw-hero { height: 92px; position: relative; overflow: hidden; }

/* ---- tarjeta NFC fisica CR80 (85.6 x 54 mm) ---- */
.flqc .cr { width: 340px; max-width: 100%; aspect-ratio: 85.6 / 54; border-radius: var(--rad); position: relative; overflow: hidden; background-color: var(--bg1); color: var(--on1); box-shadow: 0 2px 3px rgba(0,0,0,.1), 0 18px 36px rgba(0,0,0,.24); container-type: inline-size; }
.flqc .cr-in { position: absolute; inset: 0; padding: 7.5% 8%; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.flqc .cr-brand { display: flex; align-items: center; gap: 3cqw; font-weight: 800; font-size: 4.2cqw; min-width: 0; }
.flqc .cr-brand span:not(.lg) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flqc .cr-brand .lg { width: 9.5cqw; height: 9.5cqw; border-radius: 2.2cqw; font-size: 3.4cqw; }
.flqc .cr-name { font-family: var(--fd), sans-serif; font-weight: 800; font-size: 7.6cqw; line-height: 1.05; overflow-wrap: anywhere; }
.flqc .cr-role { font-size: 3.6cqw; color: var(--on1b); margin-top: 1.6cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flqc .cr-back .cr-in { flex-direction: row; align-items: center; justify-content: center; gap: 7cqw; }
.flqc .cr-back .qrbox { width: 31cqw; padding: 2.4cqw; margin: 0; border-radius: 3cqw; flex-shrink: 0; }
.flqc .cr-back .qrbox img, .flqc .cr-back .qrbox canvas { width: 100%; height: auto; }
.flqc .cr-tap { display: flex; flex-direction: column; gap: 1.8cqw; font-size: 3.4cqw; max-width: 40cqw; color: var(--on1b); }
.flqc .cr-tap svg { width: 10cqw; height: 10cqw; color: var(--on1); }
.flqc .cr-tap b { font-family: var(--fd), sans-serif; font-size: 4.8cqw; line-height: 1.15; color: var(--on1); }
.flqc .f-brillante::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.26) 46%, transparent 60%); }
.flqc .f-oro .cr-name, .flqc .f-oro .cr-tap b, .flqc .f-oro .cr-brand span:not(.lg) { background: linear-gradient(100deg, #8f6a22, #f3dc9c 32%, #b48838 55%, #fff0c4 75%, #8f6a22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flqc .f-plata .cr-name, .flqc .f-plata .cr-tap b, .flqc .f-plata .cr-brand span:not(.lg) { background: linear-gradient(100deg, #7e858d, #f1f3f5 32%, #9ba2aa 55%, #ffffff 75%, #7e858d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flqc[data-light] .f-oro .cr-name, .flqc[data-light] .f-oro .cr-tap b, .flqc[data-light] .f-oro .cr-brand span:not(.lg) { background-image: linear-gradient(100deg, #5e4312, #a57a2c 35%, #6b4d17 55%, #b88a35 75%, #5e4312); }
.flqc[data-light] .f-plata .cr-name, .flqc[data-light] .f-plata .cr-tap b, .flqc[data-light] .f-plata .cr-brand span:not(.lg) { background-image: linear-gradient(100deg, #3a3f45, #7b828b 35%, #454b52 55%, #8a9199 75%, #3a3f45); }
.flqc.is-print .cr { box-shadow: none; border-radius: 0; }
.flqc .thumb .cr { width: 100%; border-radius: 9px; box-shadow: none; }

/* ---- imagen para WhatsApp (1080 x 1350, se dibuja a 360 x 450 y se exporta x3) ---- */
.flqc .share { width: 360px; height: 450px; position: relative; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.flqc .share-card { width: 312px; height: 404px; border-radius: 18px; overflow: hidden; background: #fff; position: relative; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.flqc .share-head { height: 128px; position: relative; background-color: var(--bg1); flex-shrink: 0; }
.flqc .share-logo { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); width: 88px; height: 88px; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.16); display: grid; place-items: center; overflow: hidden; z-index: 2; }
.flqc .share-logo img { width: 78%; height: 78%; object-fit: contain; }
.flqc .share-logo span { font-family: var(--fd), sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--acc); }
.flqc .share-body { padding: 52px 22px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; }
.flqc .share-name { font-family: var(--fd), sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: #16191c; overflow-wrap: anywhere; flex-shrink: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.flqc .share-name.is-long { font-size: 1.15rem; }
.flqc .share-bio { font-size: .76rem; color: #5d6268; line-height: 1.4; flex-shrink: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Filas que no caben pasan a una 2a columna oculta: nunca se ve una fila a medias. */
.flqc .share-list { margin-top: 8px; text-align: left; font-size: .78rem; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; flex: 1; min-height: 0; overflow: hidden; }
.flqc .share-list div { display: flex; gap: 9px; align-items: center; padding: 6px 0; flex-shrink: 0; width: 100%; border-top: 1px solid #eceef0; color: #23272b; min-width: 0; }
.flqc .share-list svg { width: 14px; height: 14px; color: var(--acc); flex-shrink: 0; }
.flqc .share-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- imagenes de Wallet: franja de Apple (375 x 123) e imagen de Google (344 x 112) ---- */
.flqc .strip-img { width: 375px; height: 123px; position: relative; overflow: hidden; background: var(--bg1); }
.flqc .hero-img { width: 344px; height: 112px; position: relative; overflow: hidden; background: var(--bg1); }

/* ---- [907] logo: sus colores (sin recuadro), "fondo suave" o con recuadro; posicion y tamaño en la tarjeta fisica ---- */
/* --lh = alto del logo; el ancho maximo crece con el tamaño (los logos anchos tambien cambian). */
.flqc .lgx { display: inline-flex; align-items: center; flex-shrink: 0; min-width: 0; max-width: 100%; height: var(--lh, 24px); }
.flqc .lgx img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.flqc .lgx.boxed { justify-content: center; background: #fff; color: #16191c; overflow: hidden; aspect-ratio: 1; }
.flqc .lgx.boxed img { width: 100%; height: 100%; padding: 10%; }
.flqc .lgx.boxed b { font-weight: 800; }
/* Fondo suave: un fondo semitransparente del tamaño del logo (claro u oscuro, el que deje leerlo) */
.flqc .lgx.soft img { box-sizing: border-box; padding: calc(var(--lh, 24px) * .16) calc(var(--lh, 24px) * .26); border-radius: calc(var(--lh, 24px) * .3); }
.flqc .lgx.pad-light img { background: rgba(255,255,255,.84); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.flqc .lgx.pad-dark img { background: rgba(14,16,20,.72); }
/* tarjeta fisica */
.flqc .cr-lg { --lh: 9.5cqw; max-width: 46cqw; }
.flqc .cr-lg.boxed { border-radius: 2.2cqw; font-size: 3.4cqw; }
.flqc .ls-1 .cr-lg { --lh: 7cqw; max-width: 34cqw; } .flqc .ls-3 .cr-lg { --lh: 12.5cqw; max-width: 58cqw; }
.flqc .lp-center .cr-mid { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.flqc .cr-mid .lgx, .flqc .cr-foot .lgx { flex-shrink: 1; }
.flqc .lp-center .cr-lg { --lh: 21cqw; max-width: 64cqw; }
.flqc .lp-center.ls-1 .cr-lg { --lh: 14cqw; max-width: 44cqw; } .flqc .lp-center.ls-3 .cr-lg { --lh: 28cqw; max-width: 84cqw; }
.flqc .lp-center .cr-lg.boxed { border-radius: 4cqw; }
.flqc .lp-center .cr-foot { text-align: center; }
.flqc .lp-center .cr-name { font-size: 5.6cqw; }
.flqc .lp-center .cr-role { margin-top: 1cqw; }
.flqc .lp-bottom .cr-foot { display: flex; justify-content: flex-end; }
.flqc .lp-bottom .cr-lg { --lh: 11cqw; max-width: 44cqw; }
.flqc .lp-bottom.ls-1 .cr-lg { --lh: 8cqw; max-width: 32cqw; } .flqc .lp-bottom.ls-3 .cr-lg { --lh: 15cqw; max-width: 58cqw; }
/* Apple: el logo va arriba a la izquierda (Apple no deja moverlo) */
.flqc .ap-lg { --lh: 24px; max-width: 120px; }
.flqc .ap-lg.boxed { width: 30px; --lh: 30px; border-radius: 7px; font-size: .74rem; }
/* Google: siempre en un circulo arriba a la izquierda (con fondo suave, el circulo es el fondo) */
.flqc .gw-lg { --lh: 32px; width: 32px; border-radius: 50%; justify-content: center; overflow: hidden; }
.flqc .gw-lg img { width: 100%; height: 100%; padding: 3px; }
.flqc .gw-lg.soft img { padding: 4px; border-radius: 50%; box-shadow: none; }
.flqc .gw-lg.boxed { font-size: .72rem; }
