/* PrivilegeFans · «Crear promoción» (maqueta del propietario, 30-oct): cabecera azul noche, banner con el escudo oficial, paso 1 con
   filtros, rejilla/lista con selección dorada, vista previa con estadísticas y pie con la duración y «Continuar». */
@font-face { font-family: 'Kaushan Script'; src: url('../assets/fonts/KaushanScript-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

.pk-pop .pfx-pop { width: min(1460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border-radius: 18px; overflow: hidden; background: var(--ice, #fff); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(3, 12, 28, .45); }
.pk-pop .pfx-pop-body { padding: 0; margin: 0; overflow: auto; flex: 1 1 auto; max-height: none; }
.pk { --pk-navy: #071A33; --pk-navy2: #0B2A57; --pk-gold: #F2C24A; --pk-ink: #0B2D52; --pk-mute: #5B6F86; --pk-line: #E3EAF2; display: flex; flex-direction: column; min-height: 100%; font-family: Lato, Arial, sans-serif; color: var(--pk-ink); }

/* cabecera */
.pk-hd { display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: linear-gradient(180deg, #0A2246, var(--pk-navy)); border-bottom: 2px solid rgba(242, 194, 74, .55); }
.pk-hd-ic { width: 40px; height: 40px; display: grid; place-items: center; } .pk-hd-ic i { color: var(--pk-gold) !important; font-size: 24px; }
.pk-hd h2 { margin: 0; flex: 1; color: #fff; font: 700 24px Lato, Arial, sans-serif; }
.pk-x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; font-size: 17px; cursor: pointer; } .pk-x i { color: #fff !important; } .pk-x:hover { background: rgba(255, 255, 255, .14); }

/* banner: escudo oficial + «Privilege Top», ventajas, precio «Desde» y el lema; a la derecha, la foto elegida */
.pk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(180px, .55fr); align-items: center; gap: 28px; min-height: 168px; padding: 18px 34px; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, #071A33 0%, #0B2A57 42%, rgba(11, 42, 87, .55) 62%, rgba(7, 26, 51, .25) 100%), var(--pk-bg, url('../assets/branding/banda-tienda3.jpg')) right 30% / 52% auto no-repeat, #0B2A57; }
.pk-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, rgba(242, 194, 74, 0), rgba(242, 194, 74, .8), rgba(242, 194, 74, 0)); }
.pk-brand { display: flex; align-items: center; gap: 16px; }
.pk-crest { width: 78px; height: 78px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.pk-name { display: inline-flex; align-items: center; gap: 10px; font: italic 800 40px/1.05 SansitaSwashed, Georgia, serif; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.pk-name em { font-style: italic; color: var(--pk-gold); } .pk-name i { color: #5BC0FF !important; font-size: 28px; font-style: normal; filter: drop-shadow(0 0 8px rgba(91, 192, 255, .6)); }
.pk-brand p { margin: 8px 0 0; max-width: 520px; color: #E6EDF6; font-size: 15px; line-height: 1.45; }
.pk-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.pk-perks li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: #fff; } .pk-perks i { color: var(--pk-gold) !important; font-size: 17px; }
.pk-from { display: grid; justify-items: start; gap: 2px; padding: 14px 22px; border: 2px solid rgba(242, 194, 74, .85); border-radius: 14px; background: rgba(7, 26, 51, .72); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.pk-from small { color: #DCE7F4; font-size: 13px; } .pk-from b { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 900 34px Lato, Arial, sans-serif; } .pk-from b i { color: var(--pk-gold) !important; font-size: 26px; }
.pk-script { justify-self: end; margin: 0; max-width: 230px; text-align: right; font: 400 34px/1.15 'Kaushan Script', cursive; color: var(--pk-gold); transform: rotate(-9deg); text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }

/* paso 1 */
.pk-step { padding: 18px 26px 6px; flex: 1 1 auto; }
.pk-step-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.pk-step-h h3 { margin: 0; font: 800 22px Lato, Arial, sans-serif; color: var(--pk-ink); } .pk-step-h p { margin: 4px 0 0; color: var(--pk-mute); font-size: 14.5px; }
.pk-search { position: relative; display: flex; align-items: center; width: min(420px, 100%); height: 46px; }
.pk-search i { position: absolute; left: 15px; color: #6B7F95 !important; } .pk-search input { width: 100%; height: 100%; padding: 0 14px 0 42px; border: 1px solid var(--pk-line); border-radius: 10px; background: #F7FAFD; font: 600 14px Lato, Arial, sans-serif; color: var(--pk-ink); outline: 0; -webkit-appearance: none; appearance: none; }
.pk-search input:focus { border-color: var(--pk-gold); background: var(--ice, #fff); box-shadow: 0 0 0 3px rgba(242, 194, 74, .25); }
.pk-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.pk-types { display: flex; gap: 10px; }
.pk-types button { display: inline-flex; align-items: center; gap: 12px; height: 52px; min-width: 140px; padding: 0 18px; border: 1px solid var(--pk-line); border-radius: 10px; background: var(--ice, #fff); color: var(--pk-ink); cursor: pointer; font: inherit; box-shadow: 0 1px 4px rgba(15, 54, 84, .05); }
.pk-types button i { font-size: 22px; color: var(--pk-navy2) !important; } .pk-types button span { display: grid; text-align: left; line-height: 1.15; } .pk-types b { font-size: 15px; } .pk-types small { font-size: 13px; color: var(--pk-mute); }
.pk-types button.on { background: var(--pk-navy2); border: 2px solid var(--pk-gold); color: #fff; } .pk-types button.on i { color: var(--pk-gold) !important; } .pk-types button.on small { color: var(--pk-gold); }
.pk-sorts { display: flex; gap: 4px; padding: 4px; border: 1px solid #F1E3BC; border-radius: 12px; background: #FBF6E9; overflow-x: auto; scrollbar-width: none; }
.pk-sorts button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--pk-ink); font: 600 14px Lato, Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.pk-sorts button i { color: var(--pk-navy2) !important; } .pk-sorts button.on { background: #FDEFC8; border-color: #EBCB73; font-weight: 800; } .pk-sorts button.on i { color: #B7860B !important; }

/* rejilla + vista previa */
.pk-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pk-card { position: relative; display: block; aspect-ratio: .92 / 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--pk-navy2); cursor: pointer; text-align: left; font: inherit; box-shadow: 0 4px 12px rgba(3, 12, 28, .14); transition: transform .12s, box-shadow .12s; }
.pk-card:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(3, 12, 28, .22); }
.pk-card-img { position: absolute; inset: 0; } .pk-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.pk-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 51, 0) 40%, rgba(7, 26, 51, .88) 100%); }
.pk-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .5); font-size: 30px; }
.pk-check { position: absolute; top: 9px; right: 9px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: rgba(7, 26, 51, .35); display: grid; place-items: center; }
.pk-card.on { border-color: var(--pk-gold); box-shadow: 0 0 0 3px rgba(242, 194, 74, .35), 0 10px 22px rgba(3, 12, 28, .25); }
.pk-card.on .pk-check { background: var(--pk-gold); border-color: var(--pk-gold); } .pk-card.on .pk-check i { color: #1c2733 !important; font-size: 13px; }
.pk-dur { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 7px; background: rgba(7, 26, 51, .7); color: #fff; font: 800 12px Lato, Arial, sans-serif; }
.pk-busy { position: absolute; top: 44px; right: 8px; z-index: 2; padding: 3px 8px; border-radius: 7px; background: rgba(229, 72, 77, .92); color: #fff; font: 800 11px Lato, Arial, sans-serif; font-style: normal; }
.pk-card.busy { opacity: .6; cursor: not-allowed; }
.pk-card-t { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: grid; gap: 6px; color: #fff; }
.pk-card-t b { font: italic 700 16px/1.15 SansitaSwashed, Georgia, serif; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pk-card-t i { color: #fff !important; font-size: 15px; }
.pk-card-row { display: none; }
/* lista */
.pk-grid.list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pk-grid.list .pk-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); aspect-ratio: auto; min-height: 92px; background: var(--ice, #fff); border: 1px solid var(--pk-line); box-shadow: none; }
.pk-grid.list .pk-card.on { border: 2px solid var(--pk-gold); }
.pk-grid.list .pk-card-img { position: relative; inset: auto; height: 92px; } .pk-grid.list .pk-card-img::after, .pk-grid.list .pk-card-t { display: none; }
.pk-grid.list .pk-check { top: 50%; margin-top: -14px; right: 14px; border-color: #C9D6E6; background: var(--ice, #fff); }
.pk-grid.list .pk-dur { top: 6px; left: 6px; }
.pk-grid.list .pk-card-row { display: grid; align-content: center; gap: 3px; padding: 8px 56px 8px 14px; min-width: 0; }
.pk-card-tt { font-weight: 800; font-size: 15px; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pk-card-row small { color: var(--pk-mute); font-size: 12.5px; } .pk-card-st i { margin-left: 8px; } .pk-card-st i:first-child { margin-left: 0; }
.pk-none { grid-column: 1 / -1; }

.pk-side { position: sticky; top: 0; display: grid; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #0B2A57, #071A33); box-shadow: 0 10px 26px rgba(3, 12, 28, .22); }
.pk-views { display: flex; gap: 8px; } .pk-views button { width: 46px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; } .pk-views button i { color: #fff !important; font-size: 17px; }
.pk-views button.on { background: rgba(242, 194, 74, .16); border-color: var(--pk-gold); } .pk-views button.on i { color: var(--pk-gold) !important; }
.pk-prev { padding: 14px; border-radius: 12px; background: var(--ice, #fff); }
.pk-prev-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .pk-prev-h b { font-size: 18px; color: var(--pk-ink); }
.pk-prev-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; } .pk-prev-x i { color: var(--pk-ink) !important; font-size: 16px; } .pk-prev-x:hover { background: #F2F6FB; }
.pk-prev-img { position: relative; aspect-ratio: 1.08 / 1; border-radius: 10px; overflow: hidden; background: var(--pk-navy2); }
.pk-prev-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; } .pk-prev-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 51, 0) 45%, rgba(7, 26, 51, .85) 100%); }
.pk-prev-img .pk-card-t b { font-size: 20px; }
.pk-info-h { margin: 14px 0 6px; font-size: 15.5px; font-weight: 800; color: var(--pk-ink); }
.pk-info-t { margin: 0 0 4px; font-size: 14px; color: var(--pk-ink); overflow-wrap: anywhere; } .pk-info-m { margin: 2px 0; font-size: 13px; color: var(--pk-mute); }
.pk-stats { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pk-line); } .pk-stats span { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--pk-ink); } .pk-stats i { color: var(--pk-navy2) !important; }
.pk-prev-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 10px; text-align: center; color: var(--pk-mute); } .pk-prev-empty i { font-size: 30px; color: var(--pk-gold) !important; } .pk-prev-empty b { color: var(--pk-ink); }

/* pie: selección, duración y «Continuar» */
.pk-foot { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 14px 26px; border-top: 1px solid #F1E3BC; background: #FBF6E9; }
.pk-sel { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--pk-line); border-radius: 12px; background: var(--ice, #fff); }
.pk-sel-th { position: relative; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--pk-navy2); display: grid; place-items: center; } .pk-sel-th img { width: 100%; height: 100%; object-fit: cover; }
.pk-sel-th > i { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--pk-gold); color: #1c2733 !important; font-size: 10px; display: grid; place-items: center; }
.pk-sel-th.empty > i { position: static; width: auto; height: auto; background: none; color: rgba(255, 255, 255, .6) !important; font-size: 20px; }
.pk-sel b { font-size: 15px; color: var(--pk-ink); } .pk-sel b.none { color: var(--pk-mute); font-weight: 600; }
.pk-sel-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--pk-line); background: var(--ice, #fff); cursor: pointer; display: grid; place-items: center; } .pk-sel-x i { color: var(--pk-ink) !important; font-size: 13px; }
.pk-plan { margin-left: auto; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 14px; row-gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--ice, #fff); border: 1px solid var(--pk-line); }
.pk-plan > span:first-child { font-weight: 800; font-size: 14.5px; color: var(--pk-ink); grid-row: 1 / span 2; }
.pk-plan-sel { position: relative; display: flex; align-items: center; } .pk-plan-sel i { position: absolute; left: 12px; color: var(--pk-navy2) !important; pointer-events: none; }
.pk-plan select { height: 44px; min-width: 250px; padding: 0 12px 0 36px; border: 1px solid var(--pk-line); border-radius: 10px; background: var(--ice, #fff); color: var(--pk-ink); font: 700 14.5px Lato, Arial, sans-serif; cursor: pointer; }
.pk-plan small { grid-column: 2; font-size: 12.5px; color: var(--pk-mute); }
.pk-go { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 220px; height: 58px; padding: 0 26px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #F8D56A, #E8A91C); color: #1c2733; font: 900 20px Lato, Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 20px rgba(232, 169, 28, .35); }
.pk-go i { color: #1c2733 !important; } .pk-go:hover:not([disabled]) { filter: brightness(1.05); } .pk-go[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 1180px) { .pk-hero { grid-template-columns: minmax(0, 1fr) auto; } .pk-script { display: none; } .pk-body { grid-template-columns: minmax(0, 1fr) 250px; } }
@media (max-width: 860px) {
  .pk-pop .pfx-pop { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pk-hd { padding: 10px 14px; } .pk-hd h2 { font-size: 19px; } .pk-hd-ic i { font-size: 19px; }
  .pk-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 16px; min-height: 0; background-size: auto, 80% auto, auto; }
  .pk-crest { width: 50px; height: 50px; } .pk-name { font-size: 26px; } .pk-name i { font-size: 18px; } .pk-brand p { font-size: 13px; } .pk-perks { display: none; }
  .pk-from { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 8px; padding: 8px 14px; } .pk-from b { font-size: 22px; } .pk-from b i { font-size: 17px; }
  .pk-step { padding: 14px 14px 4px; } .pk-step-h { flex-direction: column; align-items: stretch; } .pk-step-h h3 { font-size: 18px; } .pk-search { width: 100%; }
  .pk-bar { flex-direction: column; align-items: stretch; } .pk-types { overflow-x: auto; scrollbar-width: none; } .pk-types button { min-width: 0; flex: 1 0 auto; height: 46px; padding: 0 12px; gap: 8px; } .pk-types button i { font-size: 18px; }
  .pk-body { grid-template-columns: minmax(0, 1fr); } .pk-side { display: none; }
  .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pk-card-t b { font-size: 13px; } .pk-check { width: 24px; height: 24px; top: 6px; right: 6px; }
  .pk-foot { flex-wrap: wrap; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .pk-sel { flex: 1 1 100%; padding: 6px 10px; } .pk-sel-th { width: 40px; height: 40px; }
  .pk-plan { margin-left: 0; flex: 1 1 100%; grid-template-columns: minmax(0, 1fr); padding: 8px 10px; } .pk-plan > span:first-child { grid-row: auto; font-size: 13px; } .pk-plan select { min-width: 0; width: 100%; } .pk-plan small { grid-column: 1; }
  .pk-go { flex: 1 1 100%; height: 52px; font-size: 18px; }
}
.pk-prev-img { aspect-ratio: 1.45 / 1; }
@media (max-width: 860px) {
  .pk-sel { display: none; }
  .pk-foot { flex-wrap: nowrap; align-items: stretch; }
  .pk-plan { flex: 1 1 auto; min-width: 0; padding: 6px 8px; } .pk-plan > span:first-child, .pk-plan small { display: none; } .pk-plan select { height: 44px; font-size: 13.5px; }
  .pk-go { flex: 0 0 auto; min-width: 0; height: auto; padding: 0 18px; font-size: 16px; }
}
