/* Cotizador: preguntas a la izquierda, presupuesto fijo a la derecha (abajo en celular). */

/* Portada de una columna: el cotizador empieza justo debajo. */
html:not(.ph-oscura) .ph-light.cz-ph { padding-bottom: clamp(20px, 2.4vw, 32px); }
.cz-ph .ph-in, html:not(.ph-oscura) .ph-light.cz-ph .ph-in { grid-template-columns: minmax(0, 1fr); max-width: 1360px; margin-inline: auto; }
.cz-perks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: var(--t-small); font-weight: 500; }
.cz-perks li { display: flex; align-items: center; gap: .45em; }
.cz-perks svg { width: 18px; height: 18px; color: var(--brand); }
html.ph-oscura .cz-perks svg { color: var(--lime); }

.cz { padding-top: clamp(4px, 1vw, 12px); }
.cz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: var(--gap); align-items: start; max-width: 1360px; margin-inline: auto; }
.cz-steps { display: grid; gap: var(--gap); min-width: 0; }

/* Cada pregunta */
.cz-step { min-width: 0; margin: 0; border: 0; padding: clamp(22px, 2.6vw, 36px); }
.cz-legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; padding: 0; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.cz-legend + * { clear: both; }
.cz-legend-note { flex-basis: 100%; padding-left: 44px; font-size: var(--t-small); font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--soft); }
.cz-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-size: 1rem; font-variant-numeric: tabular-nums; }
.cz-n svg { width: 17px; height: 17px; }

/* Opciones: tarjetas que se marcan enteras */
.cz-opts { display: grid; gap: 10px; }
.cz-opts[hidden], .cz-opt[hidden], .cz-skip[hidden] { display: none; }
.cz-opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cz-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cz-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cz-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease, transform .1s ease-out; }
.cz-opt:active { transform: scale(.985); }
.cz-opt input, .cz-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cz-opt b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.cz-opt small { font-size: .9375rem; line-height: 1.35; color: var(--soft); }
.cz-opt em { margin-top: auto; padding-top: 4px; font-style: normal; font-size: .9375rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.cz-opt .ico-box { margin-bottom: 4px; background: var(--tile); }
.cz-opt.is-on { background: color-mix(in srgb, var(--lime) 20%, var(--tile)); box-shadow: inset 0 0 0 2px var(--lime); }
.cz-opt.is-on .ico-box { background: var(--lime); color: var(--on-lime); }
.cz-opt:has(input:focus-visible), .cz-chip:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (hover: hover) {
  .cz-opt:hover { box-shadow: inset 0 0 0 1.5px var(--input); }
  .cz-opt.is-on:hover { box-shadow: inset 0 0 0 2px var(--lime); }
}

/* Marca a la derecha: círculo para elegir una, cuadro para varias */
.cz-opt-row::after, .cz-check::after { content: ''; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; box-shadow: inset 0 0 0 1.5px var(--input); transition: box-shadow .15s ease, background-color .15s ease; }
.cz-opt-row::after { border-radius: 50%; }
.cz-check::after { border-radius: 7px; }
.cz-opt-row.is-on::after { box-shadow: inset 0 0 0 7px var(--ink); }
.cz-check.is-on::after { box-shadow: none; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2a3d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cz-opt-row b, .cz-check b { padding-right: 32px; }

.cz-skip { display: flex; align-items: flex-start; gap: .55em; padding: 16px; border-radius: 16px; background: var(--bg); color: var(--soft); line-height: 1.4; }
.cz-skip svg { flex: none; width: 19px; height: 19px; margin-top: .12em; color: var(--brand); }

.cz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bg); font-weight: 500; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.cz-chip.is-on { background: var(--lime); color: var(--on-lime); }

/* Presupuesto */
.cz-sum { position: sticky; top: 92px; min-width: 0; }
.cz-card { padding: clamp(24px, 2.4vw, 32px); }
.cz-card .kicker { font-size: var(--t-small); }
.cz-total { display: flex; flex-direction: column; margin-top: 14px; font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.625rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cz-total small { margin-bottom: 4px; font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: #aeb9c7; }
#cz-total { display: inline-block; }
.cz-once { margin-top: 8px; font-size: var(--t-small); color: #c9d2dc; }
.cz-lines { display: grid; gap: 8px; margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9375rem; line-height: 1.3; }
.cz-lines li { display: flex; justify-content: space-between; gap: 12px; }
.cz-lines span { color: #dbe2ea; }
.cz-lines b { flex: none; font-weight: 600; text-align: right; color: #ffffff; font-variant-numeric: tabular-nums; }
.cz-time { display: flex; align-items: flex-start; gap: .55em; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .9375rem; line-height: 1.35; color: #dbe2ea; }
.cz-time svg { flex: none; width: 18px; height: 18px; margin-top: .1em; color: var(--lime); }
.cz-time b { color: #ffffff; font-weight: 600; }
.cz-month { margin-top: 16px; }
.cz-month-h { font-size: var(--t-small); font-weight: 600; color: #dfe65a; }
.cz-month .cz-lines { margin-top: 8px; padding-top: 10px; }
.cz-wa { width: 100%; justify-content: center; margin-top: 22px; }
.cz-alt { align-self: center; margin-top: 4px; color: #dfe65a; }
.cz-fine { margin-top: 8px; font-size: .8125rem; line-height: 1.4; text-align: center; color: #aeb9c7; }

/* Barra del celular: deja libre la esquina del botón de WhatsApp */
.cz-bar { position: fixed; left: 12px; right: 72px; bottom: 12px; z-index: 29; display: none; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--navy); color: #f2f5f8; box-shadow: 0 14px 40px rgba(4, 8, 16, .35); transform: translateY(160%); transition: transform .32s var(--ease-out); }
.cz-bar.is-on { transform: none; }
.cz-bar-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.cz-bar-t small { font-size: .75rem; color: #aeb9c7; }
.cz-bar-t b { font-size: .9375rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cz-bar .btn { flex: none; min-height: 40px; padding-inline: 14px; font-size: .875rem; }

.cz-faq-list { max-width: 1360px; margin-inline: auto; padding-block: clamp(8px, 1.4vw, 18px); }

@media (max-width: 1200px) {
  .cz-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cz-grid { grid-template-columns: minmax(0, 1fr); }
  .cz-sum { position: static; scroll-margin-top: 80px; }
  .cz-bar { display: flex; }
  .cz-opts-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cz-step { padding: 20px 16px; }
  .cz-legend-note { padding-left: 0; }
  .cz-opts-2 { grid-template-columns: minmax(0, 1fr); }
  .cz-opts-4 .cz-opt small { display: none; }
  .cz-opts-4 .cz-opt { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-bar { transition: none; }
}
/* Pantallas bajas: el resumen podría no caber fijo; baja con la página. */
@media (min-width: 901px) and (max-height: 760px) {
  .cz-sum { position: static; }
}
