/* Página de partners.
 *
 * Complementa a calculadoras.css, que ya trae la cabecera, el pie, la
 * tipografía, los botones, .callout y el patrón de radio-tarjeta (.options).
 * Aquí sólo va lo que las calculadoras no tienen: controles de texto, área de
 * texto, select y los estados del envío. Se apoya en sus mismas variables para
 * que no haya dos paletas conviviendo.
 */

/* Beneficios */

.benefit-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0 0 12px;
}

.benefit {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.benefit h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text-100);
}

.benefit p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-300);
}

.benefit-num {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pasos */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 52px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-200);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid rgba(43, 182, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
  color: var(--ice);
}

.steps strong {
  color: var(--text-100);
}

/* Formulario */

.pf-fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.pf-fieldset:last-of-type {
  margin-bottom: 0;
}

.pf-legend {
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-400);
}

.pf-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.pf-grid .pf-wide {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
}

.pf-input,
.pf-select,
.pf-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-100);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pf-textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.pf-input:hover,
.pf-select:hover,
.pf-textarea:hover {
  border-color: var(--line-2);
}

.pf-input:focus,
.pf-select:focus,
.pf-textarea:focus {
  outline: none;
  border-color: rgba(43, 182, 255, 0.6);
  background: var(--surface-2);
}

.pf-input:focus-visible,
.pf-select:focus-visible,
.pf-textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.pf-input::placeholder,
.pf-textarea::placeholder {
  color: var(--text-400);
}

/* El select nativo en oscuro hereda el fondo del sistema en algunos
   navegadores; se fuerza el de las opciones para que no salga blanco. */
.pf-select option {
  background: var(--bg-3);
  color: var(--text-100);
}

.pf-req {
  color: var(--blue);
}

/* Bloques que sólo aplican a un tipo de partner. Ocultos por defecto: si el
   JS no llegara a ejecutarse, se muestran todos (regla .is-on aparte) y el
   formulario sigue siendo usable. */
.pf-when {
  display: none;
}

.pf-when.is-on {
  display: block;
}

.pf-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-300);
}

.pf-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #2bb6ff;
}

.pf-consent a {
  color: var(--ice);
}

.pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.pf-actions .btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.pf-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-200);
}

.pf-status[hidden] {
  display: none;
}

.pf-status.is-error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.pf-status.is-ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

/* Honeypot: invisible para personas, presente para los bots que rellenan
   todo lo que encuentran. No se usa display:none porque hay bots que lo
   detectan y se saltan el campo. */
.pf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Éxito: sustituye al formulario entero para que no se reenvíe sin querer. */
.pf-done {
  text-align: center;
  padding: 34px 20px;
}

.pf-done h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.pf-done p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--text-300);
  line-height: 1.6;
}
