/* =========================================================
   SWEETALERT2 - ESTILO GENERAL LA COLMENA
   Diseño visual compartido para todos los módulos.
   La lógica, los textos y reverseButtons se configuran en JS.
   ========================================================= */

.swal2-container {
    z-index: 999999999;
    font-family: var(--fuente-principal, Arial, Helvetica, sans-serif);
}

.swal2-popup {
    box-sizing: border-box;
    width: min(460px, calc(100vw - 32px));
    padding: 28px 28px 26px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .22);
    font-family: var(--fuente-principal, Arial, Helvetica, sans-serif);
}

.swal2-title {
    padding: 0;
    margin: 6px 0 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.swal2-html-container,
.swal2-content {
    margin: 0;
    padding: 0;
    color: #334155;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.swal2-title + .swal2-html-container,
.swal2-title + .swal2-content {
    margin-top: 12px;
}

.swal2-icon {
    margin: 4px auto 18px;
    transform: scale(.90);
}

.swal2-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    width: 100%;
}

.swal2-actions .swal2-styled {
    box-sizing: border-box;
    min-height: 42px;
    margin: 0;
    padding: 10px 19px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* SweetAlert2 v10 puede aplicar colores inline: la paleta general manda. */
.swal2-actions .swal2-styled.swal2-confirm {
    border: 1px solid #111827 !important;
    background-color: #111827 !important;
    color: #ffffff !important;
    box-shadow: none;
}

.swal2-actions .swal2-styled.swal2-confirm:hover {
    border-color: #253247 !important;
    background-color: #253247 !important;
}

.swal2-actions .swal2-styled.swal2-cancel,
.swal2-actions .swal2-styled.swal2-deny {
    border: 1px solid #cbd5e1 !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    box-shadow: none;
}

.swal2-actions .swal2-styled.swal2-cancel:hover,
.swal2-actions .swal2-styled.swal2-deny:hover {
    border-color: #aab3c0 !important;
    background-color: #e5e7eb !important;
}

.swal2-actions .swal2-styled:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
    box-shadow: none !important;
}

.swal2-actions .swal2-styled:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #16a34a;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(22, 163, 74, .25);
}

@media (max-width: 480px) {
    .swal2-popup { padding: 23px 18px 21px; }
    .swal2-title { font-size: 18px; }
    .swal2-html-container,
    .swal2-content { font-size: 14px; line-height: 1.65; }
    .swal2-actions { gap: 8px; }
    .swal2-actions .swal2-styled { padding: 10px 14px; }
}
