@font-face {
    font-family: "Mechanismo";
    src: url('../font/Mechanismo-Regular.ttf');
}

@font-face {
    font-family: "nasalization";
    src: url('../font/nasalization/nasalization-rg.otf');
}

@font-face {
    font-family: "Michroma";
    src: url('../font/Michroma/Michroma-Regular.ttf');
}

.noty_layout_mixin,
#noty_layout__top,
#noty_layout__topLeft,
#noty_layout__topCenter,
#noty_layout__topRight,
#noty_layout__bottom,
#noty_layout__bottomLeft,
#noty_layout__bottomCenter,
#noty_layout__bottomRight,
#noty_layout__center,
#noty_layout__centerLeft,
#noty_layout__centerRight {
    position: fixed;
    margin: 0;
    padding: 0;
    z-index: 9999999;
    -webkit-transform: translateZ(0) scale(1, 1);
    transform: translateZ(0) scale(1, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    filter: blur(0);
    -webkit-filter: blur(0);
    max-width: 90%;
}

#noty_layout__top {
    top: 0;
    left: 5%;
    width: 90%;
}

#noty_layout__topLeft {
    top: 20px;
    left: 20px;
    width: 325px;
}

#noty_layout__topCenter {
    top: 5%;
    left: 50%;
    width: 325px;
    -webkit-transform: translate(-webkit-calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
    transform: translate(calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
}

#noty_layout__topRight {
    top: 20px;
    right: 20px;
    width: 325px;
}

#noty_layout__bottom {
    bottom: 0;
    left: 5%;
    width: 90%;
}

#noty_layout__bottomLeft {
    bottom: 20px;
    left: 20px;
    width: 325px;
}

#noty_layout__bottomCenter {
    bottom: 5%;
    left: 50%;
    width: 325px;
    -webkit-transform: translate(-webkit-calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
    transform: translate(calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
}

#noty_layout__bottomRight {
    bottom: 20px;
    right: 20px;
    width: 325px;
}

