/* Xatcom · cuestionario de contacto por pasos. Todo bajo .xc para no tocar nada más. */
.xc {
  --xc-marca: #8b2c5f;
  --xc-marca-osc: #6d2049;
  --xc-texto: #2b2730;
  --xc-suave: #625c68;
  --xc-borde: #8d8492;
  --xc-error: #b3261e;
  box-sizing: border-box;
  min-height: 620px; /* reserva del paso 1: el contenido cambia sin mover la página */
  padding: 28px;
  border-radius: 12px;
  background: #f7f4f6;
  color: var(--xc-texto);
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: lining-nums; /* Raleway trae cifras antiguas por defecto */
  line-height: 1.5;
  text-align: left;
}
.xc *, .xc *::before, .xc *::after { box-sizing: border-box; }
.xc [hidden] { display: none !important; }
.xc p { margin: 0; padding: 0; font-family: inherit; font-weight: inherit; }
.xc br { display: none; }

.xc-cabecera { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.xc .xc-progreso-t { grid-column: 2; grid-row: 1; font-size: 14px; font-weight: 600; color: var(--xc-suave); line-height: 44px; }
.xc-progreso { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #e3d8de; overflow: hidden; }
.xc-progreso span { display: block; width: 25%; height: 100%; border-radius: 3px; background: var(--xc-marca); transition: width .25s; }

.wpcf7 .xc button { font-family: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; }
.wpcf7 .xc .xc-atras {
  grid-column: 1; grid-row: 1; justify-self: start; visibility: hidden; min-height: 44px; margin: 0; padding: 0 12px 0 0;
  border: 0; background: none; color: var(--xc-marca); font-size: 15px; font-weight: 600;
}
.wpcf7 .xc .xc-atras.xc-visible { visibility: visible; }
.wpcf7 .xc .xc-atras:hover { text-decoration: underline; }

.xc .xc-titulo { margin: 0 0 18px; padding: 0; font-family: inherit; font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--xc-texto); }
.xc .xc-titulo:focus { outline: none; }
.xc .xc-titulo:focus-visible { outline: 3px solid var(--xc-marca); outline-offset: 4px; border-radius: 4px; }
.xc .xc-texto { margin-bottom: 18px; }

.xc-campo { margin: 0 0 20px; }
.xc .xc-etiqueta { display: block; margin: 0 0 8px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--xc-texto); }
.xc-ayuda { font-size: 14px; font-weight: 500; color: var(--xc-suave); }
.xc .xc-control { display: block; position: relative; }

.xc-tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wpcf7 .xc .xc-tarjeta {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; width: 100%; min-height: 106px; margin: 0; padding: 16px;
  border: 1.5px solid #d9cdd4; border-radius: 12px; background: #fff; color: var(--xc-texto); text-align: left; white-space: normal; line-height: 1.4;
}
.xc-op-t { font-size: 17px; font-weight: 700; }
.xc-op-s { font-size: 14px; font-weight: 500; color: var(--xc-suave); }
.xc-op-p { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--xc-marca); }
.wpcf7 .xc .xc-tarjeta:hover { border-color: var(--xc-marca); }
.wpcf7 .xc .xc-tarjeta[aria-pressed="true"] { border-color: var(--xc-marca); background: #fbeff5; box-shadow: inset 0 0 0 1.5px var(--xc-marca); }

.xc-pildoras { display: flex; flex-wrap: wrap; gap: 10px; }
.wpcf7 .xc .xc-pildora {
  min-height: 44px; margin: 0; padding: 8px 18px; border: 1.5px solid var(--xc-borde); border-radius: 999px; background: #fff;
  color: var(--xc-texto); font-size: 15px; font-weight: 600; line-height: 1.3; white-space: normal;
}
.wpcf7 .xc .xc-pildora .xc-op-t { font-size: inherit; font-weight: inherit; }
.wpcf7 .xc .xc-pildora:hover { border-color: var(--xc-marca); }
.wpcf7 .xc .xc-pildora[aria-pressed="true"] { border-color: var(--xc-marca); background: var(--xc-marca); color: #fff; }

.wpcf7 .xc .xc-input {
  display: block; width: 100%; max-width: none; min-height: 48px; margin: 0; padding: 11px 14px; border: 1.5px solid var(--xc-borde);
  border-radius: 10px; background: #fff; box-shadow: none; color: var(--xc-texto); font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.5;
}
.wpcf7 .xc textarea.xc-input { height: auto; min-height: 96px; resize: vertical; }
.xc-con-error .xc-input { border-color: var(--xc-error) !important; }
.xc .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--xc-error); }

.wpcf7 .xc button:focus-visible, .wpcf7 .xc a:focus-visible, .wpcf7 .xc .xc-input:focus, .wpcf7 .xc input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--xc-marca); outline-offset: 2px;
}

.xc-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.wpcf7 .xc .xc-boton {
  display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 48px; margin: 0; padding: 10px 24px;
  border: 1.5px solid var(--xc-marca); border-radius: 10px; background: var(--xc-marca); color: #fff; font-family: inherit; font-size: 16px;
  font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; white-space: normal;
}
.wpcf7 .xc .xc-boton:hover { border-color: var(--xc-marca-osc); background: var(--xc-marca-osc); color: #fff; }
.wpcf7 .xc .xc-boton-2 { background: #fff; color: var(--xc-marca); }
.wpcf7 .xc .xc-boton-2:hover { border-color: var(--xc-marca); background: #fbeff5; color: var(--xc-marca-osc); }
.wpcf7 .xc .wpcf7-spinner { margin: 0; }
.wpcf7 form:not(.submitting) .xc .wpcf7-spinner { display: none; }

.xc-resumen { margin-bottom: 10px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1.5px solid #d9cdd4; }
.xc .xc-resumen-t { font-size: 16px; font-weight: 600; }
.xc .xc-resumen-p { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--xc-marca); }
.xc .xc-nota { margin-bottom: 22px; font-size: 14px; color: var(--xc-suave); }

.xc-turnstile { min-height: 73px; margin-bottom: 14px; }
.xc-turnstile .cf7-cf-turnstile { margin: 0 !important; }
.xc-privacidad { margin-bottom: 14px; }
.xc-privacidad .wpcf7-list-item { margin: 0; }
.xc-privacidad label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 15px; line-height: 1.4; cursor: pointer; }
.wpcf7 .xc-privacidad input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--xc-marca); }
.xc a:not(.xc-boton) { color: var(--xc-marca); text-decoration: underline; }
.wpcf7 form .xc .wpcf7-response-output { margin: 0 0 14px; padding: 10px 14px; border: 1.5px solid var(--xc-error); border-radius: 10px; background: #fff; font-size: 15px; }
.wpcf7 form.sent .xc .wpcf7-response-output { border-color: #2e7d32; }
.xc .xc-respuesta { margin-top: 16px; font-size: 15px; font-weight: 600; }
.xc .xc-legal { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--xc-suave); }
.xc .xc-noscript { margin-bottom: 16px; font-weight: 600; }

@media (max-width: 600px) {
  .xc { min-height: 800px; padding: 20px 16px; }
  .xc .xc-titulo { font-size: 22px; }
  .xc-tarjetas { grid-template-columns: minmax(0, 1fr); }
  .wpcf7 .xc .xc-tarjeta { min-height: 84px; }
  .xc-acciones .xc-boton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .xc-progreso span { transition: none; } }
