/* Cuentas, comunidad y puntos. Usa las variables del tema. */
.hp-cta, .hp-cred, .hp-toasts, .hp-chip {
	--c-tinta: var(--ink, #1a1815);
	--c-suave: var(--muted, #57524a);
	--c-borde: var(--line, #dcd5c8);
	--c-papel: var(--card, #fff);
	--c-alt: var(--hp-fondo-alt, #efeae0);
	--c-acento: var(--accent, #7a2a2a);
	--c-acento-suave: var(--accent-soft, #f5e6e1);
	--c-oro: #a6790a;
	--c-serif: var(--serif, Georgia, serif);
}

/* ---------- Avatar de iniciales ---------- */
.hp-av { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; flex: none; }
.hp-av-s { width: 1.6rem; height: 1.6rem; font-size: .68rem; }
.hp-av-l { width: 4rem; height: 4rem; font-size: 1.4rem; }

/* ---------- Chip del menú ---------- */
.hp-chip { display: inline-flex; align-items: center; gap: .45rem; color: #fff !important; text-decoration: none !important; }
.hp-chip-entrar { padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .9rem; }
.hp-chip-entrar:hover { border-color: #fff; }
.hp-chip-pts { font-size: .88rem; color: #ddd6ca; font-variant-numeric: tabular-nums; }

/* ---------- Estructura ---------- */
.hp-cta { max-width: 1040px; }
.hp-cta h1 { font-family: var(--c-serif); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 .4rem; }
.hp-cta h2 { font-family: var(--c-serif); font-size: 1.2rem; margin: 0 0 .8rem; }
.hp-cta-lead { color: var(--c-suave); font-size: 1.05rem; margin: 0 0 1.2rem; max-width: 40rem; }
.hp-cta-sub { color: var(--c-suave); font-size: .9rem; margin: 0; }
.hp-cta-alt { font-size: .92rem; color: var(--c-suave); margin: 1rem 0 0; }
.hp-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.hp-cta-main { min-width: 0; }
.hp-cta-box { background: var(--c-papel); border: 1px solid var(--c-borde); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 0 0 1.2rem; }
.hp-cta-lado .hp-cta-box:last-child { margin-bottom: 0; }
.hp-cta-titulo { margin-bottom: 1.4rem; }

/* Pestañas */
.hp-cta-tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--c-alt); border-radius: 999px; margin: 0 0 1.4rem; }
.hp-cta-tabs a { padding: .4rem 1rem; border-radius: 999px; color: var(--c-suave); text-decoration: none; font-weight: 600; font-size: .92rem; }
.hp-cta-tabs a[aria-current] { background: var(--c-papel); color: var(--c-tinta); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Formularios */
.hp-cta-form { max-width: 26rem; }
.hp-cta-campo { margin: 0 0 1rem; }
.hp-cta-campo label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.hp-cta-campo input, .hp-cta-campo select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--c-borde); border-radius: 6px; background: #fff; font: inherit; color: var(--c-tinta); }
.hp-cta-campo input:focus, .hp-cta-campo select:focus { outline: 2px solid var(--c-acento); outline-offset: 1px; border-color: var(--c-acento); }
.hp-cta-campo small { display: block; color: var(--c-suave); font-size: .82rem; margin-top: .3rem; }
.hp-cta-opc { font-weight: 400; color: var(--c-suave); }
.hp-cta-check { font-size: .92rem; margin: 0 0 1rem; }
.hp-cta-check input { margin-right: .35rem; }
.hp-cta-form .btn { border: 0; cursor: pointer; margin-top: .2rem; font: inherit; font-weight: 600; }
.hp-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-cta-aviso { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1.2rem; font-size: .95rem; }
.hp-cta-ok { background: #e7f1e8; color: #1f4d2b; }
.hp-cta-error { background: var(--c-acento-suave); color: var(--c-acento); }
.hp-cta-det { margin-top: 1.2rem; font-size: .92rem; }
.hp-cta-det summary { cursor: pointer; color: var(--c-suave); }
.hp-cta-det .hp-cta-form { margin-top: .8rem; }

/* Cómo ganar */
.hp-cta-ganar { list-style: none; margin: 0; padding: 0; }
.hp-cta-ganar li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--c-borde); font-size: .92rem; }
.hp-cta-ganar li:last-child { border-bottom: 0; }
.hp-cta-ganar strong { color: var(--c-acento); font-variant-numeric: tabular-nums; }

/* ---------- Mi cuenta / perfil ---------- */
.hp-cta-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.hp-cta-head h1 { margin: 0 0 .2rem; }
.hp-nivel { background: var(--c-papel); border: 1px solid var(--c-borde); border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.hp-nivel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.hp-nivel-nombre { font-family: var(--c-serif); font-weight: 600; font-size: 1.1rem; }
.hp-nivel-pts strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.hp-nivel-barra { height: 8px; background: var(--c-alt); border-radius: 99px; overflow: hidden; margin: .6rem 0 .5rem; }
.hp-nivel-barra span { display: block; height: 100%; background: var(--c-acento); border-radius: 99px; }
.hp-nivel-falta { margin: 0; font-size: .88rem; color: var(--c-suave); }
.hp-cta-pos { margin: 0 0 1rem; font-size: .95rem; }
.hp-cta-box .hp-nivel { border: 0; padding: 0; margin-bottom: .8rem; background: none; }
.hp-com-nota { color: var(--c-suave); font-size: .85rem; margin: .8rem 0 0; }
.hp-cta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: 0 0 1.6rem; }
.hp-cta-stats div { background: var(--c-papel); border: 1px solid var(--c-borde); border-radius: 10px; padding: .7rem .9rem; }
.hp-cta-stats dt { font-size: .8rem; color: var(--c-suave); }
.hp-cta-stats dd { margin: .15rem 0 0; font-family: var(--c-serif); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Insignias */
.hp-ins-pista + .hp-ins-pista { margin-top: 1.1rem; }
.hp-ins-pista h3 { font-family: inherit; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--c-suave); margin: 0 0 .5rem; }
.hp-ins-pista h3 span { color: var(--c-acento); }
.hp-ins-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.hp-ins { display: flex; gap: .65rem; align-items: center; padding: .55rem .6rem; border: 1px dashed var(--c-borde); border-radius: 8px; opacity: .6; }
.hp-ins-ok { opacity: 1; border-style: solid; background: #fffdf8; }
.hp-ins-sim { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--c-alt); color: var(--c-suave); font-size: 1rem; font-weight: 700; flex: none; }
.hp-ins-ok .hp-ins-sim { color: #fff; background: var(--c-oro); }
.hp-ins-ok.hp-ins-confirmaciones .hp-ins-sim { background: #3f5d4a; }
.hp-ins-ok.hp-ins-colaborador .hp-ins-sim { background: var(--c-acento); }
.hp-ins-txt { min-width: 0; line-height: 1.25; }
.hp-ins-txt strong { display: block; font-size: .9rem; }
.hp-ins-txt small { color: var(--c-suave); font-size: .78rem; }

/* Listas */
.hp-cta-hist, .hp-cta-sugs, .hp-cta-tem { list-style: none; margin: 0; padding: 0; }
.hp-cta-hist li, .hp-cta-sugs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--c-borde); font-size: .92rem; }
.hp-cta-hist li:last-child, .hp-cta-sugs li:last-child { border-bottom: 0; }
.hp-cta-hist small, .hp-cta-sugs small { display: block; color: var(--c-suave); font-size: .78rem; }
.hp-cta-hist strong { color: var(--c-acento); font-variant-numeric: tabular-nums; }
.hp-est { font-style: normal; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; background: var(--c-alt); color: var(--c-suave); }
.hp-est-ok { background: #e7f1e8; color: #1f4d2b; }
.hp-est-no { background: var(--c-acento-suave); color: var(--c-acento); }
.hp-cta-tem li { padding: .35rem 0; font-size: .92rem; }
.hp-cta-tem small { color: var(--c-suave); }

/* ---------- Colaboradores ---------- */
.hp-com-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: .6rem; }
.hp-com-barra .hp-cta-tabs { margin: 0; }
.hp-com-filtro { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.hp-com-filtro select { padding: .4rem .5rem; border: 1px solid var(--c-borde); border-radius: 6px; font: inherit; max-width: 14rem; }
.hp-com-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-borde); }
.hp-com-fila { display: grid; grid-template-columns: 2.2rem auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .3rem; border-bottom: 1px solid var(--c-borde); }
.hp-com-pos { font-family: var(--c-serif); font-size: 1.15rem; color: var(--c-suave); text-align: center; font-variant-numeric: tabular-nums; }
.hp-com-top .hp-com-pos { color: var(--c-acento); font-weight: 700; }
.hp-com-nombre { min-width: 0; }
.hp-com-nombre a { font-weight: 600; color: var(--c-tinta); text-decoration: none; }
.hp-com-nombre a:hover { color: var(--c-acento); text-decoration: underline; }
.hp-com-nombre small { display: block; font-size: .8rem; color: var(--c-suave); }
.hp-com-pts { color: var(--c-suave); font-size: .9rem; white-space: nowrap; }
.hp-com-pts strong { color: var(--c-tinta); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hp-com-yo { background: var(--c-acento-suave); border-radius: 6px; }
.hp-com-niveles { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.hp-com-niveles li { display: list-item; padding: .2rem 0; }
.hp-com-niveles li span { font-weight: 600; }
.hp-com-niveles small { color: var(--c-suave); margin-left: .3rem; }

/* ---------- Crédito en la página del templo ---------- */
.hp-cred { margin: 1.2rem 0 0; padding: .9rem 1.1rem; border: 1px solid var(--c-borde); border-radius: 10px; background: var(--c-papel); }
.hp-cred h2 { font-family: var(--c-serif); font-size: 1rem; margin: 0 0 .5rem; }
.hp-cred ul { list-style: none; margin: 0; padding: 0; }
.hp-cred li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .92rem; }
.hp-cred li small { color: var(--c-suave); font-size: .78rem; margin-left: auto; }
.hp-cred a { color: var(--c-tinta); }
p.hp-cred-vacio { font-size: .88rem; color: var(--c-suave); }

/* ---------- Avisos flotantes ---------- */
.hp-toasts { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: .5rem; width: min(26rem, calc(100vw - 2rem)); }
.hp-toast { position: relative; display: flex; align-items: center; gap: .75rem; padding: .75rem 2.2rem .75rem .9rem; background: #211e1a; color: #f4f1ea; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: .92rem; line-height: 1.35; animation: hp-entra .3s ease-out; }
.hp-toast.sale { opacity: 0; transform: translateY(8px); transition: .35s; }
.hp-toast small { display: block; color: #cfc7b9; font-size: .8rem; margin-top: .15rem; }
.hp-toast a { color: #f2c6b9; }
.hp-toast-pts { flex: none; font-weight: 700; color: #f2c14e; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hp-toast-ins { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c-oro); color: #fff; font-weight: 700; }
.hp-toast-x { position: absolute; top: .35rem; right: .45rem; border: 0; background: none; color: #cfc7b9; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: .2rem; }
@keyframes hp-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
	.hp-cta-grid { grid-template-columns: 1fr; }
	.hp-cta-lado { order: 2; }
}
@media (max-width: 480px) {
	.hp-com-fila { gap: .6rem; }
	.hp-cta-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .hp-toast { animation: none; } }
