/* ==========================================================
   sesion-modal.css · Cartel "¿Confirmás que querés cerrar sesión?"
   Mismo diseño que el modal de cobro (pago-modal-colores.css):
   Turquesa #03C4B8 · Marino #0D2F5A · Coral #FE4A78
   ========================================================== */
.gl-overlay {
    --gl-teal: #03c4b8;
    --gl-navy: #0d2f5a;
    --gl-coral: #fe4a78;
    --gl-surface: #ffffff;
    --gl-soft: #effcfb;
    --gl-line: #cdeceb;
    --gl-text: #0d2f5a;
    --gl-text-2: #4b6b86;

    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(13, 47, 90, .55);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .18s ease;
}
.gl-overlay.on { opacity: 1; }

.gl-card {
    width: 100%; max-width: 420px; overflow: hidden;
    background: var(--gl-surface); color: var(--gl-text);
    border-radius: 22px; box-shadow: 0 24px 60px rgba(13, 47, 90, .35);
    padding: 0 26px 24px;
    transform: translateY(10px) scale(.98); transition: transform .18s ease;
}
.gl-overlay.on .gl-card { transform: none; }

/* Encabezado turquesa con las formas del fondo */
.gl-head {
    position: relative; overflow: hidden;
    margin: 0 -26px 22px; padding: 24px 26px;
    background: linear-gradient(135deg, #03c4b8 0%, #14d0c5 55%, #2ed1c6 100%);
}
.gl-head::before {
    content: ""; position: absolute; right: 46px; top: -26px; width: 92px; height: 92px;
    border-radius: 24px; background: rgba(255, 255, 255, .20); transform: rotate(18deg);
}
.gl-head::after {
    content: ""; position: absolute; left: -14px; bottom: -18px; width: 64px; height: 64px;
    border-radius: 18px; background: var(--gl-coral); opacity: .9; transform: rotate(32deg);
}
.gl-head h3 { position: relative; z-index: 1; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--gl-navy); }
.gl-x {
    position: absolute; z-index: 2; right: 18px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .45); color: var(--gl-navy); font-size: 20px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
}
.gl-x:hover { background: #fff; transform: translateY(-50%) rotate(90deg); }

.gl-q { margin: 0 0 18px; text-align: center; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }

.gl-user {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 20px;
    border: 1.5px solid var(--gl-line); border-radius: 14px; background: var(--gl-surface);
    box-shadow: 0 1px 2px rgba(13, 47, 90, .06);
}
.gl-avatar {
    flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #03c4b8, #2ed1c6); color: var(--gl-navy); font-size: 15px; font-weight: 800;
}
.gl-info { min-width: 0; }
.gl-info b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-info span { display: block; font-size: 13px; color: var(--gl-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gl-btns { display: flex; flex-direction: column; gap: 10px; }
.gl-btn {
    width: 100%; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
}
.gl-btn:active { transform: scale(.985); }
.gl-primary { border: none; color: var(--gl-navy); background: linear-gradient(135deg, #03c4b8, #2ed1c6); box-shadow: 0 8px 20px rgba(3, 196, 184, .40); }
.gl-primary:hover { background: linear-gradient(135deg, #02b0a5, #1fc4b9); box-shadow: 0 10px 24px rgba(3, 196, 184, .50); }
.gl-primary:disabled { opacity: .7; cursor: wait; }
.gl-sec { background: transparent; color: var(--gl-text); border: 1.5px solid var(--gl-line); }
.gl-sec:hover { background: var(--gl-soft); border-color: var(--gl-teal); }
.gl-btn:focus-visible, .gl-x:focus-visible { outline: 3px solid rgba(3, 196, 184, .45); outline-offset: 2px; }

/* Confirmación genérica */
.gl-msg { margin: 4px 4px 22px; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.gl-danger { border: none; color: #fff; background: linear-gradient(135deg, #fe4a78, #ff6f93); box-shadow: 0 8px 20px rgba(254, 74, 120, .38); }
.gl-danger:hover { background: linear-gradient(135deg, #ee3a68, #fe5f85); box-shadow: 0 10px 24px rgba(254, 74, 120, .48); }
.gl-head-danger { background: linear-gradient(135deg, #fe4a78 0%, #ff7a9a 100%); }
.gl-head-danger h3 { color: #fff; }
.gl-head-danger::after { background: #0d2f5a; opacity: .75; }

/* Campo de texto del cartel "pedir valor" */
.gl-field { display: block; margin: 0 0 20px; }
.gl-field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--gl-text-2); }
.gl-field input { width: 100%; box-sizing: border-box; padding: 13px 14px; font-size: 20px; font-weight: 800; color: var(--gl-text);
    background: var(--gl-surface); border: 1.5px solid var(--gl-line); border-radius: 12px; text-align: right; }
.gl-field input:focus { outline: none; border-color: var(--gl-teal); box-shadow: 0 0 0 4px rgba(3, 196, 184, .18); }

/* Modo oscuro (igual que el modal de cobro) */
:root[data-theme="dark"] .gl-overlay { --gl-surface: #0f2540; --gl-soft: #12335a; --gl-line: #1f4a6e; --gl-text: #eaf6f6; --gl-text-2: #9fc3ec; }
:root[data-theme="dark"] .gl-card { background: linear-gradient(145deg, #0a2344 0%, #0e3560 100%); }
:root[data-theme="dark"] .gl-head h3 { color: #0d2f5a; }

@media (max-width: 480px) {
    .gl-card { padding: 0 18px 20px; }
    .gl-head { margin: 0 -18px 18px; padding: 20px 18px; }
    .gl-x { right: 12px; }
    .gl-q { font-size: 18px; }
}

/* Confirmación de guardado, sobre cualquier editor abierto. */
.gl-success-dialog { padding:0; border:0; border-radius:22px; width:min(420px,calc(100vw - 32px)); background:#fff; color:#0d2f5a; box-shadow:0 24px 60px #0d2f5a55; --gl-navy:#0d2f5a; --gl-text:#0d2f5a; --gl-coral:#fe4a78; }
.gl-success-dialog::backdrop { background:rgba(13,47,90,.55); backdrop-filter:blur(3px); }
.gl-success-dialog .gl-card { box-sizing:border-box; transform:none; box-shadow:none; background:#fff; color:#0d2f5a; }
.gl-success-dialog .gl-head { padding-right:62px; }
.gl-success-dialog { position:fixed; inset:0; margin:auto; height:fit-content; max-height:calc(100dvh - 32px); overflow:auto; }