#noty_layout__center {
    top: 50%;
    left: 50%;
    width: 380px;
    max-width: 90%;
    -webkit-transform: translate(-webkit-calc(-50% - 0.5px), -webkit-calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
    transform: translate(calc(-50% - 0.5px), calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
}

#noty_layout__centerLeft {
    top: 50%;
    left: 20px;
    width: 325px;
    -webkit-transform: translate(0, -webkit-calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
    transform: translate(0, calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
}

#noty_layout__centerRight {
    top: 50%;
    right: 20px;
    width: 325px;
    -webkit-transform: translate(0, -webkit-calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
    transform: translate(0, calc(-50% - 0.5px)) translateZ(0) scale(1, 1);
}

.noty_progressbar {
    display: none;
}

.noty_has_timeout.noty_has_progressbar .noty_progressbar {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #ff6b00, #ff8c00, #ff6b00);
    opacity: 0.8;
    filter: alpha(opacity=80);
    border-radius: 0 0 20px 20px;
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.noty_bar {
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate(0, 0) translateZ(0) scale(1, 1);
    -ms-transform: translate(0, 0) scale(1, 1);
    transform: translate(0, 0) scale(1, 1);
    -webkit-font-smoothing: subpixel-antialiased;
    overflow: hidden;
}

.noty_effects_open {
    opacity: 0;
    -webkit-transform: translate(50%);
    -ms-transform: translate(50%);
    transform: translate(50%);
    -webkit-animation: noty_anim_in 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    animation: noty_anim_in 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.noty_effects_close {
    -webkit-animation: noty_anim_out 0.3s ease-in;
    animation: noty_anim_out 0.3s ease-in;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.noty_fix_effects_height {
    -webkit-animation: noty_anim_height 75ms ease-out;
    animation: noty_anim_height 75ms ease-out;
}

.noty_close_with_click {
    cursor: pointer;
}

.noty_close_button {
    position: absolute;
    top: 12px;
    right: 12px;
    font-weight: 500;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 24px;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    border: 1.5px solid rgba(255, 107, 0, 0.2);
    color: #ff6b00;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
}

.noty_close_button:hover {
    background-color: #ff6b00;
    color: white;
    transform: scale(1.1) rotate(90deg);
    border-color: #ff6b00;
}

/* ========== MODAL MEJORADO ========== */
.noty_modal {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    left: 0;
    top: 0;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.noty_modal.noty_modal_open {
    opacity: 1;
    -webkit-animation: noty_modal_in 0.3s ease-out forwards;
    animation: noty_modal_in 0.3s ease-out forwards;
}

.noty_modal.noty_modal_close {
    -webkit-animation: noty_modal_out 0.3s ease-out forwards;
    animation: noty_modal_out 0.3s ease-out forwards;
}

@-webkit-keyframes noty_modal_in {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes noty_modal_in {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@-webkit-keyframes noty_modal_out {
    0% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes noty_modal_out {
    0% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@-webkit-keyframes noty_anim_in {
    100% {
        -webkit-transform: translate(0);
        transform: translate(0);
        opacity: 1;
    }
}

@keyframes noty_anim_in {
    100% {
        -webkit-transform: translate(0);
        transform: translate(0);
        opacity: 1;
    }
}

@-webkit-keyframes noty_anim_out {
    100% {
        -webkit-transform: translate(50%);
        transform: translate(50%);
        opacity: 0;
    }
}

@keyframes noty_anim_out {
    100% {
        -webkit-transform: translate(50%);
        transform: translate(50%);
        opacity: 0;
    }
}

@-webkit-keyframes noty_anim_height {
    100% {
        height: 0;
    }
}

@keyframes noty_anim_height {
    100% {
        height: 0;
    }
}

/* ========== ESTILOS REDISEÑADOS ========== */

.noty_message {
    padding: 0 !important;
    display: block;
    line-height: 1.5;
    font-size: 0.9rem;
    position: static !important;
    margin-top: 0.75rem;
}

.noty_bar {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
    color: #2d2d2d;
    border-bottom: none;
    position: relative;
    transition: all 0.25s ease;
    transform: translate(0, 0) scale(1, 1);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px !important;
}

/* Línea decorativa superior */
.noty_bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff8c00, #ff6b00);
    border-radius: 24px 24px 0 0;
    z-index: 2;
}

/* ===== TIPOS DE NOTIFICACIONES ===== */

.noty_type_success,
.noty_type__success {
    border-left: 5px solid #10b981;
    background: #ffffff;
}

.noty_type_warning,
.noty_type__warning {
    border-left: 5px solid #ff6b00;
    background: #ffffff;
}

.noty_type_danger,
.noty_type__danger {
    border-left: 5px solid #ef4444;
    background: #ffffff;
}

.noty_type_info,
.noty_type__info {
    border-left: 5px solid #3b82f6;
    background: #ffffff;
}

/* Headers con estilos */
.noty_type_success .colored-header,
.noty_type__success .colored-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.noty_type_warning .colored-header,
.noty_type__warning .colored-header {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
}

.noty_type_danger .colored-header,
.noty_type__danger .colored-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.noty_type_info .colored-header,
.noty_type__info .colored-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.noty_type_success .transparent-header,
.noty_type__success .transparent-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.noty_type_warning .transparent-header,
.noty_type__warning .transparent-header {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
}

.noty_type_danger .transparent-header,
.noty_type__danger .transparent-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.noty_type_info .transparent-header,
.noty_type__info .transparent-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Header estructura */
.noty-header {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.noty-header .colored-header {
    flex: 1;
    color: white;
    border-radius: 0 0 20px 0;
    padding-left: 14px;
    font-size: 1rem;
    font-family: 'Mechanismo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.noty-header .colored-header img {
    width: 18px;
    padding-bottom: 2px;
    filter: brightness(0) invert(1);
}

.noty-header .transparent-header {
    border-radius: 0;
    flex: 1;
}

.noty-header .transparent-header .transparent-header-inner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px 0 0 0;
    padding-left: 15px;
    font-size: 0.7rem;
    color: #888;
    font-family: 'Michroma', sans-serif;
    height: 100%;
    padding-top: 3px;
    letter-spacing: 0.3px;
}

/* Contenido del mensaje */
.noty-message {
    display: flex;
    align-items: center;
    padding-left: 10px;
    margin-top: 8px;
}

.noty-message img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.noty_text {
    color: #2c2c2c !important;
    font-family: 'nasalization', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.noty_layout {
    min-width: 320px;
}

/* Iconos decorativos por tipo */
.noty_type_success .noty-message::before,
.noty_type__success .noty-message::before {
    /*content: "✓";*/
    font-size: 20px;
    margin-right: 10px;
    color: #10b981;
    font-weight: bold;
}

.noty_type_warning .noty-message::before,
.noty_type__warning .noty-message::before {
    /*content: "!";*/
    font-size: 20px;
    margin-right: 10px;
    color: #ff6b00;
    font-weight: bold;
}

.noty_type_danger .noty-message::before,
.noty_type__danger .noty-message::before {
    /*content: "✕";*/
    font-size: 18px;
    margin-right: 10px;
    color: #ef4444;
    font-weight: bold;
}

.noty_type_info .noty-message::before,
.noty_type__info .noty-message::before {
    /*content: "ⓘ";*/
    font-size: 18px;
    margin-right: 10px;
    color: #3b82f6;
    font-weight: bold;
}

/* ========== ESTILOS ESPECIALES PARA ALERT Y MODAL ========== */

/* Alert (ventana de diálogo) */
.noty_type_alert {
    padding: 0;
    border-left: 5px solid #ff8c00;
    background: #ffffff;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
}

.noty_type_alert .noty_message {
    padding: 20px 24px !important;
    opacity: 1;
}

.noty_type_alert .noty_message .noty_text {
    padding: 0;
    font-size: 15px;
    text-align: center;
    color: #333 !important;
}

.noty_type_alert .noty_buttons {
    padding: 0 24px 24px 24px !important;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.noty_type_alert .noty_buttons button {
    margin: 0;
}

/* Icono para alert */
.noty_type_alert .noty-message::before {
    content: "⚠";
    font-size: 28px;
    margin-right: 12px;
    color: #ff8c00;
}

/* Modal centrado (cuando se usa con layout center) */
#noty_layout__center {
    border-radius: 28px;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.4);
    animation: modalFloat 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalFloat {
    0% {
        opacity: 0;
        transform: translate(calc(-50% - 0.5px), calc(-50% - 0.5px)) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(calc(-50% - 0.5px), calc(-50% - 0.5px)) scale(1);
    }
}

/* Botones elegantes */
.btn-success,
.btn-info {
    background: linear-gradient(135deg, #ff6b00, #ff8c00) !important;
    border: none !important;
    border-radius: 40px !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 28px !important;
    transition: all 0.25s ease;
    font-family: 'nasalization', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-warning {
    background: transparent !important;
    border: 2px solid #ff6b00 !important;
    border-radius: 40px !important;
    color: #ff6b00 !important;
    font-weight: 600;
    padding: 9px 27px !important;
    transition: all 0.25s ease;
    font-family: 'nasalization', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-success:hover,
.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
    background: linear-gradient(135deg, #ff5a00, #ff7a00) !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    background: rgba(255, 107, 0, 0.1) !important;
    border-color: #ff8c00 !important;
    color: #ff8c00 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

/* Estilos específicos para botones dentro de tipos */
.noty_type_success .btn-success,
.noty_type_success .btn-info,
.noty_type__success .btn-success,
.noty_type__success .btn-info {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.noty_type_success .btn-warning,
.noty_type__success .btn-warning {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.noty_type_danger .btn-success,
.noty_type_danger .btn-info,
.noty_type__danger .btn-success,
.noty_type__danger .btn-info {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.noty_type_danger .btn-warning,
.noty_type__danger .btn-warning {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.noty_type_info .btn-success,
.noty_type_info .btn-info,
.noty_type__info .btn-success,
.noty_type__info .btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.noty_type_info .btn-warning,
.noty_type__info .btn-warning {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Contenedor top right */
#noty_topRight_layout_container li {
    border: none !important;
    background-color: transparent !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    max-width: 275px;
    border-radius: 24px !important;
}

/* Botones container */
.noty_buttons {
    gap: 12px;
    display: flex;
    margin-top: 16px;
    justify-content: flex-end;
}

/* Ajustes para el modal en layout center cuando es tipo alert */
.noty_type_alert.noty_bar {
    padding: 0;
}