/* Link360 — Pregunta de filtro de los formularios de lead magnet.
   Mismo desplegable que /newsletter, adaptado a los campos de la tarjeta (.field). */

/* La pregunta aparece al validar el correo (0fr → 1fr anima a su alto real) */
.lm-reveal{ display:grid; grid-template-rows:0fr; margin:0 -4px; overflow:hidden;
  opacity:0; transition:grid-template-rows .45s var(--ease), opacity .35s ease; }
.lm-reveal.is-open{ grid-template-rows:1fr; opacity:1; }
/* el padding lateral evita que overflow:hidden recorte el anillo de foco */
.lm-reveal__in{ min-height:0; padding:0 4px; }

.lm-q{ padding-top:4px; margin-bottom:12px; }
.lm-q__label{ display:block; font-size:13.5px; font-weight:500; color:var(--tx-2);
  margin-bottom:6px; letter-spacing:-.01em; }
.lm-q__note{ color:var(--violet-soft); font-size:13px; line-height:1.45; margin:0 0 9px; }

/* Desplegable propio: el nativo corta las opciones largas en móvil */
.lm-select{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%;
  font-family:var(--sans); font-size:15px; color:var(--tx); text-align:left; line-height:1.35;
  padding:13px 15px; border-radius:12px; border:1px solid var(--line);
  background:rgba(255,255,255,.03); cursor:pointer;
  transition:border-color .2s, box-shadow .2s, background .2s; }
.lm-select:hover{ border-color:var(--line-2); }
.lm-select:focus-visible{ outline:none; border-color:var(--violet); background:rgba(124,58,237,.05);
  box-shadow:0 0 0 3px rgba(124,58,237,.18); }
.lm-select[data-empty]{ color:var(--tx-4); }
.lm-select.is-invalid{ border-color:#f2789a; box-shadow:0 0 0 3px rgba(242,120,154,.16); }
.lm-select svg{ flex:none; width:16px; height:16px; fill:none; stroke:var(--violet-light);
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; }
.lm-select[aria-expanded="true"] svg{ transform:rotate(180deg); }

.lm-list{ list-style:none; margin:6px 0 0; padding:5px; border-radius:12px;
  border:1px solid var(--line-2); background:var(--surface); }
.lm-list:focus{ outline:none; }
.lm-opt{ padding:11px 12px; border-radius:8px; font-size:14.5px; line-height:1.35;
  color:var(--tx-2); cursor:pointer; }
.lm-opt.is-active{ background:rgba(124,58,237,.2); color:var(--tx); }
.lm-opt[aria-selected="true"]{ color:var(--violet-soft); font-weight:500; }

.lm-legal{ margin-top:10px; text-align:center; font-size:12px; line-height:1.5; color:var(--tx-3); text-wrap:balance; }
.lm-legal a{ color:var(--tx-2); text-decoration:underline; text-underline-offset:2px; }
.lm-legal a:hover{ color:var(--violet-light); }

@media (prefers-reduced-motion:reduce){
  .lm-reveal, .lm-select svg{ transition:none; }
}
