/* =====================================================================
   Personalitzador de tarifes (prototip v1, 26-09-2026)
   ===================================================================== */
.pz-obre-wrap { display: flex; justify-content: center; margin: 0.9rem 0 1.3rem; }
@media (max-width: 760px) { .pz-obre-wrap { margin-bottom: 1.6rem; } }
.pz-obre { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.1rem; border-radius: 999px; border: 2px solid var(--gold); background: #fff; color: #1b1a14; font-family: var(--sans); font-size: 1rem; font-weight: 500; cursor: pointer; }
.pz-obre svg { width: 18px; height: 18px; color: #8a6f00; flex: none; }
.pz-obre strong { font-weight: 800; }
.pz-obre.is-on { background: var(--gold); }
.pz-obre.is-on svg { color: #141414; }
.pz-nou { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #141414; color: #fff; border-radius: 999px; padding: 0.18rem 0.5rem; }

.pz { margin: 1.6rem auto 0; max-width: 1040px; }
.pz[hidden] { display: none !important; }
.pz-cap { text-align: center; margin-bottom: 1.3rem; }
.pz-kick { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6f00; margin: 0; }
.pz-kick svg { width: 15px; height: 15px; }
.pz-titol { font-family: var(--serif); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.2rem); color: #141414; margin: 0.35rem 0 0.25rem; line-height: 1.12; }
.pz-lead { color: #4b483d; font-size: 1.02rem; margin: 0; }

.pz-cos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 880px) { .pz-cos { grid-template-columns: 1.35fr 0.9fr; gap: 1.4rem; } .pz-resum { position: sticky; top: 110px; } }
.pz-passos { display: grid; gap: 1rem; }
.pz-pas { background: #fff; border: 1px solid rgba(20,18,8,0.12); border-radius: 18px; padding: 1.1rem 1rem 1.2rem; }
.pz-pas[hidden] { display: none; }
.pz-pas-t { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #141414; margin: 0 0 0.85rem; }
.pz-num { width: 30px; height: 30px; border-radius: 50%; background: #141414; color: #fff; display: grid; place-items: center; font-size: 0.95rem; font-weight: 800; flex: none; }

/* Pas 1: fibres */
.pz-fibres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.pz-fibra { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; text-align: left; min-height: 104px; padding: 0.85rem 0.8rem; border: 2px solid rgba(20,18,8,0.14); border-radius: 16px; background: #fff; cursor: pointer; font-family: var(--sans); color: #1b1a14; }
.pz-fibra b { font-family: var(--serif); font-size: 1.05rem; color: #141414; line-height: 1.2; margin-top: 0.35rem; }
.pz-fibra > span:not(.pz-fibra-ico) { font-size: 0.86rem; color: #4b483d; line-height: 1.3; }
.pz-fibra-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #141414; display: grid; place-items: center; }
.pz-fibra-ico svg { width: 20px; height: 20px; }
.pz-fibra.is-on { border-color: #141414; background: var(--gold); box-shadow: 0 0 0 1px #141414 inset; }
.pz-fibra.is-on .pz-fibra-ico { background: #fff; }
.pz-fibra.is-on > span:not(.pz-fibra-ico) { color: #1b1a14; }
.pz-check { position: absolute; top: 0.6rem; right: 0.6rem; width: 26px; height: 26px; border-radius: 50%; background: #141414; color: #fff; display: grid; place-items: center; }
.pz-check svg { width: 16px; height: 16px; }

/* Pas 2: línies */
.pz-linia { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico nom cnt" "ico desc desc" ". preu preu"; align-items: center; column-gap: 0.75rem; row-gap: 0.1rem; padding: 0.8rem 0; border-top: 1px solid rgba(20,18,8,0.1); }
.pz-linia-tx { display: contents; }
.pz-linia-ico { grid-area: ico; align-self: start; }
.pz-linia-tx > b { grid-area: nom; }
.pz-linia-tx > span { grid-area: desc; }
.pz-linia-tx > em { grid-area: preu; }
.pz-comptador { grid-area: cnt; }
.pz-linia:first-child { border-top: 0; padding-top: 0.2rem; }
.pz-linia-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #141414; display: grid; place-items: center; }
.pz-linia-ico svg { width: 21px; height: 21px; }
.pz-linia-tx > * { line-height: 1.3; min-width: 0; }
.pz-linia-tx > b { font-family: var(--serif); font-size: 1.08rem; color: #141414; }
.pz-linia-tx > span { font-size: 0.86rem; color: #4b483d; }
.pz-linia-tx > em { font-style: normal; font-size: 0.9rem; font-weight: 700; color: #8a6f00; margin-top: 0.1rem; }
.pz-linia-tx > em s { color: #8b8578; font-weight: 500; margin-right: 0.15rem; }
.pz-ganxo { color: #0f6b34; font-weight: 700; }
.pz-linia.is-off .pz-linia-ico { background: #e9e7df; color: #9a978c; }
.pz-linia.is-off .pz-linia-tx > b, .pz-linia.is-off .pz-linia-tx > span { color: #9a978c; }
.pz-linia.is-off .pz-linia-tx > em { color: #9a978c; font-weight: 500; }
.pz-comptador { display: flex; align-items: center; gap: 0.35rem; }
.pz-comptador output { min-width: 1.6rem; text-align: center; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: #141414; }
.pz-menys, .pz-mes { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #141414; background: #fff; color: #141414; font-size: 1.45rem; line-height: 1; font-weight: 600; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pz-mes { background: #141414; color: #fff; }
.pz-menys[disabled] { border-color: #d9d6cc; color: #c9c5b8; cursor: default; }
.pz-linia.is-off .pz-mes { background: #fff; border-color: #d9d6cc; color: #b9b5a8; }

/* Fibra 300: oferta tancada */
.pz-tancada { background: #fff; border: 1px solid rgba(233,196,0,0.45); border-radius: 14px; padding: 0.9rem; margin-bottom: 0.4rem; }
.pz-inclosa { position: relative; display: flex; align-items: center; gap: 0.7rem; }
.pz-inclosa > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--gold); color: #141414; flex: none; }
.pz-inclosa b { display: block; font-family: var(--serif); font-size: 1.08rem; color: #141414; }
.pz-inclosa span { font-size: 0.88rem; color: #4b483d; }
.pz-inclosa .pz-check { position: static; margin-left: auto; }
.pz-tancada-t { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.92rem; color: #1b1a14; margin: 0.8rem 0 0.7rem; line-height: 1.4; }
.pz-tancada-t svg { width: 18px; height: 18px; flex: none; margin-top: 0.1rem; color: #8a6f00; }
.pz-canvia { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 0.95rem; border-radius: 12px; border: 2px solid #141414; background: #fff; color: #141414; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; cursor: pointer; text-align: left; line-height: 1.25; }

.pz-nota { display: flex; gap: 0.4rem; align-items: center; margin: 0.6rem 0 0; font-size: 0.86rem; color: #6b5600; }
.pz-nota svg { width: 15px; height: 15px; flex: none; }

.pz-mes-t { margin: 0.9rem 0 0.2rem; font-size: 0.95rem; font-weight: 600; color: #1b1a14; }

/* Avisos intel·ligents */
.pz-avis { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.8rem; padding: 0.85rem 0.9rem; border-radius: 14px; background: #f4f4f1; color: #1b1a14; }
.pz-avis.is-fort { background: #fff3c4; box-shadow: 0 0 0 2px var(--gold) inset; }
.pz-avis-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.pz-avis-ico svg { width: 22px; height: 22px; color: #8a6f00; }
.pz-avis p { margin: 0 0 0.55rem; font-size: 0.95rem; line-height: 1.45; }
.pz-avis p:last-child { margin-bottom: 0; }

/* Resum */
.pz-resum { background: #fff; border: 2px solid #141414; border-radius: 18px; padding: 1.15rem 1.1rem 1.1rem; }
.pz-resum-t { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: #141414; margin: 0 0 0.7rem; }
.pz-buit { color: #4b483d; margin: 0; font-size: 0.98rem; }
.pz-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pz-items li { display: flex; gap: 0.65rem; align-items: center; }
.pz-it-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #141414; display: grid; place-items: center; flex: none; }
.pz-it-ico svg { width: 18px; height: 18px; }
.pz-items b { display: block; font-size: 1rem; color: #141414; line-height: 1.25; }
.pz-items span { font-size: 0.84rem; color: #4b483d; }
.pz-oferta { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 0.45rem; margin: 0.9rem 0 0; padding: 0.55rem 0.7rem; border-radius: 10px; background: #eaf7ee; color: #0f6b34; font-size: 0.9rem; font-weight: 700; }
.pz-oferta svg { width: 18px; height: 18px; margin-top: 0.1rem; }
.pz-oferta s { color: #6b8f78; font-weight: 500; }
.pz-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgba(20,18,8,0.12); }
.pz-total > span { font-size: 1rem; font-weight: 600; color: #1b1a14; }
.pz-total b { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; color: #141414; letter-spacing: -0.02em; line-height: 1; }
.pz-total small { font-size: 1rem; font-weight: 600; color: #4b483d; letter-spacing: 0; }
.pz-iva { font-size: 0.84rem; color: #4b483d; margin: 0.35rem 0 0.9rem; text-align: right; }
.pz-resum .btn { min-height: 52px; font-size: 1.04rem; }
.pz-resum .btn-primary { background: var(--gold); box-shadow: none; }
.pz-resum .btn + .btn { margin-top: 0.6rem; }
.pz-resum .pz-wa { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #25d366; border: 0; color: #fff; font-weight: 700; }
.pz-resum .pz-wa svg { width: 22px; height: 22px; }
.pz-resum .pz-wa:hover { background: #1ebe5b; color: #fff; }
.pz-peu { font-size: 0.76rem; color: #8b8578; margin: 0.9rem 0 0; text-align: center; }
.pz-peu a { color: #8b8578; text-decoration: underline; }
.pz-legal { max-width: 640px; margin: 0.5rem auto 0; font-size: 0.8rem; line-height: 1.5; color: #6b6558; text-align: center; }

/* Barra fixa al mòbil */
.pz-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(20,18,8,0.14); box-shadow: 0 -8px 24px -18px rgba(20,18,8,0.4); }
.pz-barra-p span { display: block; font-size: 0.78rem; color: #4b483d; }
.pz-barra-p b { font-family: var(--serif); font-weight: 800; font-size: 1.4rem; color: #141414; }
.pz-barra .btn { min-height: 50px; padding: 0.8rem 1.4rem; background: var(--gold); box-shadow: none; }
.pz-barra-a { display: flex; align-items: center; gap: 0.5rem; }
.pz-barra-wa { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: #0f7a3d; border: 1px solid rgba(37,211,102,0.55); background: #fff; }
.pz-barra-wa svg { width: 24px; height: 24px; }
@media (max-width: 879px) {
  .pz-barra.is-on { display: flex; }
  body.pz-actiu .wa-float { display: none; }
}
