/* assets/css/ik-popup.css — pop-ups de eventos (assets/js/ik-popup.js): modal en escritorio, hoja inferior en móvil */
.ikpp { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px; font-family: Inter, system-ui, -apple-system, sans-serif; }
.ikpp-scrim { position: absolute; inset: 0; background: rgba(15, 20, 27, .55); opacity: 0; transition: opacity .25s ease; }
.ikpp-box { position: relative; width: min(820px, 100%); max-height: min(88vh, 760px); overflow: auto; overscroll-behavior: contain; border-radius: 20px; background: #fff; color: #1D2530;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); outline: 0; }
.ikpp.is-in .ikpp-scrim { opacity: 1; }
.ikpp.is-in .ikpp-box { opacity: 1; transform: none; }
.ikpp.is-out .ikpp-box { opacity: 0; transform: translateY(10px) scale(.98); transition-duration: .2s; }
html.ikpp-open { overflow: hidden; }
.ikpp-grab { display: none; }
.ikpp-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92);
    color: #1D2530; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); transition: background .15s, transform .15s; }
.ikpp-x:hover { background: #fff; transform: rotate(90deg); }
.ikpp-x .material-symbols-outlined { font-size: 20px; }
.ikpp-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 300px; }
.ikpp--noimg .ikpp-main { grid-template-columns: 1fr; }
.ikpp-media { position: relative; background: linear-gradient(135deg, #fdf1e4, #f3e2cf); }
.ikpp-media img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.ikpp-badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: #e5484d; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(229, 72, 77, .35); }
.ikpp-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 34px 32px 28px; }
.ikpp-kind { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #fdf1e4; color: #8a5320; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ikpp-kind--event .ikpp-kind { background: #ede9fe; color: #5b3fc4; }
.ikpp-kind--service .ikpp-kind { background: #e0f2fe; color: #0369a1; }
.ikpp-kind--announcement .ikpp-kind { background: #eef2f7; color: #334155; }
.ikpp-kind--product .ikpp-kind { background: #e7f7ef; color: #15803d; }
.ikpp h2 { margin: 2px 0 0; font: 800 26px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.ikpp-body { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4b5260; }
.ikpp-count { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 10px; background: #fff4f4; color: #c62828; font-size: 13px; font-weight: 700; }
.ikpp-count .material-symbols-outlined { font-size: 18px; }
.ikpp-hero { width: 100%; }
.ikpp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 8px; }
.ikpp-cta { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: 999px; background: linear-gradient(90deg, #CD9765, #AB733C); color: #fff;
    font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 10px 22px rgba(171, 115, 60, .3); transition: transform .15s, filter .15s; }
.ikpp-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ikpp-never { border: 0; background: none; padding: 4px 0; color: #767b85; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Tarjetas de producto */
.ikpp-prod { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: #1D2530; text-decoration: none; }
.ikpp-prod-img { display: block; aspect-ratio: 1; border-radius: 12px; background: #f4f1ec center / cover no-repeat; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ikpp-prod:hover .ikpp-prod-img { transform: translateY(-2px); }
.ikpp-prod-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; }
.ikpp-prod-price { font-size: 14.5px; font-weight: 800; }
.ikpp-prod-org { font-size: 11.5px; color: #767b85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ikpp-prod--row { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; padding: 10px; border: 1px solid #eee7dd; border-radius: 14px; }
.ikpp-prod--row .ikpp-prod-img { grid-row: 1 / 4; width: 64px; }
.ikpp-rel { padding: 18px 24px 22px; border-top: 1px solid #f0ebe4; background: #fcfaf7; }
.ikpp-rel h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 800; }
.ikpp-rel-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Móvil: hoja inferior */
@media (max-width: 639.98px) {
    .ikpp { align-items: flex-end; padding: 0; }
    .ikpp-box { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(100%); opacity: 1; transition: transform .34s cubic-bezier(.2, .8, .2, 1);
        padding-bottom: env(safe-area-inset-bottom); }
    .ikpp.is-in .ikpp-box { transform: none; }
    .ikpp.is-out .ikpp-box { transform: translateY(100%); opacity: 1; transition-duration: .24s; }
    .ikpp-grab { display: block; position: sticky; top: 0; z-index: 3; width: 42px; height: 5px; margin: 8px auto -13px; border-radius: 99px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
    .ikpp--noimg .ikpp-grab { background: #d9d4cc; box-shadow: none; }
    .ikpp-main { grid-template-columns: 1fr; min-height: 0; }
    .ikpp-media img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
    .ikpp-txt { padding: 18px 18px 16px; gap: 8px; }
    .ikpp h2 { font-size: 21px; }
    .ikpp-body { font-size: 14px; }
    .ikpp-actions { width: 100%; }
    .ikpp-cta { flex: 1 1 100%; height: 50px; }
    .ikpp-never { margin: 0 auto; }
    .ikpp-rel { padding: 14px 0 18px 18px; }
    .ikpp-rel-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 18px; scrollbar-width: none; }
    .ikpp-rel-list::-webkit-scrollbar { display: none; }
    .ikpp-rel-list .ikpp-prod { flex: 0 0 136px; scroll-snap-align: start; }
    .ikpp-x { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ikpp-box, .ikpp-scrim { transition: none !important; } }
