/* Cotizador automático de marca blanca */
.pcq { max-width: 980px; }
.pcq .cot-step { display: none; }
.pcq .cot-step.is-active { display: block; animation: cot-in .3s ease; }
.pcq-kicker { margin: 0 0 6px; font: 700 12px/1.3 "Albert Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text); }
.pcq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pcq-label { font-weight: 700; margin: 6px 0 10px; color: var(--heading); }
.pcq-label small { font-weight: 500; color: var(--ink-soft); }

.pcq-lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pcq-line { position: relative; cursor: pointer; }
.pcq-line input { position: absolute; opacity: 0; inset: 0; }
.pcq-line span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--mist); transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .2s, box-shadow .3s; }
.pcq-line img { width: auto; height: 96px; align-self: center; margin-bottom: 10px; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .18)); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.pcq-line b { font: 700 1.35rem/1.1 var(--display); color: var(--heading); }
.pcq-line small { color: var(--ink-soft); font-size: .86rem; }
.pcq-line:hover span { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 18px 30px -20px rgba(0, 56, 56, .45); }
.pcq-line:hover img { transform: scale(1.06) rotate(-3deg); }
.pcq-line input:checked + span { border-color: var(--heading); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--heading); }
.pcq-line input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.pcq-prods, .pcq-pres { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.pcq-pres { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: none; margin-bottom: 18px; }
.pcq .cot-opt span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 58px; }
.pcq .cot-opt small { font-weight: 500; font-size: .84rem; color: var(--ink-soft); }
.pcq .cot-opt input:checked + span small { color: rgba(255, 255, 255, .8); }

.pcq-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pcq-qty input { width: 140px; padding: 12px 14px; font: 700 1.2rem/1 inherit; text-align: center; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: var(--radius-sm); }
.pcq-qty input:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.pcq-step { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.4rem; cursor: pointer; color: var(--heading); }
.pcq-step:hover { border-color: var(--teal); }
.pcq-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; }
.pcq-quick button { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.pcq-quick button:hover { border-color: var(--teal); color: var(--heading); }

.pcq-emps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pcq-emp { position: relative; cursor: pointer; }
.pcq-emp[hidden] { display: none; }
.pcq-emp input { position: absolute; opacity: 0; inset: 0; }
.pcq-emp span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); transition: .15s; }
.pcq-emp b { color: var(--heading); }
.pcq-emp small { color: var(--ink-soft); }
.pcq-emp em { font-style: normal; font-weight: 700; color: var(--teal-text); margin-top: auto; padding-top: 6px; }
.pcq-emp:hover span { border-color: var(--teal); }
.pcq-emp input:checked + span { border-color: var(--heading); background: var(--deep); }
.pcq-emp input:checked + span b, .pcq-emp input:checked + span small, .pcq-emp input:checked + span em { color: #fff; }
.pcq-emp input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pcq-note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }

.pcq-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 22px; padding: 14px 18px; border-radius: var(--radius); background: var(--mist); }
.pcq-live[hidden] { display: none; }
.pcq-live span { font-weight: 600; color: var(--ink-soft); }
.pcq-live b { font: 700 1.6rem/1 var(--display); color: var(--heading); }
.pcq-live small { color: var(--ink-soft); }
.pcq-other { font-size: .9rem; color: var(--ink-soft); margin: 18px 0 0; }
.pcq .btn.is-loading { opacity: .7; pointer-events: none; }

.pcq-result[hidden] { display: none; }
.pcq-doc h3 { margin: 0 0 16px; }
.pcq-table { width: 100%; border-collapse: collapse; }
.pcq-table th, .pcq-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; vertical-align: top; }
.pcq-table th { color: var(--ink-soft); }
.pcq-table td { text-align: right; font-weight: 600; }
.pcq-table td small { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.pcq-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--deep); color: #fff; }
.pcq-total span { font-weight: 600; }
.pcq-total b { font: 700 clamp(1.8rem, 4vw, 2.4rem)/1 var(--display); color: var(--cta); }
.pcq-total small { width: 100%; text-align: right; opacity: .85; }
.pcq-fine { font-size: .85rem; color: var(--ink-soft); margin: 14px 0 0; }
.pcq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pcq-asesor { display: flex; align-items: center; gap: 16px; margin: 20px 0 8px; padding: 16px; border-radius: var(--radius); background: var(--mist); }
.pcq-asesor img, .pcq-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.pcq-avatar { display: grid; place-items: center; background: var(--deep); color: #fff; font: 700 1.8rem/1 var(--display); }
.pcq-asesor small { display: block; color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.pcq-asesor b { display: block; font-size: 1.2rem; color: var(--heading); }
.pcq-asesor span { color: var(--ink-soft); font-size: .92rem; }
.pcq-cal { min-width: 280px; height: 720px; margin-top: 8px; border-radius: var(--radius); overflow: hidden; }

@media (max-width: 800px) {
	.pcq-lines { grid-template-columns: 1fr 1fr; }
	.pcq-line img { height: 72px; }
}
@media (max-width: 480px) {
	.pcq-quick { margin-left: 0; }
	.pcq-cal { height: 900px; }
}
@media (max-width: 600px) {
	.pcq-pres { grid-template-columns: repeat(2, 1fr); }
	.pcq-prods { grid-template-columns: 1fr; max-height: 460px; }
}

/* Celebración al aceptar */
.pcq-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
.pcq-win { text-align: left; }
.pcq-badge { width: 76px; height: 76px; margin-bottom: 14px; animation: pcqPop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.pcq-badge svg { width: 100%; height: 100%; }
.pcq-badge circle { fill: var(--teal); stroke: none; }
.pcq-badge path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: pcqDraw .45s .45s ease forwards; }
.pcq-big { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; }
.pcq-next { padding: 14px 16px; border-left: 4px solid var(--cta); background: color-mix(in srgb, var(--cta) 12%, transparent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pcq-in { opacity: 0; transform: translateY(14px); animation: pcqIn .6s var(--d, 0s) cubic-bezier(.16, 1, .3, 1) forwards; }
.pcq-win .pcq-cal { opacity: 0; animation: pcqIn .6s .85s ease forwards; }
@keyframes pcqPop { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pcqDraw { to { stroke-dashoffset: 0; } }
@keyframes pcqIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pcq-in, .pcq-badge, .pcq-win .pcq-cal { animation: none; opacity: 1; transform: none; } .pcq-badge path { stroke-dashoffset: 0; animation: none; } }
