/* MASSI · Teléfono con país (select con banderas y buscador). Hereda tipografía y colores del tema. */
.mphone { display: flex; align-items: stretch; width: 100%; box-sizing: border-box; border: 1px solid var(--w-border, var(--ui-border, #c9d3d0)); border-radius: var(--w-radius, 8px); background: var(--w-input-bg, #fff); overflow: hidden; }
.mphone:focus-within { border-color: var(--w-primary, var(--ui-primary, #2f4f4f)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-primary, var(--ui-primary, #2f4f4f)) 18%, transparent); }
.mphone > input[type=tel] { flex: 1 1 auto; min-width: 0; width: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; margin: 0 !important; }
.mphone-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; margin: 0; padding: 0 10px; min-height: 40px; border: 0; border-right: 1px solid var(--w-border, var(--ui-border, #d9e3df)); border-radius: 0; background: rgba(0,0,0,.035); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.mphone-trigger:hover { background: rgba(0,0,0,.07); }
.mphone-trigger img { display: block; width: 24px; height: 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.mphone-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mphone-trigger[aria-expanded=true] .mphone-chev { transform: translateY(2px) rotate(225deg); }
.mphone-dropdown { position: fixed; inset: auto; margin: 0; padding: 0; border: 1px solid #d6c68e; border-radius: 14px; background: #fff; color: #173b3f; box-shadow: 0 18px 60px rgba(23,59,63,.28); font: 400 15px/1.4 Lato, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow: hidden; }
.mphone-dropdown[open] { display: flex; flex-direction: column; }
.mphone-dropdown::backdrop { background: transparent; }
.mphone-dropdown * { box-sizing: border-box; }
.mphone-dropdown [hidden] { display: none !important; }
.mphone-tools { display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid #e3e8e5; }
.mphone-tools input { min-width: 0; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #b9cbc7; border-radius: 8px; background: #fff; color: inherit; font: inherit; }
.mphone-tools button { min-height: 42px; padding: 8px 12px; border: 1px solid #c7d5cd; border-radius: 8px; background: #f5f3ee; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.mphone-options { flex: 1; min-height: 0; overflow: auto; padding: 6px; overscroll-behavior: contain; }
.mphone-options button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mphone-options button img { width: 24px; height: 18px; object-fit: cover; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.mphone-options button strong { margin-left: auto; white-space: nowrap; font-size: 14px; }
.mphone-options button:hover, .mphone-options button:focus-visible, .mphone-options button[aria-selected=true] { background: #e5eee6; outline: none; }
.mphone-empty { margin: 0; padding: 14px; font-size: 14px; }
