/* =====================================================================
   CALI VIVA+ · PÁGINAS EXCLUSIVAS (club, pasaporte, tienda, mapa, miembro)
   Se apoya en /compartido/planes.css (pv-*) y agrega piezas px-*.
   ===================================================================== */
.px-sub-nav {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px;
}
.px-sub-nav a {
    padding: 8px 16px; border-radius: 999px; color: #d1fae5; text-decoration: none; font-weight: 700; font-size: .9rem;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.px-sub-nav a:hover { background: rgba(52, 211, 153, .18); color: #fff; }
.px-sub-nav a.activo { background: linear-gradient(135deg, var(--pv-plus), var(--pv-plus-2)); border-color: transparent; color: #fff; }

.px-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.px-caja { background: #fff; border: 1px solid var(--pv-linea); border-radius: 22px; padding: 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.px-caja h3 { font-size: 1.25rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.px-caja > p { color: var(--pv-gris); margin: 0 0 14px; }
.px-caja .pv-btn { margin-top: 6px; }
.px-icono { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: #ecfdf5; color: var(--pv-plus-2); font-size: 1.15rem; flex: none; }

/* ---------- Bloqueo para quien no es Plus ---------- */
.px-bloqueo { position: relative; }
.px-bloqueo > .px-borroso { filter: blur(5px) grayscale(.4); pointer-events: none; user-select: none; opacity: .7; }
.px-bloqueo > .px-candado {
    position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; padding: 20px;
}
.px-candado > div {
    max-width: 440px; text-align: center; background: rgba(255, 255, 255, .96); border-radius: 22px; padding: 28px;
    box-shadow: 0 24px 60px rgba(4, 19, 15, .25); border: 1px solid #a7f3d0;
}
.px-candado h3 { margin: 6px 0 8px; font-size: 1.4rem; }
.px-candado p { color: var(--pv-gris); margin: 0 0 16px; }
.px-candado .px-emoji { font-size: 2rem; }

/* ---------- Tarjeta de miembro ---------- */
.px-tarjeta {
    position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 440px; width: 100%; margin: 0 auto;
    border-radius: 22px; padding: 22px 24px; color: #fff; display: flex; flex-direction: column;
    background:
        radial-gradient(400px 220px at 110% -20%, rgba(255, 255, 255, .28), transparent 60%),
        radial-gradient(300px 200px at -10% 120%, rgba(4, 19, 15, .45), transparent 60%),
        linear-gradient(135deg, #10b981 0%, #059669 45%, #064e3b 100%);
    box-shadow: 0 24px 50px rgba(5, 150, 105, .35);
}
.px-tarjeta::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px);
}
.px-tarjeta .px-t-arriba { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.px-tarjeta .px-t-marca { font-family: var(--pv-serif); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.px-tarjeta .px-t-marca small { display: block; font: 700 .68rem system-ui, sans-serif; letter-spacing: .18em; opacity: .85; }
.px-tarjeta .px-t-qr { width: 84px; height: 84px; background: #fff; border-radius: 12px; padding: 6px; }
.px-tarjeta .px-t-qr img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.px-tarjeta .px-t-abajo { margin-top: auto; position: relative; z-index: 1; }
.px-tarjeta .px-t-numero { font: 700 1.3rem ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.px-tarjeta .px-t-fila { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: .85rem; }
.px-tarjeta .px-t-fila small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.px-tarjeta .px-t-fila b { font-size: .98rem; }

/* ---------- Pasaporte ---------- */
.px-coleccion { background: #fff; border: 1px solid var(--pv-linea); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.px-coleccion header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.px-coleccion h3 { margin: 0; font-size: 1.25rem; }
.px-coleccion header p { margin: 2px 0 0; color: var(--pv-gris); font-size: .92rem; }
.px-progreso { height: 8px; background: #eef1f6; border-radius: 999px; overflow: hidden; margin: 0 0 16px; }
.px-progreso i { display: block; height: 100%; background: linear-gradient(90deg, var(--pv-plus), var(--pv-plus-2)); border-radius: 999px; transition: width .4s; }
.px-sellos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.px-sello {
    text-align: center; padding: 14px 10px; border-radius: 18px; border: 2px dashed #d5dbe5; background: #fafbfc; position: relative;
}
.px-sello .px-s-circulo {
    width: 74px; height: 74px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
    border: 3px dashed #cfd6e2; color: #9aa4b4; filter: grayscale(1); opacity: .6;
}
.px-sello.tengo { border-style: solid; border-color: #6ee7b7; background: #f0fdf7; }
.px-sello.tengo .px-s-circulo {
    filter: none; opacity: 1; border: 3px double #059669; background: radial-gradient(circle, #ecfdf5, #d1fae5);
    transform: rotate(-8deg); box-shadow: 0 6px 16px rgba(5, 150, 105, .2);
}
.px-sello b { display: block; font-size: .92rem; line-height: 1.2; }
.px-sello small { color: var(--pv-gris); font-size: .78rem; }
.px-sello .pv-btn { margin-top: 8px; width: 100%; }

/* ---------- Tienda ---------- */
.px-saldo-caja { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--pv-linea); border-radius: 22px; padding: 18px 22px; margin-bottom: 22px; }
.px-saldo-caja .px-num { font-weight: 800; font-family: var(--pv-serif); font-size: 2rem; }
.px-premios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.px-premio { background: #fff; border: 1px solid var(--pv-linea); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.px-premio .px-p-foto { height: 130px; background: #0f172a center/cover; position: relative; }
.px-premio .px-p-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-premio .px-p-cinta { position: absolute; top: 12px; left: 12px; }
.px-premio .px-p-cuerpo { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.px-premio h3 { font-size: 1.12rem; margin: 0 0 4px; }
.px-premio .px-p-lugar { color: var(--pv-gris); font-size: .88rem; margin: 0 0 6px; }
.px-premio .px-p-cond { color: var(--pv-gris); font-size: .82rem; margin: 0 0 14px; flex: 1; }
.px-premio .px-p-precio { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.px-premio .px-p-precio b { font-family: var(--pv-serif); font-size: 1.6rem; }
.px-premio .px-p-precio s { color: #9aa4b4; }
.px-premio.bloqueado { opacity: .75; }
.px-chip-plus { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 800 .72rem/1.2 system-ui, sans-serif; background: linear-gradient(135deg, var(--pv-plus), var(--pv-plus-2)); color: #fff; }

/* ---------- Comprobante recién canjeado ---------- */
.px-codigo { text-align: center; padding: 18px; border-radius: 18px; background: #f0fdf7; border: 2px dashed #6ee7b7; margin-top: 14px; }
.px-codigo b { display: block; font: 800 1.8rem ui-monospace, Menlo, monospace; letter-spacing: .14em; color: #064e3b; }

/* ---------- Alertas ---------- */
.px-alertas { list-style: none; margin: 0; padding: 0; }
.px-alertas li { padding: 12px 0; border-top: 1px solid var(--pv-linea); }
.px-alertas li:first-child { border-top: 0; }
.px-alertas li.nueva b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pv-plus-2); margin-right: 8px; vertical-align: middle; }
.px-alertas small { color: var(--pv-gris); }
.px-favs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.px-favs a { padding: 6px 12px; border-radius: 999px; background: #f0fdf7; border: 1px solid #a7f3d0; color: #065f46; text-decoration: none; font-size: .85rem; font-weight: 600; }

/* ---------- Interruptor ---------- */
.px-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.px-switch input { appearance: none; width: 52px; height: 30px; border-radius: 999px; background: #d5dbe5; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.px-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.px-switch input:checked { background: var(--pv-plus-2); }
.px-switch input:checked::after { transform: translateX(22px); }

/* ---------- Copiar código ---------- */
.px-copiar { display: flex; gap: 8px; margin: 10px 0; }
.px-copiar input { flex: 1; min-width: 0; border: 1.5px solid #d5dbe5; border-radius: 12px; padding: 10px 12px; font: 600 .9rem ui-monospace, Menlo, monospace; background: #f8fafc; }

/* ---------- Mapa Plus ---------- */
.px-mapa-caja { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: #fff; border: 1px solid var(--pv-linea); border-radius: 22px; overflow: hidden; min-height: 620px; }
.px-filtros { padding: 18px; border-right: 1px solid var(--pv-linea); overflow-y: auto; max-height: 720px; }
.px-filtros h3 { font-size: 1rem; margin: 0 0 10px; }
.px-filtros fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.px-filtros legend { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pv-gris); margin-bottom: 8px; }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.px-chips label { cursor: pointer; }
.px-chips input { display: none; }
.px-chips span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--pv-linea); font-size: .82rem; font-weight: 600; background: #fff; }
.px-chips input:checked + span { background: var(--pv-plus-2); color: #fff; border-color: var(--pv-plus-2); }
.px-filtros input[type=range] { width: 100%; accent-color: var(--pv-plus-2); }
.px-resultados { list-style: none; margin: 0; padding: 0; }
.px-resultados li { padding: 10px 0; border-top: 1px solid var(--pv-linea); cursor: pointer; }
.px-resultados li:hover b { color: var(--pv-plus-2); }
.px-resultados small { color: var(--pv-gris); display: block; }
#mapaPlus { min-height: 620px; height: 100%; background: #e8eef0; }
.px-mapa-vacio { display: grid; place-items: center; height: 100%; min-height: 620px; color: var(--pv-gris); padding: 30px; text-align: center; }
@media (max-width: 860px) {
    .px-mapa-caja { grid-template-columns: 1fr; }
    .px-filtros { border-right: 0; border-bottom: 1px solid var(--pv-linea); max-height: none; }
    #mapaPlus, .px-mapa-vacio { min-height: 420px; }
}

/* ---------- Funciones Plus en plus/plus.html ---------- */
.px-funciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.px-funcion { background: #fff; border: 1px solid var(--pv-linea); border-radius: 20px; padding: 20px; text-decoration: none; color: var(--pv-tinta); transition: transform .15s, box-shadow .15s, border-color .15s; display: block; }
.px-funcion:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(5, 150, 105, .14); border-color: #6ee7b7; color: var(--pv-tinta); }
.px-funcion h3 { font-size: 1.08rem; margin: 10px 0 4px; }
.px-funcion p { color: var(--pv-gris); margin: 0; font-size: .92rem; }
