/* Fondo oscuro (Backdrop) */
.popup_backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: all var(--transition-base);
}

/* Estado oculto inicial */
.popup_backdrop.hidden {
    opacity: 0;
    pointer-events: none; /* Deshabilita la interacción cuando está oculto */
}

/* Contenido principal del Popup */
.popup_content {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    transform: translateY(0);
    transition: all var(--transition-base);
}

.popup_backdrop.hidden .popup_content {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

/* Título */
.popup_title {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Descripción */
.popup_description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Lista de Nomenclaturas */
.popup_list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.popup_list_item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
    color: #666;
}

.popup_list_item:last-child {
    border-bottom: none;
}

/* Nombre de la clase resaltado */
.popup_class_name {
    font-weight: bold;
    color: #007bff; /* Color primario moderno (azul) */
    font-family: monospace;
    background-color: #e9f7ff;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Botón de Acción */
.popup_btn {
    background-color: var(--muted);
    color: var(--color-dark);
    font-weight: bold;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.popup_btn:hover {
    background: var(--background);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.popup_btn:active {
    transform: translateY(0);
}

.popup_btn:active {
    transform: scale(0.98);
}

/* Botón de cerrar (la 'X') */
.popup_close_btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(244, 96, 76, 0.1);
    border: 1px solid rgba(244, 96, 76, 0.2);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--color-red);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
}

.popup_close_btn:hover {
    color: #ffffff;
    background: var(--color-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.popup_discount{
  color: var(--color-red);
}

.popup_input{
    width: 100%;    
    border: 2px solid var(--nav-border);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.popup_input:focus{
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 128, 56, 0.15), var(--shadow-sm);
    background: #ffffff;
}
