/* Linkeia WhatsApp — formulario de captación antes de abrir WhatsApp. Autónomo (funciona en el sitio y en Lagom). */
.lkwa { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.lkwa[hidden] { display: none; }
html.lkwa-lock, html.lkwa-lock body { overflow: hidden !important; }
.lkwa-bg { position: absolute; inset: 0; background: rgba(4, 10, 16, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.lkwa-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 30px 28px 24px; background: #fff; color: #3b4b5b; border-radius: 0; box-shadow: 0 30px 80px rgba(4, 10, 16, .45); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .22s ease, transform .22s ease; text-align: left; }
.lkwa.is-open .lkwa-bg { opacity: 1; }
.lkwa.is-open .lkwa-box { opacity: 1; transform: none; }
.lkwa-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #6b7a89; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 0; }
.lkwa-x:hover { color: #151719; }
.lkwa-ic { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 0 14px; background: #25d366; color: #fff; border-radius: 50%; }
.lkwa-ic svg { width: 26px; height: 26px; }
.lkwa-title { margin: 0 0 6px !important; padding: 0 !important; font: 700 22px/1.2 "Bai Jamjuree", system-ui, sans-serif !important; color: #0f2433 !important; letter-spacing: 0 !important; text-transform: none !important; background: none !important; }
.lkwa-lead { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: #5b6b7b; }
.lkwa-form { display: grid; gap: 12px; margin: 0; }
.lkwa-f { display: grid; gap: 5px; margin: 0; font-weight: 400; }
.lkwa-f span { font-size: 13px; font-weight: 600; color: #26323d; }
.lkwa-f input { box-sizing: border-box; width: 100% !important; height: 46px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid #d5dde6 !important; border-radius: 0 !important; background: #fff !important; color: #151719 !important; font: 400 15px "Open Sans", system-ui, sans-serif !important; box-shadow: none !important; outline: 0; transition: border-color .2s, box-shadow .2s; }
.lkwa-f input:focus { border-color: #25d366 !important; box-shadow: 0 0 0 3px rgba(37, 211, 102, .2) !important; }
.lkwa-f input[aria-invalid="true"] { border-color: #d64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .15) !important; }
.lkwa-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.lkwa-err { margin: 0; padding: 9px 12px; background: #fdecec; color: #b42323; font-size: 13.5px; }
.lkwa-err[hidden] { display: none; }
.lkwa-go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 50px; margin-top: 4px; padding: 0 18px; border: 0; border-radius: 0; background: #25d366; color: #fff !important; font: 700 15px "Bai Jamjuree", system-ui, sans-serif; cursor: pointer; transition: background .2s, box-shadow .2s; }
.lkwa-go:hover, .lkwa-go:focus-visible { background: #1ebe5b; box-shadow: 0 0 22px rgba(37, 211, 102, .4); outline: 0; }
.lkwa-go svg { width: 20px; height: 20px; }
.lkwa-note { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: #7a8896; text-align: center; }
.lkwa-note a { color: inherit !important; text-decoration: underline; }

.lkwa-f > label { margin: 0; font-size: 13px; font-weight: 600; color: #26323d; }
.lkwa-f > label i { font-style: normal; color: #d64545; }
.lkwa-fe { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #c0392b; }
.lkwa-fe[hidden] { display: none; }
.lkwa-go[disabled] { opacity: .7; cursor: progress; }

/* teléfono internacional: país con bandera + número */
.lkwa-tel { position: relative; display: flex; }
.lkwa-cc { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 10px 0 12px; border: 1px solid #d5dde6; border-right: 0; border-radius: 0; background: #f4f7fa; color: #151719; font: 600 14px "Open Sans", system-ui, sans-serif; cursor: pointer; }
.lkwa-cc img { width: 22px; height: 16px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lkwa-cc svg { width: 14px; height: 14px; opacity: .6; }
.lkwa-cc[aria-expanded="true"], .lkwa-cc:focus-visible { outline: 0; border-color: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); position: relative; z-index: 1; }
.lkwa-tel input[type=tel] { flex: 1 1 auto; min-width: 0; }
.lkwa-ccp { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid #d5dde6; box-shadow: 0 18px 40px rgba(4, 10, 16, .22); }
.lkwa-ccp[hidden] { display: none; }
.lkwa-ccp .lkwa-ccs { box-sizing: border-box; display: block; width: 100% !important; height: 42px !important; margin: 0 !important; padding: 0 12px !important; border: 0 !important; border-bottom: 1px solid #e3e8ee !important; border-radius: 0 !important; background: #fff !important; color: #151719 !important; font: 400 14px "Open Sans", system-ui, sans-serif !important; outline: 0; box-shadow: none !important; }
.lkwa-ccp ul { list-style: none; margin: 0; padding: 4px 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.lkwa-ccp li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; color: #26323d; cursor: pointer; outline: 0; }
.lkwa-ccp li img { flex: none; width: 22px; height: 16px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lkwa-ccp li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lkwa-ccp li em { flex: none; font-style: normal; color: #6b7a89; font-size: 13px; }
.lkwa-ccp li:hover, .lkwa-ccp li:focus { background: #eef8f2; }
.lkwa-ccp li[aria-selected="true"] { font-weight: 600; }
.lkwa-ccp li.lkwa-none { color: #6b7a89; cursor: default; }

/* modo oscuro (sitio: lk-dark; Lagom: lagom-dark-mode) */
html.lk-dark .lkwa-f > label, html.lagom-dark-mode .lkwa-f > label { color: #dbe5ee; }
html.lk-dark .lkwa-fe, html.lagom-dark-mode .lkwa-fe { color: #ff9b93; }
html.lk-dark .lkwa-cc, html.lagom-dark-mode .lkwa-cc { background: #0f2433; border-color: #2f4d69; color: #fff; }
html.lk-dark .lkwa-ccp, html.lagom-dark-mode .lkwa-ccp { background: #132332; border-color: #2f4d69; }
html.lk-dark .lkwa-ccp .lkwa-ccs, html.lagom-dark-mode .lkwa-ccp .lkwa-ccs { background: #132332 !important; color: #fff !important; border-bottom-color: #2f4d69 !important; }
html.lk-dark .lkwa-ccp li, html.lagom-dark-mode .lkwa-ccp li { color: #dbe5ee; }
html.lk-dark .lkwa-ccp li:hover, html.lk-dark .lkwa-ccp li:focus, html.lagom-dark-mode .lkwa-ccp li:hover, html.lagom-dark-mode .lkwa-ccp li:focus { background: #17304a; }
html.lk-dark .lkwa-box, html.lagom-dark-mode .lkwa-box { background: #132332; color: #c3d0db; box-shadow: 0 0 0 1px rgba(75, 204, 254, .18), 0 30px 80px rgba(0, 0, 0, .55); }
html.lk-dark .lkwa-title, html.lagom-dark-mode .lkwa-title { color: #fff !important; }
html.lk-dark .lkwa-lead, html.lagom-dark-mode .lkwa-lead { color: #9fb0c0; }
html.lk-dark .lkwa-f span, html.lagom-dark-mode .lkwa-f span { color: #dbe5ee; }
html.lk-dark .lkwa-f input, html.lagom-dark-mode .lkwa-f input { background: #15293b !important; border-color: #2f4d69 !important; color: #fff !important; }
html.lk-dark .lkwa-x, html.lagom-dark-mode .lkwa-x { color: #9fb0c0; }
html.lk-dark .lkwa-x:hover, html.lagom-dark-mode .lkwa-x:hover { color: #fff; }
html.lk-dark .lkwa-err, html.lagom-dark-mode .lkwa-err { background: rgba(214, 69, 69, .15); color: #ff9b93; }
html.lk-dark .lkwa-note, html.lagom-dark-mode .lkwa-note { color: #8193a4; }

@media (max-width: 479px) {
    .lkwa { align-items: flex-end; padding: 0; }
    .lkwa-box { width: 100%; max-height: 92vh; padding: 26px 18px 20px; transform: translateY(30px); }
}
@media (prefers-reduced-motion: reduce) { .lkwa-bg, .lkwa-box { transition: none; } }
