/*
 * Audantra CRM · estilos de la capa de formularios (mu-plugin, no el tema).
 * Los carga audantra-crm.php en todas las páginas; usan las variables del tema
 * (--lav, --line-2, --tx-3…) con un valor de respaldo por si cambian.
 */
.rxt-grupo { margin: 4px 0 -4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3, #9d98b3); }
.rxt-fields .rxt-ancho { grid-column: 1 / -1; }
.rxt-fields select { width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--line-2, rgba(255,255,255,.14)); border-radius: 11px; padding: 12px 13px; color: #fff; font: 400 15px var(--fb, inherit); transition: border-color .2s, background .2s; appearance: none; }
.rxt-fields select:focus { outline: 0; border-color: var(--lav, #9575FC); background: rgba(149,117,252,.08); }
.rxt-fields select.bad { border-color: var(--red, #ff6b6b); }
.rxt-fields select option { color: #111; }
.rxt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--tx-3, #9d98b3); cursor: pointer; }
.rxt-check input { margin-top: 2px; accent-color: var(--lav, #9575FC); }

/* Selector propio (select[data-au-select] → .au-sel) */
.au-sel { position: relative; }
.au-sel > select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.au-sel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid var(--line-2, rgba(255,255,255,.14)); border-radius: 11px; padding: 12px 13px; color: #fff; font: 400 15px var(--fb, inherit); cursor: pointer; transition: border-color .2s, background .2s; }
.au-sel-btn:focus-visible, .au-sel.open .au-sel-btn { outline: 0; border-color: var(--lav, #9575FC); background: rgba(149,117,252,.08); }
.au-sel-btn.bad { border-color: var(--red, #ff6b6b); }
.au-sel-btn .au-sel-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-sel-btn .au-sel-txt.vacio { color: var(--tx-3, #9d98b3); }
.au-sel-btn svg { flex: none; width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.au-sel.open .au-sel-btn svg { transform: rotate(180deg); }
.au-sel-panel { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); min-width: 260px; max-height: 320px; display: flex; flex-direction: column; background: rgba(22,18,38,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2, rgba(255,255,255,.14)); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.45); overflow: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.au-sel.open .au-sel-panel { opacity: 1; transform: none; pointer-events: auto; }
.au-sel.arriba .au-sel-panel { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.au-sel.arriba.open .au-sel-panel { transform: none; }
.au-sel-buscar { margin: 8px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-2, rgba(255,255,255,.14)); background: rgba(255,255,255,.05); color: #fff; font: 400 14px var(--fb, inherit); }
.au-sel-buscar:focus { outline: 0; border-color: var(--lav, #9575FC); }
.au-sel-lista { overflow-y: auto; padding: 4px 6px 8px; margin: 0; list-style: none; }
.au-sel-grupo { padding: 10px 8px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3, #9d98b3); }
.au-sel-op { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: #fff; font-size: 14.5px; }
.au-sel-op small { font-size: 12px; color: var(--tx-3, #9d98b3); }
.au-sel-op.activa { background: rgba(149,117,252,.16); }
.au-sel-op[aria-selected="true"] { color: var(--lav, #9575FC); }
.au-sel-nada { padding: 12px 10px; font-size: 13px; color: var(--tx-3, #9d98b3); }
@media (max-width: 640px) { .au-sel-panel { max-height: 260px; } }

/* Servicios de interés (chips) */
.sv { display: grid; gap: 10px; }
.sv-chips, .sv-sub { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-sub[hidden], .sv-por[hidden] { display: none; }
/* Ya enviado: el tema da display:grid al formulario y le ganaba a [hidden]. */
.rxt-form[hidden] { display: none; }
.rxt-ayuda { font-size: 12px; color: var(--tx-3, #9d98b3); }
/* iOS hace zoom al enfocar un campo con letra menor a 16 px: en celular, 16 px. */
@media (max-width: 640px) {
  .rxt-fields input, .rxt-fields select, .au-sel-btn, .au-sel-buscar { font-size: 16px; }
}
.sv-sub { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-2, rgba(255,255,255,.14)); }
.sv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.14)); background: rgba(255,255,255,.04); color: var(--tx-2, #d9d6e6); font: 400 13.5px var(--fb, inherit); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.sv-chip:hover { border-color: var(--lav, #9575FC); }
.sv-chip:focus-visible { outline: 2px solid var(--lav, #9575FC); outline-offset: 2px; }
.sv-chip[aria-pressed="true"] { background: rgba(149,117,252,.18); border-color: var(--lav, #9575FC); color: #fff; }
.sv-chip[aria-pressed="true"]::before { content: "✓"; font-size: 12px; color: var(--lav, #9575FC); }
.sv-chip svg { width: 13px; height: 13px; opacity: .7; transition: transform .2s; }
.sv-chip[aria-expanded="true"] svg { transform: rotate(180deg); }
.sv-n:not(:empty) { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: var(--lav, #9575FC); color: #120d24; font-size: 11.5px; font-weight: 500; }
.sv-mas { border-style: dashed; color: var(--tx-3, #9d98b3); }
.sv-por { margin: 0; font-size: 12.5px; color: var(--tx-3, #9d98b3); }
.sv-por b { color: var(--tx-2, #d9d6e6); font-weight: 500; }

/* Teléfono con lada (input[data-telefono] → .tel) */
.tel { position: relative; display: block; }
.tel-pais { position: absolute; z-index: 1; left: 1px; top: 1px; bottom: 1px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border: 0; border-right: 1px solid var(--line-2, rgba(255,255,255,.14)); border-radius: 11px 0 0 11px; background: transparent; color: inherit; font: 500 14.5px var(--fb, inherit); cursor: pointer; }
.tel-pais:hover { background: rgba(255,255,255,.06); }
.tel-pais:focus-visible { outline: 2px solid var(--lav, #9575FC); outline-offset: -2px; }
.tel-pais svg { width: 12px; height: 12px; opacity: .7; }
.tel-bandera { font-size: 17px; line-height: 1; }
.tel .tel-panel { width: max(100%, 300px); right: auto; }
.au-sel-op.tel-op { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.tel-op small { font-variant-numeric: tabular-nums; }
.rxt-check span small { display: block; margin-top: 3px; font-size: 12px; color: var(--tx-3, #9d98b3); opacity: .85; }
.jr-form .rxt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--tx-3, #9d98b3); }
.jr-form .rxt-check input[type=checkbox] { width: auto; height: auto; margin-top: 2px; accent-color: var(--mint, #5eead4); }

/* Casilla de permiso de contacto en cualquier formulario */
.aud-check span small { display: block; margin-top: 3px; font-size: 12px; opacity: .8; }
.aud-check span small a { color: inherit; text-decoration: underline; }
.aud-check input[type=checkbox] { flex: none; }
.ix-lead .aud-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
/* Junto al WhatsApp (que lleva una línea de ayuda) los demás campos no se estiran */
.rxt-fields > label { align-content: start; }
