/* El campo de teléfono con país (`_telefono.html`). Sin JavaScript se ve el
   <select> nativo junto al número; con `telefono.js`, un botón con la bandera.
   Los colores salen de los tokens de cada superficie (app, sitio, /r/), con
   el mismo respaldo en cadena para que un token ausente no deje el control sin
   borde o sin fondo. */
.tel-campo { display: flex; gap: .5rem; align-items: stretch; position: relative; }
.tel-campo > input { flex: 1 1 auto; min-width: 0; }
.tel-campo > select.tel-pais { flex: 0 1 11rem; min-width: 0; }
.tel-boton {
  display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto;
  min-height: 2.6rem; padding: 0 .6rem; font: inherit; color: inherit; cursor: pointer;
  background: var(--bg, #fff);
  border: 1px solid var(--line-input, var(--line-strong, var(--line, #8C8373)));
  border-radius: var(--r1);
}
.tel-boton:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.tel-bandera { display: block; width: 1.5rem; height: 1rem; border-radius: var(--r1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.tel-flecha { width: 0; height: 0; border-left: .3rem solid transparent; border-right: .3rem solid transparent; border-top: .35rem solid currentColor; }
.tel-lista {
  position: absolute; top: 100%; left: 0; z-index: 30; margin: .25rem 0 0; padding: .25rem;
  list-style: none; max-height: 15rem; overflow: auto; min-width: min(17rem, 100%);
  background: var(--bg, #fff);
  border: 1px solid var(--line-input, var(--line-strong, var(--line, #8C8373)));
  border-radius: var(--r1); box-shadow: var(--sh-pop);
}
.tel-lista[hidden], .tel-campo > select[hidden], .tel-bandera[hidden] { display: none; }
.tel-lista li { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: var(--r1); cursor: pointer; }
.tel-lista li:hover, .tel-lista li.tel-activo { background: var(--brand-tint, var(--casa-tint)); }
.tel-lista li[aria-selected="true"] { font-weight: 600; }
@media (max-width: 480px) {
  .tel-campo > select.tel-pais { flex-basis: 8.5rem; }
  .tel-lista { min-width: 100%; }
}
