/* ============================================================
   Formulario de lead · marca Celcom
   Hereda de celcom-tokens.css y de .btn en landing.css.
   ============================================================ */
html.lf-abierto{ overflow:hidden }

.lf{
  border:0; padding:0; background:transparent;
  width:min(520px, calc(100vw - 32px)); max-height:calc(100dvh - 32px);
  margin:auto; overflow:visible; color:var(--celcom-navy);
}
.lf::backdrop{ background:rgba(13,27,51,.62); backdrop-filter:blur(2px) }
.lf[open]{ animation:lf-in .22s cubic-bezier(.22,.61,.36,1) }
@keyframes lf-in{ from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }

.lf__box{
  position:relative; background:#fff; border-radius:22px;
  padding:32px 30px 28px; box-shadow:0 30px 70px rgba(0,20,60,.35);
  max-height:calc(100dvh - 32px); overflow-y:auto;
}
.lf__x{
  position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
  border:0; background:var(--celcom-gris); color:var(--celcom-gris-txt);
  font-size:24px; line-height:1; cursor:pointer; transition:.15s;
}
.lf__x:hover{ background:var(--celcom-gris-borde); color:var(--celcom-navy) }

.lf__eye{
  font-family:var(--celcom-font-tit); font-weight:600; font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--celcom-naranjo); margin:0 0 6px;
}
.lf__t{
  font-family:var(--celcom-font-tit); font-weight:700; font-size:24px; line-height:1.25;
  color:var(--celcom-azul); margin:0 40px 8px 0; outline:0;
}
.lf__sub{ font-size:15px; color:var(--celcom-gris-txt); line-height:1.55; margin:0 0 18px }

.lf__form{ display:grid; gap:14px }
.lf__2{ display:grid; grid-template-columns:1fr 1fr; gap:14px }
.lf__f{ display:grid; gap:6px; min-width:0 }
.lf__f > span{ font-size:13.5px; font-weight:600; color:var(--celcom-navy) }
.lf__f em{ font-style:normal; font-weight:400; color:var(--celcom-gris-txt) }
.lf__f input, .lf__f select, .lf__f textarea{
  width:100%; font:inherit; font-size:16px; color:var(--celcom-navy);
  background:#fff; border:1.5px solid var(--celcom-gris-borde); border-radius:12px;
  padding:11px 14px; transition:border-color .15s, box-shadow .15s;
}
.lf__f textarea{ resize:vertical; min-height:64px }
.lf__f input::placeholder, .lf__f textarea::placeholder{ color:#93A0B8 }
.lf__f input:focus, .lf__f select:focus, .lf__f textarea:focus{
  outline:0; border-color:var(--celcom-azul); box-shadow:0 0 0 3px var(--celcom-azul-100);
}
.lf--validado .lf__f :invalid{ border-color:var(--celcom-bad) }

.lf__ok{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--celcom-gris-txt); line-height:1.5 }
.lf__ok input{ width:18px; height:18px; margin-top:2px; flex:none; accent-color:var(--celcom-azul) }
.lf__ok a, .lf__err a{ color:var(--celcom-azul); text-decoration:underline }
.lf--validado .lf__ok input:invalid + span{ color:var(--celcom-bad) }

.lf__hp{ position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden }

.lf__err{
  margin:0; font-size:14px; color:var(--celcom-bad); background:#FDECEC;
  border-radius:10px; padding:10px 14px;
}
.lf__send{ width:100%; margin-top:4px }
.lf__send:disabled{ opacity:.7; cursor:wait; transform:none }

.lf__check{
  width:56px; height:56px; border-radius:50%; background:#E6F5EC;
  display:grid; place-items:center; margin-bottom:16px;
}
.lf__check svg{ width:28px; height:28px; stroke:var(--celcom-ok); fill:none; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round }
.lf__back{
  display:block; margin:14px auto 0; background:none; border:0; cursor:pointer;
  font:inherit; font-size:14.5px; color:var(--celcom-gris-txt); text-decoration:underline;
}

@media (max-width:560px){
  .lf__box{ padding:26px 20px 22px; border-radius:18px }
  .lf__2{ grid-template-columns:1fr }
  .lf__t{ font-size:21px }
}
