/* ── Ventana «Agregar tarjeta de crédito» · maqueta nueva (cabecera azul noche con escudo, tarjeta oscura con reflejo dorado, campos con icono, sello de pago seguro) ── */
.pf-bm .pfx-pop, .pf-bm.pfx-pop { border-radius: 26px; overflow: hidden; border: 3px solid #1b3b6e; box-shadow: 0 0 0 1px rgba(240, 193, 44, .35), 0 30px 70px rgba(5, 12, 34, .55); }
.pf-bm .pfx-pop-head { background: linear-gradient(180deg, #0a1736, #0d2150); padding: 20px 28px 26px; border: 0; justify-content: flex-start; gap: 18px; position: relative; }
.pf-bm .pfx-pop-icon { display: none; }
.pf-bm .pfx-pop-titles { flex: 1; text-align: left; }
.pf-bm .pfx-pop-titles h3 { display: flex; align-items: center; gap: 22px; text-align: left; color: #fff; font: 900 clamp(20px, 2.6vw, 34px) Lato, Arial, sans-serif; letter-spacing: -.01em; flex-wrap: wrap; }
.pfbm-brand { display: inline-flex; align-items: center; gap: 8px; padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .22); font-size: .78em; }
.pfbm-brand img { width: 44px; height: 44px; object-fit: contain; } .pfbm-brand b { font-weight: 900; color: #fff; } .pfbm-brand em { font-style: normal; color: #F6CE3F; }
.pfbm-ttl { display: inline-flex; align-items: center; gap: 14px; } .pfbm-ttl i { display: grid; place-items: center; width: 54px; height: 40px; border-radius: 8px; border: 3px solid #F6CE3F; color: #F6CE3F; font-size: 18px; }
.pf-bm .pfx-pop-x { background: rgba(255, 255, 255, .1); color: #fff; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.pf-bm .pfx-pop-body { background: var(--ice, #fff); border-radius: 26px 26px 0 0; margin-top: -14px; position: relative; padding: 26px 30px 6px; }
.aju-cardpop { grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr); gap: 28px 38px; align-items: start; }
.aju-cc-box { border: 1px solid #dfe7f3; border-radius: 22px; background: linear-gradient(180deg, #f6f9ff, #eef3fb); padding: 16px 18px 26px; box-shadow: inset 0 1px 0 #fff; }
.aju-cc-box h4 { margin: 0 0 14px; text-align: center; font: 900 21px Lato, Arial, sans-serif; color: #0d1f4a; }
.aju-cc { max-width: 380px; border-radius: 18px; padding: 18px 22px; background: linear-gradient(135deg, #123a7c 0%, #0a1f55 55%, #071540 100%); box-shadow: 0 0 0 2px rgba(246, 206, 63, .55), 0 0 28px rgba(246, 206, 63, .35), 0 18px 36px rgba(7, 21, 64, .45); }
.aju-cc::after { display: none; }
.aju-cc .chip { width: 52px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #fbe7a1, #d9a62f 55%, #f6dd94); box-shadow: inset 0 0 0 1px rgba(120, 80, 0, .35); }
.aju-cc .top { align-items: flex-start; }
.aju-cc .emb { position: static; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 12px; font: 900 16px Lato, Arial, sans-serif; font-style: normal; color: #fff; }
.aju-cc .emb img { width: 26px; height: 26px; object-fit: contain; } .aju-cc .emb b { font-weight: 900; } .aju-cc .emb em { font-style: normal; color: #F6CE3F; }
.aju-nfc { transform: rotate(90deg); font-size: 18px; color: #fff; opacity: .9; margin-top: 4px; }
.aju-cc .brandlogo { position: absolute; right: 0; bottom: -46px; }
.aju-cc .no { font: 700 22px/1 Lato, Arial, sans-serif; letter-spacing: .22em; margin: 10px 0 6px; }
.aju-cc .lbl { font-size: 12px; letter-spacing: .02em; color: #fff; font-weight: 600; margin-bottom: 2px; }
.aju-cc .row { font-size: 15px; } .aju-cc .name { font-size: 16px; letter-spacing: .02em; }
.aju-cc-wave { position: absolute; right: -12px; bottom: -6px; width: 56%; height: 46%; background: radial-gradient(120% 90% at 100% 100%, rgba(246, 206, 63, .65), rgba(246, 206, 63, 0) 62%); clip-path: path("M0 120 C80 100 140 60 230 10 L260 0 L260 140 L0 140 Z"); opacity: .75; pointer-events: none; }
.aju-card-fields .pfx-field { margin-bottom: 14px; }
.aju-card-fields .pfx-field > label { display: flex; align-items: center; gap: 10px; font: 700 16px Lato, Arial, sans-serif; color: #0d1f4a; margin-bottom: 8px; } .aju-card-fields .pfx-field > label i { color: #1c4fa3; font-size: 20px; width: 24px; text-align: center; }
.aju-card-fields input { height: 56px; border-radius: 16px; border: 1.5px solid #b7c6e4; background: var(--ice, #fff); font-size: 18px; padding: 0 20px; width: 100%; box-shadow: 0 2px 6px rgba(13, 31, 74, .06); } .aju-card-fields input:focus { outline: 0; border-color: #1c4fa3; box-shadow: 0 0 0 3px rgba(28, 79, 163, .15); }
.acp-cvv { position: relative; display: block; } .acp-cvv input { padding-right: 50px; }
.acp-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: #1c4fa3; font-size: 20px; cursor: pointer; }
.aju-card-fields .aju-note { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 0; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #fff4e0); border: 1px solid #f1dcb0; color: #1d2c52; font-size: 15px; line-height: 1.45; } .aju-note i { color: #E6A91C; font-size: 28px; }
.acp-trust { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 320px; }
.acp-trust > i { color: #E6A91C; font-size: 34px; } .acp-trust b { display: block; font-size: 17px; color: #0d1f4a; } .acp-trust span { color: #34508a; font-size: 14.5px; }
.pfbm-brands { display: flex; gap: 12px; margin-top: 12px; } .pfbm-brands .ap2-brand { position: static; background: var(--ice, #fff); display: inline-grid; place-items: center; width: 74px; height: 50px; border: 1px solid #c7d3ec; border-radius: 8px; background: var(--ice, #fff); font-weight: 900; font-style: italic; color: #1a3d8f; }
.pfbm-brands .ap2-brand.ax { background: #1f6fd0; color: #fff; font-size: 12px; font-style: normal; } .pfbm-brands .mc { display: inline-flex; } .pfbm-brands .mc i { width: 26px; height: 26px; border-radius: 50%; background: #eb001b; } .pfbm-brands .mc i + i { background: #f79e1b; margin-left: -9px; }
.pf-bm .pfx-pop-foot { background: var(--ice, #fff); padding: 18px 30px 26px; margin: 0 30px; padding-left: 0; padding-right: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid #e3e9f3; }
.pf-bm .pfx-pop-btns { display: flex; gap: 14px; }
.pf-bm .pfx-pop-foot .pfx-btn { height: 62px; border-radius: 18px; font-size: 21px; font-weight: 900; padding: 0 30px; }
.pf-bm .pfx-pop-foot .pfx-btn.primary { min-width: 0; background: linear-gradient(180deg, #FFD640, #F5B800); color: #0d1f4a; box-shadow: 0 8px 22px rgba(246, 184, 0, .4); }
.pf-bm .pfx-pop-foot .pfx-btn.ghost { background: var(--ice, #fff); color: #0d1f4a; border: 1.5px solid #b7c6e4; min-width: 160px; }
@media (max-width: 760px) {
  .aju-cardpop { grid-template-columns: minmax(0, 1fr); gap: 18px; } 
  .pf-bm .pfx-pop-head { padding: 14px 16px 22px; } .pfbm-brand { padding-right: 0; border: 0; } .pf-bm .pfx-pop-titles h3 { gap: 10px; font-size: 19px; } .pfbm-ttl i { width: 40px; height: 30px; font-size: 14px; }
  .pf-bm .pfx-pop-body { padding: 18px 16px 4px; } .aju-cc .no { font-size: 17px; }
  .pf-bm .pfx-pop-foot { margin: 0 16px; padding: 14px 0 18px; } .pf-bm .pfx-pop-btns { width: 100%; flex-wrap: wrap; } .pf-bm .pfx-pop-foot .pfx-btn { flex: 1 1 100%; height: 54px; font-size: 18px; } .pf-bm .pfx-pop-foot .pfx-btn.primary { min-width: 0; }
}

/* ajustes tras la primera prueba */
.aju-cardpop-wrap .pfx-pop, .aju-cardpop-wrap.pfx-pop { width: min(900px, 96vw); max-width: min(900px, 96vw); }
.aju-cc .brandlogo { bottom: 16px; right: 22px; top: auto; font-size: 22px; }
.aju-cc .mcdots { position: absolute; right: 22px; bottom: 16px; }
.aju-cc .top { gap: 10px; }
.aju-cc .emb { margin-right: auto; margin-left: 14px; font-size: 17px; }
.aju-cc .no { font-size: 20px; letter-spacing: .14em; }
.aju-cc .chip { flex: 0 0 auto; }
.pfbm-brands .mc i { position: static; margin-top: 0; width: 26px; height: 26px; }
.pfbm-brands .ap2-brand.mc { display: inline-flex; justify-content: center; align-items: center; }
.aju-card-fields input::placeholder { font-size: 18px; color: #8a97b4; }
.aju-card-fields .aju-grid2 { gap: 16px; }
.aju-card-fields .pfx-field > label { white-space: nowrap; font-size: 15.5px; }
.pf-bm .pfx-pop-btns .pfx-btn.primary i { margin-right: 10px; }
.aju-cc .brandlogo[style*="opacity"] { display: none; }
.aju-cc .top .aju-nfc { margin-left: auto; }
.pf-bm .pfx-pop, .pf-bm.pfx-pop { display: flex; flex-direction: column; max-height: 94vh; max-height: 94dvh; }
.pf-bm .pfx-pop-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.pf-bm .pfx-pop-head, .pf-bm .pfx-pop-foot { flex: 0 0 auto; }
.aju-cc .top { position: static; }
.pfbm-brands .ap2-brand { background: #fff center / contain no-repeat; font-size: 0; border: 0; padding: 0; width: 88px; height: 50px; border-radius: 8px; }
.pfbm-brands .ap2-brand.visa { background-image: url('../assets/branding/pago-visa.png'); }
.pfbm-brands .ap2-brand.mc { background-image: url('../assets/branding/pago-mc.png'); } .pfbm-brands .mc i { display: none; }
.pfbm-brands .ap2-brand.ax { background-image: url('../assets/branding/pago-ax.png'); }
.pfbm-brands .ap2-brand, .pfbm-brands .ap2-brand.ax, .pfbm-brands .ap2-brand.visa, .pfbm-brands .ap2-brand.mc { background-color: var(--ice, #fff); background-size: contain; background-repeat: no-repeat; background-position: center; }

.aju-cardpop-wrap .pfx-pop-foot .pfx-btn.primary { min-width: 280px; }

/* título con subtítulo (Crear / Editar producto) */
.pfbm-tt { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.12; text-align: left; }
.pfbm-tt small { margin-top: 4px; font: 500 .42em/1.25 Lato, Arial, sans-serif; color: rgba(255, 255, 255, .88); letter-spacing: 0; }

/* ═══ Ventanas de marca 2026: propina, suscripción, verificación de edad ═══
 * Cabecera azul noche con el escudo, «PrivilegeFans» | icono + título (+ subtítulo), botón de cerrar redondo y un trazo dorado; cuerpo blanco con las esquinas de arriba redondeadas. */
.pf-bm .pfx-pop-head::after { content: ""; position: absolute; right: 0; bottom: 14px; width: 62%; height: 26px; pointer-events: none; opacity: .95;
  background: radial-gradient(60% 100% at 70% 100%, rgba(255, 207, 70, .85), rgba(255, 207, 70, 0) 70%); clip-path: ellipse(60% 18% at 70% 100%); }
.pf-bm .pfx-pop-head > * { position: relative; z-index: 1; }
.pfbm-brand b { letter-spacing: -.02em; } .pfbm-brand b::after { content: "®"; font-size: .4em; vertical-align: super; color: #fff; margin-left: 1px; }
.pf-bm .pfx-pop-x { position: relative; z-index: 2; border-width: 2px; }
/* variante compacta (propina, aviso de edad) */
.pf-bm-sm .pfx-pop-head { padding: 16px 20px 22px; gap: 12px; }
.pf-bm-sm.pfx-tip .pfx-pop, .pfx-tip.pf-bm .pfx-pop, .ag-pop.pf-bm .pfx-pop { width: min(470px, 94vw); max-width: min(470px, 94vw); }
.pf-bm-sm .pfbm-tt span { white-space: nowrap; }
.pf-bm-sm .pfx-pop-titles h3 { gap: 14px; font-size: clamp(17px, 4.4vw, 23px); flex-wrap: nowrap; }
.pf-bm-sm .pfbm-brand { padding-right: 14px; font-size: .74em; } .pf-bm-sm .pfbm-brand img { width: 34px; height: 34px; }
.pf-bm-sm .pfbm-ttl { gap: 10px; min-width: 0; } .pf-bm-sm .pfbm-ttl i { width: auto; height: auto; border: 0; font-size: 1.3em; }
.pf-bm-sm .pfx-pop-x { width: 38px; height: 38px; }
.pf-bm-sm .pfx-pop-body { padding: 18px 20px 4px; }
.pf-bm-sm .pfx-pop-foot { margin: 0 20px; padding: 14px 0 20px; }
.pf-bm-sm .pfx-pop-foot .pfx-btn { height: 52px; font-size: 17px; border-radius: 15px; padding: 0 22px; }
.pf-bm .pfx-pop-foot .pfx-btn.gold { background: linear-gradient(180deg, #FFE066, #F5B800); color: #0d1f4a; box-shadow: 0 8px 22px rgba(246, 184, 0, .4); border: 0; }
.pf-bm .pfx-pop-foot .pfx-btn.gold i { margin-right: 8px; }
.pf-bm-sm .pfx-pop-btns { width: 100%; } .pf-bm-sm .pfx-pop-btns .pfx-btn.gold { flex: 1 1 auto; } .pf-bm-sm .pfx-pop-btns .pfx-btn.ghost { flex: 0 0 auto; min-width: 120px; }
.pf-bm-wide .pfx-pop-head { padding: 16px 24px 22px; } .pf-bm-wide .pfx-pop-body { padding: 18px 24px 22px; }
.pf-bm-wide .pfx-pop-titles h3 { font-size: clamp(18px, 2.4vw, 28px); }
.pf-bm-wide .pfx-pop-titles h3 { flex-wrap: nowrap; } .pf-bm-wide .pfbm-ttl i { width: auto; height: auto; border: 0; font-size: 1.5em; }
/* propina: caja de saldo azul con diamante y atajos en píldora */
.pfx-tip.pf-bm .pfx-tip-bal { border-radius: 18px; padding: 18px 20px; background: linear-gradient(135deg, #0a2a63, #0b3a86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pfx-tip.pf-bm .pfx-tip-bal b { font-size: 34px; line-height: 1.1; } .pfx-tip.pf-bm .pfx-tip-bal span { font-size: 15px; color: #dbe8f7; }
.pfx-tip.pf-bm .pfx-tip-buy { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 207, 70, .35), rgba(255, 207, 70, 0) 70%); font-size: 36px; }
.pfx-tip.pf-bm .pfx-field > label { font: 800 18px Lato, Arial, sans-serif; color: #0d1f4a; }
.pfx-tip.pf-bm .pfx-field input { height: 54px; border-radius: 14px; border: 1.5px solid #b7c6e4; font-size: 17px; }
.pfx-tip.pf-bm .pfx-tip-quick { gap: 8px; flex-wrap: wrap; }
.pfx-tip.pf-bm .pfx-chip { border-radius: 999px; padding: 10px 16px; font-weight: 900; font-size: 16px; color: #0d1f4a; border: 1.5px solid #cdd9ec; background: var(--ice, #fff); box-shadow: 0 3px 10px rgba(13, 31, 74, .08); }
.pfx-tip.pf-bm .pfx-chip i { color: #F2B90B; margin-right: 6px; }
/* suscripción: la cabecera de cada paso ya no repite el título */
.tar-sub-pop.pf-bm .pfx-pop { max-width: min(1040px, 96vw); }
/* verificación de edad: franja de marca en lo alto de la tarjeta */
.ag-card .ag-bar { align-self: stretch; justify-self: stretch; margin: -34px -30px 6px; padding: 14px 18px 20px; display: flex; align-items: center; gap: 14px; justify-content: space-between; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0a1736, #0d2150); border-radius: 24px 24px 0 0; text-align: left; color: #fff; }
.ag-card .ag-bar::after { content: ""; position: absolute; right: 0; bottom: 6px; width: 60%; height: 22px; background: radial-gradient(60% 100% at 70% 100%, rgba(255, 207, 70, .85), rgba(255, 207, 70, 0) 70%); clip-path: ellipse(60% 18% at 70% 100%); pointer-events: none; }
.ag-card .ag-bar > * { position: relative; z-index: 1; }
.ag-card:has(.ag-bar)::before { display: none; }
.ag-bar .pfbm-brand { font-size: 17px; } .ag-bar .pfbm-brand img { width: 34px; height: 34px; }
.ag-bar .pfbm-ttl { gap: 8px; font: 800 17px Lato, Arial, sans-serif; color: #fff; } .ag-bar .pfbm-ttl i { width: auto; height: auto; border: 0; background: none !important; font-size: 22px; padding: 0; }
.ag-bar .pfbm-tt { font-size: 17px; }
.ag-bar-x { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; margin-left: auto; }
.ag-bar-x:hover { background: rgba(255, 255, 255, .22); }
.ag-pop .ag-pop-b { text-align: center; } .ag-pop-18 { display: inline-block; padding: 4px 14px; border-radius: 999px; background: linear-gradient(180deg, #FFE066, #F5B800); color: #0d1f4a; font-weight: 900; margin-bottom: 8px; }
.ag-pop-b h2 { margin: 0 0 8px; font: 900 24px Lato, Arial, sans-serif; color: #0d1f4a; }
@media (max-width: 760px) { .ag-card .ag-bar { margin: -30px -18px 4px; } .pf-bm-sm .pfbm-brand { display: inline-flex; } }
.tar-unavail[hidden] { display: none !important; }
.ag-card .ag-bar { min-height: 68px; box-sizing: border-box; padding: 14px 18px 22px !important; height: auto !important; }
.ag-pop.pf-bm .pfx-pop-titles h3 { font-size: clamp(15px, 3.6vw, 19px); } .ag-pop.pf-bm .pfbm-ttl { flex: 1 1 auto; } .ag-pop.pf-bm .pfx-pop-head { padding-right: 56px; } .ag-pop.pf-bm .pfx-pop-x { position: absolute; right: 14px; top: 14px; }
.pfx-tip.pf-bm .pfx-chip { padding: 8px 11px; font-size: 15px; } .pfx-tip.pf-bm .pfx-chip i { margin-right: 4px; } .pfx-tip.pf-bm .pfx-tip-quick { gap: 6px; flex-wrap: nowrap; }
@media (max-width: 480px) { .pfx-tip.pf-bm .pfx-tip-quick { flex-wrap: wrap; } }

/* aviso «tarjeta guardada» del cobro automático, con enlace directo a Métodos de pago */
.pfx-cardhint { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #FFF6DD; border: 1px solid #F0D58A; color: #5b4300; font-size: 13px; line-height: 1.45; text-align: left; }
.pfx-cardhint i { color: #B7860B; margin-right: 4px; } .pfx-cardhint a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 800; color: #0B2A57; text-decoration: underline; }
.dm-auto-hint:empty, .smnr-hint:empty { display: none; } .smnr-hint { margin: 6px 0 0; }
