/* Campo de celular con país (registro y contacto). Sirve en la web y en el panel: toma sus
   colores de las variables de cada página, con valores de reserva. */
.ph {
  --ph-line: var(--line-2, var(--border-2, #cfd7e3));
  --ph-bg: var(--bg, var(--surface, #fff));
  --ph-pop: var(--paper, var(--surface-solid, var(--surface, #fff)));
  --ph-ink: var(--ink, #0f1a2e);
  --ph-ink-3: var(--ink-3, #5a687f);
  --ph-accent: var(--brand, var(--accent, #2f6fec));
  --ph-soft: var(--brand-soft, var(--accent-soft, rgba(47, 111, 236, .12)));
  position: relative; display: flex; align-items: stretch; min-height: 44px; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-bg);
  transition: border-color .15s, box-shadow .15s;
}
.ph:focus-within { border-color: var(--ph-accent); box-shadow: 0 0 0 3px var(--ph-soft); }
.ph.invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .14); }
.ph-cc { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px 0 11px; border: 0; border-right: 1px solid var(--ph-line); border-radius: 9px 0 0 9px;
  background: transparent; color: var(--ph-ink); font-family: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.ph-cc:hover, .ph.open .ph-cc { background: var(--ph-soft); }
.ph-cc:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: -2px; }
.ph .flag { flex: none; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 26, 46, .14); overflow: hidden; }
.ph-dial { font-variant-numeric: tabular-nums; }
.ph-caret { width: 14px; height: 14px; color: var(--ph-ink-3); transition: transform .2s; }
.ph.open .ph-caret { transform: rotate(180deg); }
.ph-num { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; padding: 0 12px; color: var(--ph-ink);
  font-family: inherit; font-weight: 400; font-size: 15px; letter-spacing: .02em; height: auto !important; }
.ph-pop { position: fixed; z-index: 1000; display: flex; flex-direction: column; width: min(330px, calc(100vw - 16px)); padding: 8px; border-radius: 12px; border: 1px solid var(--ph-line);
  background: var(--ph-pop); box-shadow: 0 18px 40px -14px rgba(15, 26, 46, .35); }
.ph-search { flex: none; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--ph-line); background: var(--ph-bg); color: var(--ph-ink); font-family: inherit; font-size: 14px; }
.ph-search:focus { outline: none; border-color: var(--ph-accent); }
.ph-list { list-style: none; margin: 6px 0 0; padding: 0; min-height: 0; flex: 1; overflow-y: auto; }
.ph-pop[hidden] { display: none; }
.ph-list li[data-iso] { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ph-ink); outline: none; }
.ph-list li[data-iso]:hover, .ph-list li[data-iso]:focus { background: var(--ph-soft); }
.ph-list li[aria-selected="true"] { font-weight: 700; }
.ph-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-code { color: var(--ph-ink-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.ph-sep { height: 1px; margin: 6px 4px; background: var(--ph-line); }
.ph-none { padding: 10px; color: var(--ph-ink-3); font-size: 13.5px; }
/* en los formularios del panel (registro) los campos son blancos */
.field .ph { --ph-bg: var(--surface, #fff); --ph-pop: var(--surface-solid, var(--surface, #fff)); }
