/* =========================================================
   Capi Élite + 🔐 Secretos
   ========================================================= */
:root { --elite: #8b5cf6; --elite-dark: #5b21b6; --elite-soft: #f3edff; }

/* ---------- Pestaña Secretos ---------- */
.secrets-head {
  background: radial-gradient(circle at 85% 10%, #8b5cf6 0%, transparent 45%), linear-gradient(160deg, #1e1b4b 0%, #3b1f7a 60%, #5b21b6 100%);
  color: #fff; padding: calc(var(--safe) + 14px) 18px 22px;
}
.sh-row { display: flex; gap: 14px; align-items: center; }
.sh-vault { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); animation: vault-glow 3s ease-in-out infinite; }
@keyframes vault-glow { 0%,100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), 0 0 0 rgba(196,167,255,0); } 50% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 24px rgba(196,167,255,.55); } }
.secrets-head h1 { margin: 0; font-size: 27px; font-weight: 900; }
.secrets-head p { margin: 2px 0 0; opacity: .85; font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.sh-stats { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sh-stats span { background: rgba(255,255,255,.14); padding: 6px 11px; border-radius: 20px; font-weight: 800; font-size: 13px; }
.sh-unlock { margin-top: 14px; width: 100%; background: #fff; color: var(--elite-dark); font-weight: 900; padding: 13px; border-radius: 14px; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.sh-unlock:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.secret-filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; scrollbar-width: none; }
.secret-filters button { white-space: nowrap; padding: 8px 13px; border-radius: 20px; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 13.5px; color: var(--navy); }
.secret-filters button.on { background: var(--elite); border-color: var(--elite); color: #fff; }
.elite-note { border: 2px solid #d9ccff; background: var(--elite-soft); margin: 8px 0 14px !important; }

.secret-card { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin: 0 0 12px !important; text-align: left; border: 2px solid transparent; transition: border-color .15s, transform .1s; }
.secret-card:hover { border-color: #d9ccff; }
.secret-card:active { transform: scale(.99); }
.sc-e { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; }
.sc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sc-cat { font-size: 11.5px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.sc-free { background: var(--green-soft); color: #3f8f00; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 8px; }
.sc-used { background: var(--elite-soft); color: var(--elite-dark); font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 8px; }
.secret-card b { font-size: 16px; line-height: 1.3; }
.secret-card small { color: #5a6385; font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.secret-card small.blur { filter: blur(4.5px); user-select: none; }
.sc-meta { color: var(--muted); font-weight: 800; font-size: 12px; margin-top: 2px; }
.secret-card.locked { background: linear-gradient(180deg, #fff, #faf7ff); }
.secret-card.locked .sc-e { background: #ece6ff !important; }

/* ---------- Calendario y avisos ---------- */
.sc-region { background: #e8f0ff; color: #1f5bd8; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 8px; }
.sc-new { background: #ff4b4b; color: #fff; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 8px; letter-spacing: .5px; animation: pop .3s ease; }
.secret-card.is-new { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(139,92,246,.15), var(--shadow); }
.next-secret { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 8px 0 14px !important; border: 2px dashed #c4b5fd; background: linear-gradient(90deg, var(--elite-soft), #fff); }
.next-secret .ns-lock, .next-secret > span { font-size: 28px; }
.next-secret small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.next-secret b { display: block; font-size: 16px; margin: 1px 0 6px; color: var(--elite-dark); }
.ns-bar { height: 8px; background: #e6ddff; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.ns-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #c084fc); border-radius: 8px; }
.next-secret.done { border-style: solid; border-color: #9be36a; background: #f4fdec; }
.next-secret.done b { color: #3f8f00; }
.tab .ti { position: relative; }
.tab-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4b4b; color: #fff; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; filter: none; font-family: "Nunito", sans-serif; }
.tab:not(.on) .ti:has(.tab-badge) { filter: none; }

/* ---------- Detalle ---------- */
.secret-detail-head { background: linear-gradient(160deg, #1e1b4b, var(--sc, #5b21b6)); color: #fff; padding: calc(var(--safe) + 6px) 18px 22px; text-align: center; }
.secret-detail-head .icon-btn { margin-left: -6px; }
.sd-e { font-size: 50px; margin-top: -6px; animation: pop .35s ease; }
.sd-cat { display: inline-block; background: rgba(255,255,255,.16); padding: 5px 11px; border-radius: 20px; font-weight: 800; font-size: 12.5px; margin: 6px 0 8px; }
.secret-detail-head h1 { margin: 0; font-size: 23px; line-height: 1.25; }
.secret-detail-head p { margin: 8px 6px 0; opacity: .9; font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.secret-body { padding-top: 16px; }
.sd-block { padding: 16px 18px; margin: 0 0 12px !important; }
.sd-block h4 { margin: 0 0 8px; font-size: 16px; }
.sd-block p { margin: 0; color: #3d4670; font-weight: 600; line-height: 1.55; font-size: 14.5px; }
.sd-block ol { margin: 0; padding-left: 20px; color: #3d4670; font-weight: 600; line-height: 1.5; font-size: 14.5px; }
.sd-block li { margin-bottom: 8px; }
.sd-block li::marker { color: var(--elite); font-weight: 900; }
.sd-tpl-head { display: flex; justify-content: space-between; align-items: center; }
.sd-tpl-head h4 { margin: 0; }
.sd-tpl-head .mini-btn { background: var(--elite-soft); color: var(--elite-dark); }
.sd-tpl { white-space: pre-wrap; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--navy); background: var(--bg); border: 2px dashed #d9ccff; border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; }
.sd-watch { background: #fff8e6; border: 2px solid #ffe3a3; }
.sd-watch p { color: #7a5c00; }

/* ---------- Muro de pago con dos niveles ---------- */
.tier-switch { display: flex; background: #ece7f8; border-radius: 14px; padding: 4px; gap: 4px; margin: 0 0 16px; }
.tier-switch button { flex: 1; padding: 10px; border-radius: 11px; font-weight: 900; color: var(--muted); font-size: 15px; }
.tier-switch button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.plus-wall.tier-elite { background: linear-gradient(180deg, #efe8ff 0%, #fff 34%); }
.plus-wall.tier-elite h2 { background: linear-gradient(90deg, #5b21b6, #8b5cf6); -webkit-background-clip: text; background-clip: text; }
.pw-hero.elite { width: 120px; height: 120px; }
.vault { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; font-size: 60px; background: linear-gradient(160deg, #1e1b4b, #6d28d9); box-shadow: 0 0 0 5px #c4b5fd, 0 12px 34px rgba(109,40,217,.4); animation: vault-glow 3s ease-in-out infinite; margin: 0 auto; }
.vault.big { margin: 12px auto; }
.cmp-row.three { grid-template-columns: 1fr 46px 46px 46px; }
.cmp-row.head b.sel { color: var(--navy); background: #fff; border-radius: 8px; box-shadow: 0 0 0 2px var(--elite); }
.plus-wall.tier-plus .cmp-row.head b.sel { box-shadow: 0 0 0 2px #e8b923; }
.tier-elite .pw-plan.on { border-color: var(--elite-dark); }
.tier-elite .pw-plan.on .pw-radio { border-color: var(--elite-dark); }
.tier-elite .pw-badge { background: var(--elite); color: #fff; }
.tier-elite .pw-cta { background: linear-gradient(90deg, #5b21b6, #8b5cf6); box-shadow: 0 5px 0 #3b1f7a; }
.tier-elite .pw-proto { background: var(--elite-soft); color: var(--elite-dark); }
.btn-elite { background: linear-gradient(90deg, #5b21b6, #8b5cf6); color: #fff; box-shadow: 0 5px 0 #3b1f7a; }
.plus-tag.elite { background: var(--elite); color: #fff; }
.plan-flag.purple { background: var(--elite) !important; color: #fff !important; }
.plan-card.elite-alt { width: calc(100% - 40px); text-align: left; border-color: var(--elite); background: linear-gradient(90deg, var(--elite-soft), #fff); }
.sub-card.on.elite { border-color: var(--elite); }
