/* Ahá Herramientas Digitales · Calculadora de presupuesto para Meta Ads y Google Ads */
.cp-tit { font-size: 1.02rem; color: var(--navy); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-bloque { margin-bottom: 22px; }
.cp-bloque:last-child { margin-bottom: 0; }

/* Opciones tipo tarjeta (radios reales, accesibles) */
.cp-radios { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.cp-radios legend { font-size: 1.02rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; padding: 0; }
.cp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.3; transition: border-color .12s, background .12s; }
.cp-form .cp-opt { flex-direction: row; gap: 10px; }
.cp-opt:hover { border-color: var(--blue); }
.cp-opt input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--orange); }
.cp-opt:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.cp-opt:has(input:focus-visible) { outline: 3px solid rgba(254, 130, 2, .55); outline-offset: 2px; }

/* Campos */
.cp-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; min-width: 0; }
.cp-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; min-height: 44px; }
.cp-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 188, .15); }
.cp-input input { border: 0 !important; box-shadow: none !important; border-radius: 0; flex: 1; min-width: 0; width: 100%; font-weight: 700; font-size: 1rem; padding: .55em .7em; background: transparent; }
.cp-pre, .cp-suf { display: grid; place-items: center; padding: 0 10px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.cp-pre { border-right: 1px solid var(--line); }
.cp-suf { border-left: 1px solid var(--line); }

/* Supuestos */
.cp-supuestos { background: var(--bg); border-radius: 16px; padding: 16px; }
.cp-sup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cp-sup-head .cp-tit { margin: 0; }
.cp-aviso-sup { margin: 6px 0 14px; }
.cp-plataformas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-plat { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 14px 14px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-plat legend { font-weight: 800; font-size: .9rem; color: var(--navy); padding: 0 6px; }
.cp-plat-meta { border-top: 3px solid #1877f2; }
.cp-plat-google { border-top: 3px solid #34a853; }

/* Resultado */
.cp-res { margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.cp-res-tit { font-size: 1.2rem; }
.cp-resumen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.cp-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-card-meta { border-left: 4px solid #1877f2; }
.cp-card-google { border-left: 4px solid #34a853; }
.cp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cp-big { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; color: var(--navy); line-height: 1.15; overflow-wrap: anywhere; }
.cp-big-lbl { color: var(--ink-2); font-size: .88rem; }
.cp-card-sub { color: var(--muted); font-size: .84rem; margin-top: 6px; }
.cp-card-sub b { color: var(--ink); }

.cp-tabla-wrap { border: 1px solid var(--line); border-radius: 14px; }
.cp-tabla th[scope=row] { color: var(--ink-2); font-weight: 600; font-size: .86rem; text-transform: none; letter-spacing: 0; }
.cp-tabla thead th { background: var(--bg); }
.cp-tabla td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-tabla tbody tr:last-child th, .cp-tabla tbody tr:last-child td { border-bottom: 0; }
.cp-neg { color: var(--err); font-weight: 700; }
.cp-pos { color: var(--ok); font-weight: 700; }
.cp-avisos { margin-top: 12px; }
.cp-avisos:empty { display: none; }

.cp-equilibrio { margin-top: 16px; }
.cp-equilibrio h3 { font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.cp-equilibrio p { margin: 0 0 10px; }
.cp-eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-eq { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: .88rem; min-width: 0; }
.cp-eq ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.cp-eq li { margin-bottom: 4px; }
.cp-eq li b { color: var(--ink); }
.cp-nota { margin: 14px 0 0; }

/* Pedido para la agencia */
.cp-lead { margin-top: 24px; border-radius: 18px; padding: 22px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.cp-lead h2 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: .3em; }
.cp-lead-copy p { color: #dbe5f8; margin: 0 0 14px; }
.cp-lead .form label { color: #fff; }
.cp-lead .form label small { color: #c3d2ef; }
.cp-lead-form .fila > label { flex: 1 1 200px; }
.cp-lead-form input[type=tel] { font: inherit; font-size: .95rem; padding: .6em .8em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 42px; }
.cp-lead-form .btn { align-self: flex-start; }
.cp-lead-nota { margin: 0; color: #c3d2ef !important; }
.cp-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cp-lead-ok { outline: none; }
.cp-lead-ok b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.cp-lead-ok p { margin: 0; color: #dbe5f8 !important; }

.cp-glosario { margin-top: 18px; padding: 18px; }
.cp-glosario h3 { font-size: 1rem; color: var(--navy); }
.cp-glosario ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .93rem; }
.cp-glosario li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .cp-campos { grid-template-columns: 1fr 1fr; }
  .cp-opts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cp-campos, .cp-plataformas, .cp-resumen, .cp-eq-grid, .cp-opts-2 { grid-template-columns: 1fr; }
  .cp-supuestos { padding: 12px; }
  .cp-tabla { font-size: .8rem; }
  .cp-tabla th, .cp-tabla td { padding: 8px 6px; }
  .cp-tabla th[scope=row] { font-size: .78rem; min-width: 120px; }
  .cp-tabla td { white-space: normal; }
  .cp-lead { padding: 18px 14px; }
  .cp-lead-form .btn { align-self: stretch; white-space: normal; }
  .cp-glosario { padding: 14px; }
}
